pub enum TradeStatus {
Open,
Closed,
Expired,
Exercised,
Assigned,
Other(String),
}Expand description
§Transaction Status
Represents the current state of an options transaction in the system.
This enum tracks the lifecycle status of option transactions as they move through various states from creation to completion. Each status represents a meaningful business state that affects how the transaction is processed, displayed, and included in profit and loss calculations.
§Status Values
Open- The transaction is currently active and has not been closed or settledClosed- The transaction has been manually closed before expirationExpired- The transaction reached its expiration date without being exercisedExercised- The option was exercised, converting it to a position in the underlying assetAssigned- For short options, indicates the counterparty exercised the option
Variants§
Open
open- The transaction is open and active
Closed
closed- The transaction has been closed
Expired
expired- The transaction has expired
Exercised
exercised- The transaction has been exercised
Assigned
assigned- The transaction has been assigned
Other(String)
This enum represents different categories or classifications, including the “Other” category.
Use the Other case to represent items or instances that do not fall into predefined categories.
Trait Implementations§
Source§impl Clone for TradeStatus
impl Clone for TradeStatus
Source§impl ComposeSchema for TradeStatus
impl ComposeSchema for TradeStatus
Source§impl Debug for TradeStatus
impl Debug for TradeStatus
Source§impl Default for TradeStatus
impl Default for TradeStatus
Source§impl<'de> Deserialize<'de> for TradeStatus
impl<'de> Deserialize<'de> for TradeStatus
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 TradeStatus
Source§impl Hash for TradeStatus
impl Hash for TradeStatus
Source§impl PartialEq for TradeStatus
impl PartialEq for TradeStatus
Source§impl Serialize for TradeStatus
impl Serialize for TradeStatus
impl StructuralPartialEq for TradeStatus
Auto Trait Implementations§
impl Freeze for TradeStatus
impl RefUnwindSafe for TradeStatus
impl Send for TradeStatus
impl Sync for TradeStatus
impl Unpin for TradeStatus
impl UnsafeUnpin for TradeStatus
impl UnwindSafe for TradeStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.