Enum InstrumentKind
pub enum InstrumentKind {
Spot {
base: Asset,
quote: Asset,
},
PerpetualLinear {
base: Asset,
quote: Asset,
},
PerpetualInverse {
base: Asset,
quote: Asset,
},
Future {
base: Asset,
quote: Asset,
expiry: String,
},
}Expand description
Product classification for an instrument.
Variants§
Implementations§
§impl InstrumentKind
impl InstrumentKind
Trait Implementations§
§impl Clone for InstrumentKind
impl Clone for InstrumentKind
§fn clone(&self) -> InstrumentKind
fn clone(&self) -> InstrumentKind
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for InstrumentKind
impl Debug for InstrumentKind
§impl<'de> Deserialize<'de> for InstrumentKind
impl<'de> Deserialize<'de> for InstrumentKind
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstrumentKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<InstrumentKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Hash for InstrumentKind
impl Hash for InstrumentKind
§impl Ord for InstrumentKind
impl Ord for InstrumentKind
§impl PartialEq for InstrumentKind
impl PartialEq for InstrumentKind
§impl PartialOrd for InstrumentKind
impl PartialOrd for InstrumentKind
§impl Serialize for InstrumentKind
impl Serialize for InstrumentKind
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for InstrumentKind
impl StructuralPartialEq for InstrumentKind
Auto Trait Implementations§
impl Freeze for InstrumentKind
impl RefUnwindSafe for InstrumentKind
impl Send for InstrumentKind
impl Sync for InstrumentKind
impl Unpin for InstrumentKind
impl UnsafeUnpin for InstrumentKind
impl UnwindSafe for InstrumentKind
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)