#[non_exhaustive]pub enum TradeState {
Open,
Closed,
CloseWhenTradeable,
Unknown(String),
}Expand description
The current state of the Trade.
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 Trade is currently open
Closed
The Trade has been fully closed
CloseWhenTradeable
The Trade will be closed as soon as the trade’s instrument becomes tradeable
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for TradeState
impl Clone for TradeState
Source§impl Debug for TradeState
impl Debug for TradeState
Source§impl<'de> Deserialize<'de> for TradeState
impl<'de> Deserialize<'de> for TradeState
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 TradeState
Source§impl Hash for TradeState
impl Hash for TradeState
Source§impl PartialEq for TradeState
impl PartialEq for TradeState
Source§impl Serialize for TradeState
impl Serialize for TradeState
impl StructuralPartialEq for TradeState
Auto Trait Implementations§
impl Freeze for TradeState
impl RefUnwindSafe for TradeState
impl Send for TradeState
impl Sync for TradeState
impl Unpin for TradeState
impl UnsafeUnpin for TradeState
impl UnwindSafe for TradeState
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