pub enum OrderEventAny {
Show 17 variants
Initialized(OrderInitialized),
Denied(OrderDenied),
Emulated(OrderEmulated),
Released(OrderReleased),
Submitted(OrderSubmitted),
Accepted(OrderAccepted),
Rejected(OrderRejected),
Canceled(OrderCanceled),
Expired(OrderExpired),
Triggered(OrderTriggered),
PendingUpdate(OrderPendingUpdate),
PendingCancel(OrderPendingCancel),
ModifyRejected(OrderModifyRejected),
CancelRejected(OrderCancelRejected),
Updated(OrderUpdated),
PartiallyFilled(OrderFilled),
Filled(OrderFilled),
}
Expand description
Wraps an OrderEvent
allowing polymorphism.
Variants§
Initialized(OrderInitialized)
Denied(OrderDenied)
Emulated(OrderEmulated)
Released(OrderReleased)
Submitted(OrderSubmitted)
Accepted(OrderAccepted)
Rejected(OrderRejected)
Canceled(OrderCanceled)
Expired(OrderExpired)
Triggered(OrderTriggered)
PendingUpdate(OrderPendingUpdate)
PendingCancel(OrderPendingCancel)
ModifyRejected(OrderModifyRejected)
CancelRejected(OrderCancelRejected)
Updated(OrderUpdated)
PartiallyFilled(OrderFilled)
Filled(OrderFilled)
Implementations§
Source§impl OrderEventAny
impl OrderEventAny
pub fn into_boxed(self) -> Box<dyn OrderEvent>
pub fn event_type(&self) -> OrderEventType
pub fn trader_id(&self) -> TraderId
pub fn client_order_id(&self) -> ClientOrderId
pub fn strategy_id(&self) -> StrategyId
pub fn ts_event(&self) -> UnixNanos
pub fn message(&self) -> Option<Ustr>
Trait Implementations§
Source§impl Clone for OrderEventAny
impl Clone for OrderEventAny
Source§fn clone(&self) -> OrderEventAny
fn clone(&self) -> OrderEventAny
Returns a copy of the value. Read more
1.0.0 · 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 OrderEventAny
impl Debug for OrderEventAny
Source§impl<'de> Deserialize<'de> for OrderEventAny
impl<'de> Deserialize<'de> for OrderEventAny
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
Source§impl Display for OrderEventAny
impl Display for OrderEventAny
Source§impl From<OrderEventAny> for OrderFilled
impl From<OrderEventAny> for OrderFilled
Source§fn from(event: OrderEventAny) -> OrderFilled
fn from(event: OrderEventAny) -> OrderFilled
Converts to this type from the input type.
Source§impl PartialEq for OrderEventAny
impl PartialEq for OrderEventAny
Source§impl Serialize for OrderEventAny
impl Serialize for OrderEventAny
impl Eq for OrderEventAny
impl StructuralPartialEq for OrderEventAny
Auto Trait Implementations§
impl Freeze for OrderEventAny
impl RefUnwindSafe for OrderEventAny
impl Send for OrderEventAny
impl Sync for OrderEventAny
impl Unpin for OrderEventAny
impl UnwindSafe for OrderEventAny
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<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.Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given
SeparatorPolicy
. Read moreSource§fn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
Source§fn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
Source§fn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
Source§fn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more