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 StructuralPartialEq for Exchange
Auto Trait Implementations§
impl Freeze for Exchange
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)