pub struct CoinBalance {
pub id: CoinId,
pub value: u128,
}
Expand description
The CoinBalance struct represents a balance of a specific coin type.
Fields§
§id: CoinId
§value: u128
Trait Implementations§
Source§impl CandidType for CoinBalance
impl CandidType for CoinBalance
Source§impl Clone for CoinBalance
impl Clone for CoinBalance
Source§fn clone(&self) -> CoinBalance
fn clone(&self) -> CoinBalance
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 CoinBalance
impl Debug for CoinBalance
Source§impl<'de> Deserialize<'de> for CoinBalance
impl<'de> Deserialize<'de> for CoinBalance
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 Ord for CoinBalance
impl Ord for CoinBalance
Source§fn cmp(&self, other: &CoinBalance) -> Ordering
fn cmp(&self, other: &CoinBalance) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CoinBalance
impl PartialEq for CoinBalance
Source§impl PartialOrd for CoinBalance
impl PartialOrd for CoinBalance
Source§impl Serialize for CoinBalance
impl Serialize for CoinBalance
impl Copy for CoinBalance
impl Eq for CoinBalance
impl StructuralPartialEq for CoinBalance
Auto Trait Implementations§
impl Freeze for CoinBalance
impl RefUnwindSafe for CoinBalance
impl Send for CoinBalance
impl Sync for CoinBalance
impl Unpin for CoinBalance
impl UnwindSafe for CoinBalance
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