#[non_exhaustive]pub struct OrderLegRequest { /* private fields */ }Expand description
One leg of an OrderRequest. Legs are constructed by the builder’s
equity_* / option_* methods.
Implementations§
Source§impl OrderLegRequest
impl OrderLegRequest
Sourcepub fn instruction(&self) -> Option<&Instruction>
pub fn instruction(&self) -> Option<&Instruction>
Side of the order (BUY, SELL, BUY_TO_OPEN, …).
Sourcepub fn instrument(&self) -> Option<&OrderInstrumentRequest>
pub fn instrument(&self) -> Option<&OrderInstrumentRequest>
Instrument the leg trades.
Sourcepub fn position_effect(&self) -> Option<&PositionEffect>
pub fn position_effect(&self) -> Option<&PositionEffect>
Position effect (OPENING, CLOSING).
Sourcepub fn quantity_type(&self) -> Option<&QuantityType>
pub fn quantity_type(&self) -> Option<&QuantityType>
Quantity-type discriminant when the leg expresses quantity in non-share units.
Trait Implementations§
Source§impl Clone for OrderLegRequest
impl Clone for OrderLegRequest
Source§fn clone(&self) -> OrderLegRequest
fn clone(&self) -> OrderLegRequest
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 OrderLegRequest
impl Debug for OrderLegRequest
Source§impl Default for OrderLegRequest
impl Default for OrderLegRequest
Source§fn default() -> OrderLegRequest
fn default() -> OrderLegRequest
Returns the “default value” for a type. Read more
Source§impl Hash for OrderLegRequest
impl Hash for OrderLegRequest
Source§impl PartialEq for OrderLegRequest
impl PartialEq for OrderLegRequest
Source§fn eq(&self, other: &OrderLegRequest) -> bool
fn eq(&self, other: &OrderLegRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OrderLegRequest
impl Serialize for OrderLegRequest
Source§impl TryFrom<OrderLegCollection> for OrderLegRequest
impl TryFrom<OrderLegCollection> for OrderLegRequest
impl Eq for OrderLegRequest
impl StructuralPartialEq for OrderLegRequest
Auto Trait Implementations§
impl Freeze for OrderLegRequest
impl RefUnwindSafe for OrderLegRequest
impl Send for OrderLegRequest
impl Sync for OrderLegRequest
impl Unpin for OrderLegRequest
impl UnsafeUnpin for OrderLegRequest
impl UnwindSafe for OrderLegRequest
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.