pub struct DeviceCapacity {
pub value: Quantity,
}
Expand description
DeviceCapacity describes a quantity associated with a device.
Fields§
§value: Quantity
Value defines how much of a certain device capacity is available.
Trait Implementations§
Source§impl Clone for DeviceCapacity
impl Clone for DeviceCapacity
Source§fn clone(&self) -> DeviceCapacity
fn clone(&self) -> DeviceCapacity
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 DeviceCapacity
impl Debug for DeviceCapacity
Source§impl DeepMerge for DeviceCapacity
impl DeepMerge for DeviceCapacity
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for DeviceCapacity
impl Default for DeviceCapacity
Source§fn default() -> DeviceCapacity
fn default() -> DeviceCapacity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceCapacity
impl<'de> Deserialize<'de> for DeviceCapacity
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 DeviceCapacity
impl PartialEq for DeviceCapacity
Source§impl Serialize for DeviceCapacity
impl Serialize for DeviceCapacity
impl StructuralPartialEq for DeviceCapacity
Auto Trait Implementations§
impl Freeze for DeviceCapacity
impl RefUnwindSafe for DeviceCapacity
impl Send for DeviceCapacity
impl Sync for DeviceCapacity
impl Unpin for DeviceCapacity
impl UnwindSafe for DeviceCapacity
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