pub struct BankingState {
pub accounts: HashMap<String, Account>,
pub transactions: Vec<Transaction>,
pub operation_count: u64,
}Expand description
State of the banking state machine
Fields§
§accounts: HashMap<String, Account>All accounts indexed by account ID
transactions: Vec<Transaction>Transaction history
operation_count: u64Total number of operations performed
Trait Implementations§
Source§impl Clone for BankingState
impl Clone for BankingState
Source§fn clone(&self) -> BankingState
fn clone(&self) -> BankingState
Returns a duplicate 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 BankingState
impl Debug for BankingState
Source§impl Default for BankingState
impl Default for BankingState
Source§fn default() -> BankingState
fn default() -> BankingState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BankingState
impl<'de> Deserialize<'de> for BankingState
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 BankingState
impl PartialEq for BankingState
Source§impl Serialize for BankingState
impl Serialize for BankingState
impl StructuralPartialEq for BankingState
Auto Trait Implementations§
impl Freeze for BankingState
impl RefUnwindSafe for BankingState
impl Send for BankingState
impl Sync for BankingState
impl Unpin for BankingState
impl UnsafeUnpin for BankingState
impl UnwindSafe for BankingState
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