pub struct ResourcePoolStatusRequestSpec {
pub driver: String,
pub limit: Option<i32>,
pub pool_name: Option<String>,
}Expand description
ResourcePoolStatusRequestSpec defines the filters for the pool status request.
Fields§
§driver: StringDriver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., “gpu.example.com”).
limit: Option<i32>Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount).
Default: 100 Minimum: 1 Maximum: 1000
pool_name: Option<String>PoolName optionally filters to a specific pool name. If not specified, all pools from the specified driver are included. When specified, must be a non-empty valid resource pool name (DNS subdomains separated by “/”).
Trait Implementations§
Source§impl Clone for ResourcePoolStatusRequestSpec
impl Clone for ResourcePoolStatusRequestSpec
Source§fn clone(&self) -> ResourcePoolStatusRequestSpec
fn clone(&self) -> ResourcePoolStatusRequestSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DeepMerge for ResourcePoolStatusRequestSpec
impl DeepMerge for ResourcePoolStatusRequestSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.Source§impl Default for ResourcePoolStatusRequestSpec
impl Default for ResourcePoolStatusRequestSpec
Source§fn default() -> ResourcePoolStatusRequestSpec
fn default() -> ResourcePoolStatusRequestSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourcePoolStatusRequestSpec
impl<'de> Deserialize<'de> for ResourcePoolStatusRequestSpec
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResourcePoolStatusRequestSpec
impl PartialEq for ResourcePoolStatusRequestSpec
Source§fn eq(&self, other: &ResourcePoolStatusRequestSpec) -> bool
fn eq(&self, other: &ResourcePoolStatusRequestSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResourcePoolStatusRequestSpec
Auto Trait Implementations§
impl Freeze for ResourcePoolStatusRequestSpec
impl RefUnwindSafe for ResourcePoolStatusRequestSpec
impl Send for ResourcePoolStatusRequestSpec
impl Sync for ResourcePoolStatusRequestSpec
impl Unpin for ResourcePoolStatusRequestSpec
impl UnsafeUnpin for ResourcePoolStatusRequestSpec
impl UnwindSafe for ResourcePoolStatusRequestSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more