#[non_exhaustive]pub enum InstType {
Spot,
Margin,
Swap,
Futures,
Option,
Events,
Unknown(String),
}Expand description
Instrument type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Spot
Spot.
Margin
Margin.
Swap
Perpetual Futures.
Futures
Expiry Futures.
Option
Option.
Events
Event Contracts
Unknown(String)
A value not modeled by this version of the crate; the raw string is preserved.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InstType
impl<'de> Deserialize<'de> for InstType
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InstType
impl StructuralPartialEq for InstType
Auto Trait Implementations§
impl Freeze for InstType
impl RefUnwindSafe for InstType
impl Send for InstType
impl Sync for InstType
impl Unpin for InstType
impl UnsafeUnpin for InstType
impl UnwindSafe for InstType
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