pub struct OptionsAccount {
pub id: Vec<u8>,
pub balances: HashMap<Vec<u8>, u64>,
pub state_hash: Vec<u8>,
}Fields§
§id: Vec<u8>Account ID
balances: HashMap<Vec<u8>, u64>Balances of the account with asset id as key and balance as value
state_hash: Vec<u8>state hash of the account
Implementations§
Source§impl OptionsAccount
impl OptionsAccount
pub fn update_state_hash(&mut self)
pub fn hash_state(&self) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for OptionsAccount
impl Clone for OptionsAccount
Source§impl Debug for OptionsAccount
impl Debug for OptionsAccount
Source§impl Default for OptionsAccount
impl Default for OptionsAccount
Source§impl<'de> Deserialize<'de> for OptionsAccount
impl<'de> Deserialize<'de> for OptionsAccount
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
impl Eq for OptionsAccount
Source§impl PartialEq for OptionsAccount
impl PartialEq for OptionsAccount
Source§impl Serialize for OptionsAccount
impl Serialize for OptionsAccount
impl StructuralPartialEq for OptionsAccount
Auto Trait Implementations§
impl Forget for OptionsAccount
impl Freeze for OptionsAccount
impl RefUnwindSafe for OptionsAccount
impl Send for OptionsAccount
impl Sync for OptionsAccount
impl Unpin for OptionsAccount
impl UnsafeUnpin for OptionsAccount
impl UnwindSafe for OptionsAccount
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