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