pub enum BalanceChanged {
Increase(AssetAmount),
Decrease(AssetAmount),
}Variants§
Increase(AssetAmount)
Decrease(AssetAmount)
Implementations§
Trait Implementations§
source§impl Clone for BalanceChanged
impl Clone for BalanceChanged
source§fn clone(&self) -> BalanceChanged
fn clone(&self) -> BalanceChanged
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 moresource§impl Debug for BalanceChanged
impl Debug for BalanceChanged
source§impl<'de> Deserialize<'de> for BalanceChanged
impl<'de> Deserialize<'de> for BalanceChanged
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 From<BalanceChanged> for CandidBalanceChanged
impl From<BalanceChanged> for CandidBalanceChanged
source§fn from(balance_changed: BalanceChanged) -> Self
fn from(balance_changed: BalanceChanged) -> Self
Converts to this type from the input type.
source§impl From<CandidBalanceChanged> for BalanceChanged
impl From<CandidBalanceChanged> for BalanceChanged
source§fn from(candid_balance_changed: CandidBalanceChanged) -> Self
fn from(candid_balance_changed: CandidBalanceChanged) -> Self
Converts to this type from the input type.
source§impl PartialEq for BalanceChanged
impl PartialEq for BalanceChanged
source§fn eq(&self, other: &BalanceChanged) -> bool
fn eq(&self, other: &BalanceChanged) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for BalanceChanged
impl Serialize for BalanceChanged
source§impl Storable for BalanceChanged
impl Storable for BalanceChanged
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for BalanceChanged
impl StructuralPartialEq for BalanceChanged
Auto Trait Implementations§
impl Freeze for BalanceChanged
impl RefUnwindSafe for BalanceChanged
impl Send for BalanceChanged
impl Sync for BalanceChanged
impl Unpin for BalanceChanged
impl UnwindSafe for BalanceChanged
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