#[non_exhaustive]pub enum TradeLogType {
Buy,
Sell,
Unknown(i32),
}Expand description
A ProjectX market-trade aggressor classification.
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.
Buy
Buyer-initiated trade.
Sell
Seller-initiated trade.
Unknown(i32)
Provider code not known to this crate version.
Implementations§
Trait Implementations§
Source§impl Clone for TradeLogType
impl Clone for TradeLogType
Source§fn clone(&self) -> TradeLogType
fn clone(&self) -> TradeLogType
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 TradeLogType
Source§impl Debug for TradeLogType
impl Debug for TradeLogType
Source§impl<'de> Deserialize<'de> for TradeLogType
impl<'de> Deserialize<'de> for TradeLogType
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 TradeLogType
Source§impl PartialEq for TradeLogType
impl PartialEq for TradeLogType
Source§impl Serialize for TradeLogType
impl Serialize for TradeLogType
impl StructuralPartialEq for TradeLogType
Auto Trait Implementations§
impl Freeze for TradeLogType
impl RefUnwindSafe for TradeLogType
impl Send for TradeLogType
impl Sync for TradeLogType
impl Unpin for TradeLogType
impl UnsafeUnpin for TradeLogType
impl UnwindSafe for TradeLogType
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