#[non_exhaustive]pub enum StopOrderReason {
ClientOrder,
Replacement,
Unknown(String),
}Expand description
The reason that the Stop Order was initiated
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.
ClientOrder
The Stop Order was initiated at the request of a client
Replacement
The Stop Order was initiated as a replacement for an existing Order
Unknown(String)
An unrecognized provider value, preserved for forward compatibility.
Implementations§
Trait Implementations§
Source§impl Clone for StopOrderReason
impl Clone for StopOrderReason
Source§impl Debug for StopOrderReason
impl Debug for StopOrderReason
Source§impl<'de> Deserialize<'de> for StopOrderReason
impl<'de> Deserialize<'de> for StopOrderReason
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 StopOrderReason
Source§impl Hash for StopOrderReason
impl Hash for StopOrderReason
Source§impl PartialEq for StopOrderReason
impl PartialEq for StopOrderReason
Source§impl Serialize for StopOrderReason
impl Serialize for StopOrderReason
impl StructuralPartialEq for StopOrderReason
Auto Trait Implementations§
impl Freeze for StopOrderReason
impl RefUnwindSafe for StopOrderReason
impl Send for StopOrderReason
impl Sync for StopOrderReason
impl Unpin for StopOrderReason
impl UnsafeUnpin for StopOrderReason
impl UnwindSafe for StopOrderReason
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