#[non_exhaustive]pub enum TradeMode {
Cash,
Cross,
Isolated,
SpotIsolated,
Unknown(String),
}Expand description
Trade (margin) mode.
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.
Cash
Non-margin (cash).
Cross
Cross margin.
Isolated
Isolated margin.
SpotIsolated
Spot isolated margin mode.
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 TradeMode
impl<'de> Deserialize<'de> for TradeMode
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 TradeMode
impl StructuralPartialEq for TradeMode
Auto Trait Implementations§
impl Freeze for TradeMode
impl RefUnwindSafe for TradeMode
impl Send for TradeMode
impl Sync for TradeMode
impl Unpin for TradeMode
impl UnsafeUnpin for TradeMode
impl UnwindSafe for TradeMode
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