pub struct DerivativeUnusualReq {
pub stock_symbol: Option<String>,
pub time_range: Option<i32>,
pub analysis_dimensions: Vec<String>,
pub language_id: Option<i32>,
}Expand description
衍生品异动请求
Fields§
§stock_symbol: Option<String>需要根据股票名、股票代码等匹配,必填
time_range: Option<i32>时间范围天数,默认为7个自然日
analysis_dimensions: Vec<String>可指定具体维度,默认全部
language_id: Option<i32>返回结果语种,0:简中,1:繁中,2:英文,4:泰语,5:日语
Implementations§
Source§impl DerivativeUnusualReq
impl DerivativeUnusualReq
Sourcepub fn stock_symbol(&self) -> &str
pub fn stock_symbol(&self) -> &str
Returns the value of stock_symbol, or the default value if stock_symbol is unset.
Sourcepub fn time_range(&self) -> i32
pub fn time_range(&self) -> i32
Returns the value of time_range, or the default value if time_range is unset.
Sourcepub fn language_id(&self) -> i32
pub fn language_id(&self) -> i32
Returns the value of language_id, or the default value if language_id is unset.
Trait Implementations§
Source§impl Clone for DerivativeUnusualReq
impl Clone for DerivativeUnusualReq
Source§fn clone(&self) -> DerivativeUnusualReq
fn clone(&self) -> DerivativeUnusualReq
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 DerivativeUnusualReq
impl Debug for DerivativeUnusualReq
Source§impl Default for DerivativeUnusualReq
impl Default for DerivativeUnusualReq
Source§impl<'de> Deserialize<'de> for DerivativeUnusualReqwhere
DerivativeUnusualReq: Default,
impl<'de> Deserialize<'de> for DerivativeUnusualReqwhere
DerivativeUnusualReq: 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 Hash for DerivativeUnusualReq
impl Hash for DerivativeUnusualReq
Source§impl Message for DerivativeUnusualReq
impl Message for DerivativeUnusualReq
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 DerivativeUnusualReq
impl PartialEq for DerivativeUnusualReq
Source§impl Serialize for DerivativeUnusualReq
impl Serialize for DerivativeUnusualReq
impl Eq for DerivativeUnusualReq
impl StructuralPartialEq for DerivativeUnusualReq
Auto Trait Implementations§
impl Freeze for DerivativeUnusualReq
impl RefUnwindSafe for DerivativeUnusualReq
impl Send for DerivativeUnusualReq
impl Sync for DerivativeUnusualReq
impl Unpin for DerivativeUnusualReq
impl UnsafeUnpin for DerivativeUnusualReq
impl UnwindSafe for DerivativeUnusualReq
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