pub struct CommitmentInventory {
pub total_count: usize,
pub active_count: usize,
pub total_weight: f64,
pub sustainable_weight: f64,
pub is_overloaded: bool,
pub by_stakeholder: HashMap<String, usize>,
}Fields§
§total_count: usize§active_count: usize§total_weight: f64§sustainable_weight: f64§is_overloaded: bool§by_stakeholder: HashMap<String, usize>Trait Implementations§
Source§impl Clone for CommitmentInventory
impl Clone for CommitmentInventory
Source§fn clone(&self) -> CommitmentInventory
fn clone(&self) -> CommitmentInventory
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 Debug for CommitmentInventory
impl Debug for CommitmentInventory
Source§impl<'de> Deserialize<'de> for CommitmentInventory
impl<'de> Deserialize<'de> for CommitmentInventory
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§
impl Freeze for CommitmentInventory
impl RefUnwindSafe for CommitmentInventory
impl Send for CommitmentInventory
impl Sync for CommitmentInventory
impl Unpin for CommitmentInventory
impl UnsafeUnpin for CommitmentInventory
impl UnwindSafe for CommitmentInventory
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