Struct k8s_openapi::api::resource::v1alpha3::BasicDevice
source · pub struct BasicDevice {
pub attributes: Option<BTreeMap<String, DeviceAttribute>>,
pub capacity: Option<BTreeMap<String, Quantity>>,
}
Expand description
BasicDevice defines one device instance.
Fields§
§attributes: Option<BTreeMap<String, DeviceAttribute>>
Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.
The maximum number of attributes and capacities combined is 32.
capacity: Option<BTreeMap<String, Quantity>>
Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.
The maximum number of attributes and capacities combined is 32.
Trait Implementations§
source§impl Clone for BasicDevice
impl Clone for BasicDevice
source§fn clone(&self) -> BasicDevice
fn clone(&self) -> BasicDevice
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 BasicDevice
impl Debug for BasicDevice
source§impl DeepMerge for BasicDevice
impl DeepMerge for BasicDevice
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for BasicDevice
impl Default for BasicDevice
source§fn default() -> BasicDevice
fn default() -> BasicDevice
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BasicDevice
impl<'de> Deserialize<'de> for BasicDevice
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 BasicDevice
impl PartialEq for BasicDevice
source§impl Serialize for BasicDevice
impl Serialize for BasicDevice
impl StructuralPartialEq for BasicDevice
Auto Trait Implementations§
impl Freeze for BasicDevice
impl RefUnwindSafe for BasicDevice
impl Send for BasicDevice
impl Sync for BasicDevice
impl Unpin for BasicDevice
impl UnwindSafe for BasicDevice
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)