pub struct MultiLegInfo {
pub leg_nums: Option<u32>,
pub strategy_type: Option<u32>,
pub underlying_symbol: Option<String>,
pub underling_stock_name: Option<String>,
pub leg_infos: Vec<OrderLegInfo>,
}Fields§
§leg_nums: Option<u32>腿数
strategy_type: Option<u32>策略类型,交易这边透传
underlying_symbol: Option<String>对应组合期权是标的,例如是腾讯的期权就是700,下单的时候客户端传
underling_stock_name: Option<String>返回上面标的对应的名词
leg_infos: Vec<OrderLegInfo>Implementations§
Source§impl MultiLegInfo
impl MultiLegInfo
Sourcepub fn leg_nums(&self) -> u32
pub fn leg_nums(&self) -> u32
Returns the value of leg_nums, or the default value if leg_nums is unset.
Sourcepub fn strategy_type(&self) -> u32
pub fn strategy_type(&self) -> u32
Returns the value of strategy_type, or the default value if strategy_type is unset.
Sourcepub fn underlying_symbol(&self) -> &str
pub fn underlying_symbol(&self) -> &str
Returns the value of underlying_symbol, or the default value if underlying_symbol is unset.
Sourcepub fn underling_stock_name(&self) -> &str
pub fn underling_stock_name(&self) -> &str
Returns the value of underling_stock_name, or the default value if underling_stock_name is unset.
Trait Implementations§
Source§impl Clone for MultiLegInfo
impl Clone for MultiLegInfo
Source§fn clone(&self) -> MultiLegInfo
fn clone(&self) -> MultiLegInfo
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 MultiLegInfo
impl Debug for MultiLegInfo
Source§impl Default for MultiLegInfo
impl Default for MultiLegInfo
Source§impl Message for MultiLegInfo
impl Message for MultiLegInfo
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 MultiLegInfo
impl PartialEq for MultiLegInfo
impl StructuralPartialEq for MultiLegInfo
Auto Trait Implementations§
impl Freeze for MultiLegInfo
impl RefUnwindSafe for MultiLegInfo
impl Send for MultiLegInfo
impl Sync for MultiLegInfo
impl Unpin for MultiLegInfo
impl UnsafeUnpin for MultiLegInfo
impl UnwindSafe for MultiLegInfo
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