#[non_exhaustive]pub enum TradeStateFilter {
Open,
Closed,
CloseWhenTradeable,
All,
Unknown(String),
}Expand description
The state to filter the Trades by
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.
Open
The Trades that are currently open
Closed
The Trades that have been fully closed
CloseWhenTradeable
The Trades that will be closed as soon as the trades’ instrument becomes tradeable
All
The Trades that are in any of the possible states listed above.
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for TradeStateFilter
impl Clone for TradeStateFilter
Source§impl Debug for TradeStateFilter
impl Debug for TradeStateFilter
Source§impl<'de> Deserialize<'de> for TradeStateFilter
impl<'de> Deserialize<'de> for TradeStateFilter
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TradeStateFilter
Source§impl Hash for TradeStateFilter
impl Hash for TradeStateFilter
Source§impl PartialEq for TradeStateFilter
impl PartialEq for TradeStateFilter
Source§impl Serialize for TradeStateFilter
impl Serialize for TradeStateFilter
impl StructuralPartialEq for TradeStateFilter
Auto Trait Implementations§
impl Freeze for TradeStateFilter
impl RefUnwindSafe for TradeStateFilter
impl Send for TradeStateFilter
impl Sync for TradeStateFilter
impl Unpin for TradeStateFilter
impl UnsafeUnpin for TradeStateFilter
impl UnwindSafe for TradeStateFilter
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