pub struct FinancialUnusualReq {
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 FinancialUnusualReq
impl FinancialUnusualReq
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 FinancialUnusualReq
impl Clone for FinancialUnusualReq
Source§fn clone(&self) -> FinancialUnusualReq
fn clone(&self) -> FinancialUnusualReq
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 FinancialUnusualReq
impl Debug for FinancialUnusualReq
Source§impl Default for FinancialUnusualReq
impl Default for FinancialUnusualReq
Source§impl<'de> Deserialize<'de> for FinancialUnusualReqwhere
FinancialUnusualReq: Default,
impl<'de> Deserialize<'de> for FinancialUnusualReqwhere
FinancialUnusualReq: 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 FinancialUnusualReq
impl Hash for FinancialUnusualReq
Source§impl Message for FinancialUnusualReq
impl Message for FinancialUnusualReq
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 FinancialUnusualReq
impl PartialEq for FinancialUnusualReq
Source§impl Serialize for FinancialUnusualReq
impl Serialize for FinancialUnusualReq
impl Eq for FinancialUnusualReq
impl StructuralPartialEq for FinancialUnusualReq
Auto Trait Implementations§
impl Freeze for FinancialUnusualReq
impl RefUnwindSafe for FinancialUnusualReq
impl Send for FinancialUnusualReq
impl Sync for FinancialUnusualReq
impl Unpin for FinancialUnusualReq
impl UnsafeUnpin for FinancialUnusualReq
impl UnwindSafe for FinancialUnusualReq
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