Enum okane_core::datamodel::Exchange
source · pub enum Exchange {
Total(Amount),
Rate(Amount),
}Expand description
Commodity exchange information.
Variants§
Total(Amount)
Represents the amount equals to the ExchangedAmount.amount.
Rate(Amount)
Represents te amount equals to 1 ExchangedAmount.amount.commodity.
Trait Implementations§
source§impl PartialEq for Exchange
impl PartialEq for Exchange
impl Eq for Exchange
impl StructuralEq for Exchange
impl StructuralPartialEq for Exchange
Auto Trait Implementations§
impl RefUnwindSafe for Exchange
impl Send for Exchange
impl Sync for Exchange
impl Unpin for Exchange
impl UnwindSafe for Exchange
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