pub struct GetOptionSpreadListReq {
pub strategy: Option<i32>,
pub stock_id: Option<u64>,
pub strike_date: Option<u64>,
pub expiration: Option<u32>,
pub strike_date_item: Vec<NewStrikeDateItem>,
}Expand description
CMD 6735: 查询期权策略有效价差列表。
Fields§
§strategy: Option<i32>§stock_id: Option<u64>§strike_date: Option<u64>§expiration: Option<u32>§strike_date_item: Vec<NewStrikeDateItem>Implementations§
Source§impl GetOptionSpreadListReq
impl GetOptionSpreadListReq
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 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.
Trait Implementations§
Source§impl Clone for GetOptionSpreadListReq
impl Clone for GetOptionSpreadListReq
Source§fn clone(&self) -> GetOptionSpreadListReq
fn clone(&self) -> GetOptionSpreadListReq
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 GetOptionSpreadListReq
impl Debug for GetOptionSpreadListReq
Source§impl Default for GetOptionSpreadListReq
impl Default for GetOptionSpreadListReq
Source§impl Message for GetOptionSpreadListReq
impl Message for GetOptionSpreadListReq
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 GetOptionSpreadListReq
impl PartialEq for GetOptionSpreadListReq
impl StructuralPartialEq for GetOptionSpreadListReq
Auto Trait Implementations§
impl Freeze for GetOptionSpreadListReq
impl RefUnwindSafe for GetOptionSpreadListReq
impl Send for GetOptionSpreadListReq
impl Sync for GetOptionSpreadListReq
impl Unpin for GetOptionSpreadListReq
impl UnsafeUnpin for GetOptionSpreadListReq
impl UnwindSafe for GetOptionSpreadListReq
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