pub struct InvariantBudgetV1 {
pub budget_type: BudgetType,
pub max_loss: usize,
pub current_at_risk: usize,
pub exceeded: bool,
}Expand description
Budget for what can be lost during subtraction.
Fields§
§budget_type: BudgetTypeWhat kind of budget.
max_loss: usizeMaximum items that can be lost.
current_at_risk: usizeCurrent items at risk.
exceeded: boolWhether the budget is exceeded.
Trait Implementations§
Source§impl Clone for InvariantBudgetV1
impl Clone for InvariantBudgetV1
Source§fn clone(&self) -> InvariantBudgetV1
fn clone(&self) -> InvariantBudgetV1
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 InvariantBudgetV1
impl Debug for InvariantBudgetV1
Source§impl<'de> Deserialize<'de> for InvariantBudgetV1
impl<'de> Deserialize<'de> for InvariantBudgetV1
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 InvariantBudgetV1
impl RefUnwindSafe for InvariantBudgetV1
impl Send for InvariantBudgetV1
impl Sync for InvariantBudgetV1
impl Unpin for InvariantBudgetV1
impl UnsafeUnpin for InvariantBudgetV1
impl UnwindSafe for InvariantBudgetV1
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