pub struct AccountUnits(pub Decimal);Expand description
An amount in an account’s home currency, encoded as a string on the wire.
Tuple Fields§
§0: DecimalImplementations§
Trait Implementations§
Source§impl Clone for AccountUnits
impl Clone for AccountUnits
Source§fn clone(&self) -> AccountUnits
fn clone(&self) -> AccountUnits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccountUnits
Source§impl Debug for AccountUnits
impl Debug for AccountUnits
Source§impl Default for AccountUnits
impl Default for AccountUnits
Source§fn default() -> AccountUnits
fn default() -> AccountUnits
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountUnits
impl<'de> Deserialize<'de> for AccountUnits
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for AccountUnits
impl Display for AccountUnits
impl Eq for AccountUnits
Source§impl From<AccountUnits> for Decimal
impl From<AccountUnits> for Decimal
Source§fn from(value: AccountUnits) -> Self
fn from(value: AccountUnits) -> Self
Converts to this type from the input type.
Source§impl From<Decimal> for AccountUnits
impl From<Decimal> for AccountUnits
Source§impl From<i32> for AccountUnits
impl From<i32> for AccountUnits
Source§impl From<i64> for AccountUnits
impl From<i64> for AccountUnits
Source§impl From<u32> for AccountUnits
impl From<u32> for AccountUnits
Source§impl FromStr for AccountUnits
impl FromStr for AccountUnits
Source§impl Hash for AccountUnits
impl Hash for AccountUnits
Source§impl Ord for AccountUnits
impl Ord for AccountUnits
Source§fn cmp(&self, other: &AccountUnits) -> Ordering
fn cmp(&self, other: &AccountUnits) -> Ordering
1.21.0 (const: unstable) · 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 AccountUnits
impl PartialEq for AccountUnits
Source§impl PartialOrd for AccountUnits
impl PartialOrd for AccountUnits
Source§impl Serialize for AccountUnits
impl Serialize for AccountUnits
impl StructuralPartialEq for AccountUnits
Auto Trait Implementations§
impl Freeze for AccountUnits
impl RefUnwindSafe for AccountUnits
impl Send for AccountUnits
impl Sync for AccountUnits
impl Unpin for AccountUnits
impl UnsafeUnpin for AccountUnits
impl UnwindSafe for AccountUnits
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.