pub enum ExecutionType {
Show 13 variants
New,
PartialFill,
Fill,
Cancelled,
Replaced,
PendingCancel,
Rejected,
Suspended,
PendingNew,
Trade,
OrderStatus,
Corrected,
Unknown,
}Expand description
Type of an execution report (executionType): why the broker sent this message.
A fill arrives as PartialFill or Fill, a trade as Trade, and OrderStatus is a plain status
report with no new fill. The wire form is a digit string.
§Examples
use brokapi_bcs_protocol::models::enums::ExecutionType;
assert_eq!(serde_json::from_str::<ExecutionType>("\"11\"")?, ExecutionType::Trade);Variants§
New
The order is new ("0").
PartialFill
Partly filled ("1").
Fill
Fully filled ("2").
Cancelled
Cancelled ("4").
Replaced
Replaced ("5").
PendingCancel
Waiting for cancel ("6").
Rejected
Rejected ("8").
Suspended
Suspended ("9").
PendingNew
Waiting for confirmation of the new order ("10").
Trade
A trade ("11").
OrderStatus
A status report ("12").
Corrected
A corrected report ("13").
Unknown
A value this library does not know.
Trait Implementations§
Source§impl Clone for ExecutionType
impl Clone for ExecutionType
Source§fn clone(&self) -> ExecutionType
fn clone(&self) -> ExecutionType
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 moreimpl Copy for ExecutionType
Source§impl Debug for ExecutionType
impl Debug for ExecutionType
Source§impl<'de> Deserialize<'de> for ExecutionType
impl<'de> Deserialize<'de> for ExecutionType
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 ExecutionType
Source§impl PartialEq for ExecutionType
impl PartialEq for ExecutionType
Source§fn eq(&self, other: &ExecutionType) -> bool
fn eq(&self, other: &ExecutionType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExecutionType
impl Serialize for ExecutionType
impl StructuralPartialEq for ExecutionType
Auto Trait Implementations§
impl Freeze for ExecutionType
impl RefUnwindSafe for ExecutionType
impl Send for ExecutionType
impl Sync for ExecutionType
impl Unpin for ExecutionType
impl UnsafeUnpin for ExecutionType
impl UnwindSafe for ExecutionType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.