#[non_exhaustive]pub struct ExecutionLeg {
pub leg_id: Option<i64>,
pub price: Option<Decimal>,
pub quantity: Option<Decimal>,
pub mismarked_quantity: Option<Decimal>,
pub instrument_id: Option<i64>,
pub time: Option<DateTime<Utc>>,
}Expand description
One executed leg within an OrderActivity fill row.
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.leg_id: Option<i64>Schwab-assigned leg id this fill is against.
price: Option<Decimal>Fill price, USD.
quantity: Option<Decimal>Quantity filled in this leg.
mismarked_quantity: Option<Decimal>Quantity that was mis-marked at fill time.
instrument_id: Option<i64>Schwab-internal instrument id of the security filled.
time: Option<DateTime<Utc>>Execution time.
Trait Implementations§
Source§impl Clone for ExecutionLeg
impl Clone for ExecutionLeg
Source§fn clone(&self) -> ExecutionLeg
fn clone(&self) -> ExecutionLeg
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 ExecutionLeg
impl Debug for ExecutionLeg
Source§impl Default for ExecutionLeg
impl Default for ExecutionLeg
Source§fn default() -> ExecutionLeg
fn default() -> ExecutionLeg
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionLeg
impl<'de> Deserialize<'de> for ExecutionLeg
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 ExecutionLeg
impl Hash for ExecutionLeg
Source§impl PartialEq for ExecutionLeg
impl PartialEq for ExecutionLeg
Source§fn eq(&self, other: &ExecutionLeg) -> bool
fn eq(&self, other: &ExecutionLeg) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExecutionLeg
impl StructuralPartialEq for ExecutionLeg
Auto Trait Implementations§
impl Freeze for ExecutionLeg
impl RefUnwindSafe for ExecutionLeg
impl Send for ExecutionLeg
impl Sync for ExecutionLeg
impl Unpin for ExecutionLeg
impl UnsafeUnpin for ExecutionLeg
impl UnwindSafe for ExecutionLeg
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.