#[non_exhaustive]pub enum TradeState {
Open,
Closed,
CloseWhenTradeable,
Other(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
OPEN.
Closed
CLOSED.
CloseWhenTradeable
CLOSE_WHEN_TRADEABLE.
Other(String)
A value not (yet) known to this version of the SDK.
Implementations§
Trait Implementations§
Source§impl Clone for TradeState
impl Clone for TradeState
Source§fn clone(&self) -> TradeState
fn clone(&self) -> TradeState
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 moreSource§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
Source§impl Display for TradeState
impl Display for TradeState
impl Eq for TradeState
Source§impl From<&str> for TradeState
impl From<&str> for TradeState
Source§impl From<String> for TradeState
impl From<String> for TradeState
Source§impl FromStr for TradeState
impl FromStr 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
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.