pub struct ResourceClaimSpec {
pub devices: Option<DeviceClaim>,
}
Expand description
ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
Fields§
§devices: Option<DeviceClaim>
Devices defines how to request devices.
Trait Implementations§
Source§impl Clone for ResourceClaimSpec
impl Clone for ResourceClaimSpec
Source§fn clone(&self) -> ResourceClaimSpec
fn clone(&self) -> ResourceClaimSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ResourceClaimSpec
impl Debug for ResourceClaimSpec
Source§impl DeepMerge for ResourceClaimSpec
impl DeepMerge for ResourceClaimSpec
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ResourceClaimSpec
impl Default for ResourceClaimSpec
Source§fn default() -> ResourceClaimSpec
fn default() -> ResourceClaimSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceClaimSpec
impl<'de> Deserialize<'de> for ResourceClaimSpec
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 ResourceClaimSpec
impl PartialEq for ResourceClaimSpec
Source§impl Serialize for ResourceClaimSpec
impl Serialize for ResourceClaimSpec
impl StructuralPartialEq for ResourceClaimSpec
Auto Trait Implementations§
impl Freeze for ResourceClaimSpec
impl RefUnwindSafe for ResourceClaimSpec
impl Send for ResourceClaimSpec
impl Sync for ResourceClaimSpec
impl Unpin for ResourceClaimSpec
impl UnwindSafe for ResourceClaimSpec
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