pub struct ShareableCapacityStatus {
pub available: Quantity,
pub consumed: Quantity,
pub name: String,
pub total: Quantity,
}Expand description
ShareableCapacityStatus reports aggregate amounts for a single shareable capacity key.
Fields§
§available: QuantityAvailable is Total minus Consumed, never negative.
consumed: QuantityConsumed is the amount drawn by current allocations.
name: StringName is the capacity name.
total: QuantityTotal is the sum of this capacity across shareable devices in the pool.
Trait Implementations§
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other into self.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
Auto Trait Implementations§
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