#[non_exhaustive]pub enum DealStatus {
Show 21 variants
Created,
BaseOrderPlaced,
Bought,
Cancelled,
Completed,
Failed,
PanicSellPending,
PanicSellOrderPlaced,
PanicSold,
CancelPending,
StopLossPending,
StopLossFinished,
StopLossOrderPlaced,
Switched,
SwitchedTakeProfit,
TtpActivated,
TtpOrderPlaced,
Liquidated,
BoughtSafetyPending,
BoughtTakeProfitPending,
Settled,
}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.
Created
BaseOrderPlaced
Bought
Cancelled
Completed
Failed
PanicSellPending
PanicSellOrderPlaced
PanicSold
CancelPending
StopLossPending
StopLossFinished
StopLossOrderPlaced
Switched
SwitchedTakeProfit
TtpActivated
TtpOrderPlaced
Liquidated
BoughtSafetyPending
BoughtTakeProfitPending
Settled
Trait Implementations§
Source§impl Clone for DealStatus
impl Clone for DealStatus
Source§fn clone(&self) -> DealStatus
fn clone(&self) -> DealStatus
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 DealStatus
impl Debug for DealStatus
Source§impl<'de> Deserialize<'de> for DealStatus
impl<'de> Deserialize<'de> for DealStatus
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
Source§impl Hash for DealStatus
impl Hash for DealStatus
Source§impl PartialEq for DealStatus
impl PartialEq for DealStatus
Source§impl Serialize for DealStatus
impl Serialize for DealStatus
impl Copy for DealStatus
impl Eq for DealStatus
impl StructuralPartialEq for DealStatus
Auto Trait Implementations§
impl Freeze for DealStatus
impl RefUnwindSafe for DealStatus
impl Send for DealStatus
impl Sync for DealStatus
impl Unpin for DealStatus
impl UnwindSafe for DealStatus
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