pub struct ComboTradeLeg {
pub instrument_name: String,
pub amount: String,
pub direction: OrderSide,
}Expand description
Trade leg for combo creation request
Used when creating a combo via /private/create_combo.
Specifies the instrument, amount (as string), and direction.
Fields§
§instrument_name: StringInstrument name
amount: StringAmount as string (API requirement)
direction: OrderSideTrade direction
Implementations§
Trait Implementations§
Source§impl Clone for ComboTradeLeg
impl Clone for ComboTradeLeg
Source§fn clone(&self) -> ComboTradeLeg
fn clone(&self) -> ComboTradeLeg
Returns a duplicate 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 ComboTradeLeg
impl Debug for ComboTradeLeg
Source§impl<'de> Deserialize<'de> for ComboTradeLeg
impl<'de> Deserialize<'de> for ComboTradeLeg
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 ComboTradeLeg
impl Display for ComboTradeLeg
Source§impl PartialEq for ComboTradeLeg
impl PartialEq for ComboTradeLeg
Source§impl Serialize for ComboTradeLeg
impl Serialize for ComboTradeLeg
impl StructuralPartialEq for ComboTradeLeg
Auto Trait Implementations§
impl Freeze for ComboTradeLeg
impl RefUnwindSafe for ComboTradeLeg
impl Send for ComboTradeLeg
impl Sync for ComboTradeLeg
impl Unpin for ComboTradeLeg
impl UnsafeUnpin for ComboTradeLeg
impl UnwindSafe for ComboTradeLeg
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