pub enum TradeDirection {
OPEN_LONG,
OPEN_SHORT,
CLOSE_LONG,
CLOSE_SHORT,
LONG_TO_SHORT,
SHORT_TO_LONG,
}Expand description
Enum for trade direction.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TradeDirection
impl Clone for TradeDirection
Source§fn clone(&self) -> TradeDirection
fn clone(&self) -> TradeDirection
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 TradeDirection
Source§impl Debug for TradeDirection
impl Debug for TradeDirection
Source§impl<'de> Deserialize<'de> for TradeDirection
impl<'de> Deserialize<'de> for TradeDirection
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 TradeDirection
Source§impl Hash for TradeDirection
impl Hash for TradeDirection
Source§impl PartialEq for TradeDirection
impl PartialEq for TradeDirection
Source§fn eq(&self, other: &TradeDirection) -> bool
fn eq(&self, other: &TradeDirection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TradeDirection
impl Serialize for TradeDirection
impl StructuralPartialEq for TradeDirection
Auto Trait Implementations§
impl Freeze for TradeDirection
impl RefUnwindSafe for TradeDirection
impl Send for TradeDirection
impl Sync for TradeDirection
impl Unpin for TradeDirection
impl UnsafeUnpin for TradeDirection
impl UnwindSafe for TradeDirection
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