pub struct OptionExpirationDate {
pub strike_time: Option<String>,
pub strike_timestamp: Option<f64>,
pub option_expiry_date_distance: i32,
pub cycle: Option<i32>,
}Fields§
§strike_time: Option<String>期权链行权日(港股和 A 股市场默认是北京时间,美股市场默认是美东时间)
strike_timestamp: Option<f64>行权日时间戳
option_expiry_date_distance: i32距离到期日天数,负数表示已过期
cycle: Option<i32>Qot_Common.ExpirationCycle,交割周期(仅用于香港指数期权)
Implementations§
Source§impl OptionExpirationDate
impl OptionExpirationDate
Sourcepub fn strike_time(&self) -> &str
pub fn strike_time(&self) -> &str
Returns the value of strike_time, or the default value if strike_time is unset.
Sourcepub fn strike_timestamp(&self) -> f64
pub fn strike_timestamp(&self) -> f64
Returns the value of strike_timestamp, or the default value if strike_timestamp is unset.
Trait Implementations§
Source§impl Clone for OptionExpirationDate
impl Clone for OptionExpirationDate
Source§fn clone(&self) -> OptionExpirationDate
fn clone(&self) -> OptionExpirationDate
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 OptionExpirationDate
impl Debug for OptionExpirationDate
Source§impl Default for OptionExpirationDate
impl Default for OptionExpirationDate
Source§impl<'de> Deserialize<'de> for OptionExpirationDatewhere
OptionExpirationDate: Default,
impl<'de> Deserialize<'de> for OptionExpirationDatewhere
OptionExpirationDate: 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 OptionExpirationDate
impl Message for OptionExpirationDate
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 OptionExpirationDate
impl PartialEq for OptionExpirationDate
Source§impl Serialize for OptionExpirationDate
impl Serialize for OptionExpirationDate
impl StructuralPartialEq for OptionExpirationDate
Auto Trait Implementations§
impl Freeze for OptionExpirationDate
impl RefUnwindSafe for OptionExpirationDate
impl Send for OptionExpirationDate
impl Sync for OptionExpirationDate
impl Unpin for OptionExpirationDate
impl UnwindSafe for OptionExpirationDate
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