pub struct ValidSystemState { /* private fields */ }Implementations§
Source§impl ValidSystemState
impl ValidSystemState
pub const fn new( stock: StockState, ledger: PaymentLedger, tax_liability: Money, crm_event_count: Nat, logistics_event_count: Nat, ) -> Self
pub const fn try_new( stock: StockState, ledger: PaymentLedger, tax_liability: Money, crm_event_count: Nat, logistics_event_count: Nat, ) -> Result<Self, ValidationError>
pub fn stock(&self) -> <StockState as FieldAccess>::Output<'_>
pub fn ledger(&self) -> <PaymentLedger as FieldAccess>::Output<'_>
pub fn tax_liability(&self) -> <Money as FieldAccess>::Output<'_>
pub fn crm_event_count(&self) -> <Nat as FieldAccess>::Output<'_>
pub fn logistics_event_count(&self) -> <Nat as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for ValidSystemState
impl Clone for ValidSystemState
Source§fn clone(&self) -> ValidSystemState
fn clone(&self) -> ValidSystemState
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 ValidSystemState
impl Debug for ValidSystemState
Source§impl PartialEq for ValidSystemState
impl PartialEq for ValidSystemState
Source§fn eq(&self, other: &ValidSystemState) -> bool
fn eq(&self, other: &ValidSystemState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ValidSystemState
impl StructuralPartialEq for ValidSystemState
Auto Trait Implementations§
impl Freeze for ValidSystemState
impl RefUnwindSafe for ValidSystemState
impl Send for ValidSystemState
impl Sync for ValidSystemState
impl Unpin for ValidSystemState
impl UnsafeUnpin for ValidSystemState
impl UnwindSafe for ValidSystemState
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