pub enum LedgerAmount {
Simple(String),
Multi(Vec<CurrencyAmount>),
}Expand description
Balance representation — mirrors JSS’s flexible amount field.
Variants§
Simple(String)
Multi(Vec<CurrencyAmount>)
Implementations§
Trait Implementations§
Source§impl Clone for LedgerAmount
impl Clone for LedgerAmount
Source§fn clone(&self) -> LedgerAmount
fn clone(&self) -> LedgerAmount
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 moreSource§impl Debug for LedgerAmount
impl Debug for LedgerAmount
Source§impl<'de> Deserialize<'de> for LedgerAmount
impl<'de> Deserialize<'de> for LedgerAmount
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
Auto Trait Implementations§
impl Freeze for LedgerAmount
impl RefUnwindSafe for LedgerAmount
impl Send for LedgerAmount
impl Sync for LedgerAmount
impl Unpin for LedgerAmount
impl UnsafeUnpin for LedgerAmount
impl UnwindSafe for LedgerAmount
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