pub struct ComboOrder {
pub legs: Vec<ComboLeg>,
pub quantity: String,
pub price: Option<String>,
pub side: u32,
pub order_id_ex: Option<String>,
pub strategy_id: u32,
pub sub_account_id: Option<u64>,
pub security: PreviewSecurity,
pub order_type: i32,
pub sub_account_type: Option<u32>,
}Fields§
§legs: Vec<ComboLeg>§quantity: String§price: Option<String>§side: u32§order_id_ex: Option<String>§strategy_id: u32§sub_account_id: Option<u64>§security: PreviewSecurityDesktop combo trade stock used by CMD20303.
order_type: i32Trd_Common.OrderType used by CMD20303.
sub_account_type: Option<u32>Implementations§
Source§impl ComboOrder
impl ComboOrder
Sourcepub fn price(&self) -> &str
pub fn price(&self) -> &str
Returns the value of price, or the default value if price is unset.
Sourcepub fn order_id_ex(&self) -> &str
pub fn order_id_ex(&self) -> &str
Returns the value of order_id_ex, or the default value if order_id_ex is unset.
Sourcepub fn sub_account_id(&self) -> u64
pub fn sub_account_id(&self) -> u64
Returns the value of sub_account_id, or the default value if sub_account_id is unset.
Sourcepub fn sub_account_type(&self) -> u32
pub fn sub_account_type(&self) -> u32
Returns the value of sub_account_type, or the default value if sub_account_type is unset.
Trait Implementations§
Source§impl Clone for ComboOrder
impl Clone for ComboOrder
Source§fn clone(&self) -> ComboOrder
fn clone(&self) -> ComboOrder
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 ComboOrder
impl Debug for ComboOrder
Source§impl Default for ComboOrder
impl Default for ComboOrder
Source§impl<'de> Deserialize<'de> for ComboOrderwhere
ComboOrder: Default,
impl<'de> Deserialize<'de> for ComboOrderwhere
ComboOrder: Default,
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 Message for ComboOrder
impl Message for ComboOrder
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ComboOrder
impl PartialEq for ComboOrder
Source§fn eq(&self, other: &ComboOrder) -> bool
fn eq(&self, other: &ComboOrder) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComboOrder
impl Serialize for ComboOrder
impl StructuralPartialEq for ComboOrder
Auto Trait Implementations§
impl Freeze for ComboOrder
impl RefUnwindSafe for ComboOrder
impl Send for ComboOrder
impl Sync for ComboOrder
impl Unpin for ComboOrder
impl UnsafeUnpin for ComboOrder
impl UnwindSafe for ComboOrder
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