pub enum QuantityUnit {
StandardLot,
BaseAsset,
Contract,
QuoteAsset,
}Expand description
Unit represented by an instrument quantity.
Variants§
Trait Implementations§
Source§impl Clone for QuantityUnit
impl Clone for QuantityUnit
Source§fn clone(&self) -> QuantityUnit
fn clone(&self) -> QuantityUnit
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 QuantityUnit
Source§impl Debug for QuantityUnit
impl Debug for QuantityUnit
Source§impl<'de> Deserialize<'de> for QuantityUnit
impl<'de> Deserialize<'de> for QuantityUnit
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
impl Eq for QuantityUnit
Source§impl Ord for QuantityUnit
impl Ord for QuantityUnit
Source§fn cmp(&self, other: &QuantityUnit) -> Ordering
fn cmp(&self, other: &QuantityUnit) -> 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for QuantityUnit
impl PartialEq for QuantityUnit
Source§impl PartialOrd for QuantityUnit
impl PartialOrd for QuantityUnit
Source§impl Serialize for QuantityUnit
impl Serialize for QuantityUnit
impl StructuralPartialEq for QuantityUnit
Auto Trait Implementations§
impl Freeze for QuantityUnit
impl RefUnwindSafe for QuantityUnit
impl Send for QuantityUnit
impl Sync for QuantityUnit
impl Unpin for QuantityUnit
impl UnsafeUnpin for QuantityUnit
impl UnwindSafe for QuantityUnit
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