pub enum TransactionSide {
Long,
Short,
OpenBuy,
OpenSell,
CloseBuy,
CloseSell,
None,
}Expand description
Transaction side enumeration indicating the direction or type of trade
Variants§
Long
Long position
Short
Short position
OpenBuy
Opening buy position
OpenSell
Opening sell position
CloseBuy
Closing buy position
CloseSell
Closing sell position
None
No specific side
Trait Implementations§
Source§impl Clone for TransactionSide
impl Clone for TransactionSide
Source§fn clone(&self) -> TransactionSide
fn clone(&self) -> TransactionSide
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionSide
impl Debug for TransactionSide
Source§impl<'de> Deserialize<'de> for TransactionSide
impl<'de> Deserialize<'de> for TransactionSide
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
Auto Trait Implementations§
impl Freeze for TransactionSide
impl RefUnwindSafe for TransactionSide
impl Send for TransactionSide
impl Sync for TransactionSide
impl Unpin for TransactionSide
impl UnwindSafe for TransactionSide
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