#[non_exhaustive]pub struct OrderActivity {
pub activity_type: Option<OrderActivityType>,
pub execution_type: Option<ExecutionType>,
pub quantity: Option<Decimal>,
pub order_remaining_quantity: Option<Decimal>,
pub execution_legs: Vec<ExecutionLeg>,
}Expand description
One lifecycle event in an order’s activity history (a fill or an order action).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.activity_type: Option<OrderActivityType>Whether this row is an execution or an order action.
execution_type: Option<ExecutionType>For executions, the kind of execution.
quantity: Option<Decimal>Quantity affected by this activity.
order_remaining_quantity: Option<Decimal>Order quantity still working after this activity.
execution_legs: Vec<ExecutionLeg>Per-leg detail for executions.
Trait Implementations§
Source§impl Clone for OrderActivity
impl Clone for OrderActivity
Source§fn clone(&self) -> OrderActivity
fn clone(&self) -> OrderActivity
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 OrderActivity
impl Debug for OrderActivity
Source§impl Default for OrderActivity
impl Default for OrderActivity
Source§fn default() -> OrderActivity
fn default() -> OrderActivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrderActivity
impl<'de> Deserialize<'de> for OrderActivity
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 Hash for OrderActivity
impl Hash for OrderActivity
Source§impl PartialEq for OrderActivity
impl PartialEq for OrderActivity
Source§fn eq(&self, other: &OrderActivity) -> bool
fn eq(&self, other: &OrderActivity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OrderActivity
impl StructuralPartialEq for OrderActivity
Auto Trait Implementations§
impl Freeze for OrderActivity
impl RefUnwindSafe for OrderActivity
impl Send for OrderActivity
impl Sync for OrderActivity
impl Unpin for OrderActivity
impl UnsafeUnpin for OrderActivity
impl UnwindSafe for OrderActivity
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,
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.