pub struct ComboInfo {
pub combo_id: Option<String>,
pub strategy_type: Option<u32>,
pub combo_type: Option<i32>,
pub underlying: Option<String>,
pub summary_combo_info: Option<AccPstnInfo>,
pub leg_list: Vec<AccPstnInfo>,
}Expand description
组合持仓
Fields§
§combo_id: Option<String>组合ID
strategy_type: Option<u32>组合策略类型, 参考http://fservice.server.com/protocol/public-list option_strategy_type
combo_type: Option<i32>0->多仓, 1->空仓
underlying: Option<String>标的物futu_symbol
summary_combo_info: Option<AccPstnInfo>汇总组合持仓信息
leg_list: Vec<AccPstnInfo>组合中的腿
Implementations§
Source§impl ComboInfo
impl ComboInfo
Sourcepub fn combo_id(&self) -> &str
pub fn combo_id(&self) -> &str
Returns the value of combo_id, or the default value if combo_id 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 combo_type(&self) -> i32
pub fn combo_type(&self) -> i32
Returns the value of combo_type, or the default value if combo_type is unset.
Sourcepub fn underlying(&self) -> &str
pub fn underlying(&self) -> &str
Returns the value of underlying, or the default value if underlying is unset.
Trait Implementations§
Source§impl Message for ComboInfo
impl Message for ComboInfo
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.impl StructuralPartialEq for ComboInfo
Auto Trait Implementations§
impl Freeze for ComboInfo
impl RefUnwindSafe for ComboInfo
impl Send for ComboInfo
impl Sync for ComboInfo
impl Unpin for ComboInfo
impl UnsafeUnpin for ComboInfo
impl UnwindSafe for ComboInfo
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