pub struct GetComboOptionListReq {
pub strategy: Option<i32>,
pub stock_id: Option<u64>,
pub spread: Option<i64>,
pub strike_date: Option<u64>,
pub expiration: Option<u32>,
pub index_option_type: Option<u32>,
pub standard_type: Option<u32>,
pub filetr_data: Option<FilterData>,
}Expand description
CMD 6736: 查询组合期权列表(Rust daemon 仅使用单腿策略 strategy=1, 起到服务端 Greek filter 的作用)
Fields§
§strategy: Option<i32>Rust daemon 填 1 (SingleOption)
stock_id: Option<u64>标的正股 stock_id
spread: Option<i64>单腿下填 0
strike_date: Option<u64>行权日(timestamp,和 CMD 6311 返回对齐)
expiration: Option<u32>到期类型 ExpirationType
index_option_type: Option<u32>§standard_type: Option<u32>§filetr_data: Option<FilterData>注意:字段名是 filetr_data (typo),对齐 C++ 源
Implementations§
Source§impl GetComboOptionListReq
impl GetComboOptionListReq
Sourcepub fn strategy(&self) -> i32
pub fn strategy(&self) -> i32
Returns the value of strategy, or the default value if strategy is unset.
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id is unset.
Sourcepub fn spread(&self) -> i64
pub fn spread(&self) -> i64
Returns the value of spread, or the default value if spread is unset.
Sourcepub fn strike_date(&self) -> u64
pub fn strike_date(&self) -> u64
Returns the value of strike_date, or the default value if strike_date is unset.
Sourcepub fn expiration(&self) -> u32
pub fn expiration(&self) -> u32
Returns the value of expiration, or the default value if expiration is unset.
Sourcepub fn index_option_type(&self) -> u32
pub fn index_option_type(&self) -> u32
Returns the value of index_option_type, or the default value if index_option_type is unset.
Sourcepub fn standard_type(&self) -> u32
pub fn standard_type(&self) -> u32
Returns the value of standard_type, or the default value if standard_type is unset.
Trait Implementations§
Source§impl Clone for GetComboOptionListReq
impl Clone for GetComboOptionListReq
Source§fn clone(&self) -> GetComboOptionListReq
fn clone(&self) -> GetComboOptionListReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetComboOptionListReq
impl Debug for GetComboOptionListReq
Source§impl Default for GetComboOptionListReq
impl Default for GetComboOptionListReq
Source§impl Hash for GetComboOptionListReq
impl Hash for GetComboOptionListReq
Source§impl Message for GetComboOptionListReq
impl Message for GetComboOptionListReq
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for GetComboOptionListReq
impl PartialEq for GetComboOptionListReq
impl Copy for GetComboOptionListReq
impl Eq for GetComboOptionListReq
impl StructuralPartialEq for GetComboOptionListReq
Auto Trait Implementations§
impl Freeze for GetComboOptionListReq
impl RefUnwindSafe for GetComboOptionListReq
impl Send for GetComboOptionListReq
impl Sync for GetComboOptionListReq
impl Unpin for GetComboOptionListReq
impl UnsafeUnpin for GetComboOptionListReq
impl UnwindSafe for GetComboOptionListReq
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.