Struct coreledger_backend::events::AccountUpdate
pub struct AccountUpdate {
pub account_id: AccountId,
pub current_amount: u256,
pub previous_amount: u256,
}
Expand description
Occurs when account balance changes.
Fields§
§account_id: AccountId
Id of the account.
current_amount: u256
Balance of the account after the update.
previous_amount: u256
Balance of the account before the update.
Trait Implementations§
§impl CandidType for AccountUpdate
impl CandidType for AccountUpdate
§impl Clone for AccountUpdate
impl Clone for AccountUpdate
§fn clone(&self) -> AccountUpdate
fn clone(&self) -> AccountUpdate
Returns a copy 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 more§impl<'de> Deserialize<'de> for AccountUpdate
impl<'de> Deserialize<'de> for AccountUpdate
§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 Serialize for AccountUpdate
impl Serialize for AccountUpdate
Auto Trait Implementations§
impl Freeze for AccountUpdate
impl RefUnwindSafe for AccountUpdate
impl Send for AccountUpdate
impl Sync for AccountUpdate
impl Unpin for AccountUpdate
impl UnwindSafe for AccountUpdate
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