pub struct CashAnalysisRsp {
pub stock_id: Option<u64>,
pub interpretation_txt: Option<String>,
pub error_code: Option<i32>,
pub score: Option<u64>,
pub score_at: Option<u64>,
}Expand description
- 响应中的interpretation_txt字段中存在占位符##和颜色类型标识,用于标识需要展示特殊颜色的文本段。
- 比如 ##1文本段##1,表示该文案展示上涨的颜色,##2文本段##2,表示该文案展示下跌的颜色,
- 客户端根据颜色类型对标识中间的文本段展示不同的颜色。如遇到不识别的颜色类型,直接删除对应的占位符和颜色类型标记即可
- 颜色类型标识: 1 -> 上涨颜色; 2 -> 下跌颜色;
Fields§
§stock_id: Option<u64>股票ID
interpretation_txt: Option<String>综合解读文案
error_code: Option<i32>错误码,参考ErrorCode
score: Option<u64>评分 扩大10000000
score_at: Option<u64>评分时间
Implementations§
Source§impl CashAnalysisRsp
impl CashAnalysisRsp
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 interpretation_txt(&self) -> &str
pub fn interpretation_txt(&self) -> &str
Returns the value of interpretation_txt, or the default value if interpretation_txt is unset.
Sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Returns the value of error_code, or the default value if error_code is unset.
Trait Implementations§
Source§impl Clone for CashAnalysisRsp
impl Clone for CashAnalysisRsp
Source§fn clone(&self) -> CashAnalysisRsp
fn clone(&self) -> CashAnalysisRsp
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 CashAnalysisRsp
impl Debug for CashAnalysisRsp
Source§impl Default for CashAnalysisRsp
impl Default for CashAnalysisRsp
Source§impl Hash for CashAnalysisRsp
impl Hash for CashAnalysisRsp
Source§impl Message for CashAnalysisRsp
impl Message for CashAnalysisRsp
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 CashAnalysisRsp
impl PartialEq for CashAnalysisRsp
impl Eq for CashAnalysisRsp
impl StructuralPartialEq for CashAnalysisRsp
Auto Trait Implementations§
impl Freeze for CashAnalysisRsp
impl RefUnwindSafe for CashAnalysisRsp
impl Send for CashAnalysisRsp
impl Sync for CashAnalysisRsp
impl Unpin for CashAnalysisRsp
impl UnsafeUnpin for CashAnalysisRsp
impl UnwindSafe for CashAnalysisRsp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.