pub struct SearchQuote {
pub market: Option<i32>,
pub code: Option<String>,
pub name: Option<String>,
pub sec_type: Option<i32>,
pub is_watched: Option<bool>,
}Fields§
§market: Option<i32>Qot_Common.QotMarket,市场类型
code: Option<String>交易代码,如 LITE / 01936
name: Option<String>标的名称,如 Lumentum / 利特米
sec_type: Option<i32>Qot_Common.SecurityType,股票类型
is_watched: Option<bool>是否已在自选(需登录态)
Implementations§
Source§impl SearchQuote
impl SearchQuote
Sourcepub fn market(&self) -> i32
pub fn market(&self) -> i32
Returns the value of market, or the default value if market is unset.
Sourcepub fn sec_type(&self) -> i32
pub fn sec_type(&self) -> i32
Returns the value of sec_type, or the default value if sec_type is unset.
Sourcepub fn is_watched(&self) -> bool
pub fn is_watched(&self) -> bool
Returns the value of is_watched, or the default value if is_watched is unset.
Trait Implementations§
Source§impl Clone for SearchQuote
impl Clone for SearchQuote
Source§fn clone(&self) -> SearchQuote
fn clone(&self) -> SearchQuote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SearchQuote
impl Debug for SearchQuote
Source§impl Default for SearchQuote
impl Default for SearchQuote
Source§impl<'de> Deserialize<'de> for SearchQuotewhere
SearchQuote: Default,
impl<'de> Deserialize<'de> for SearchQuotewhere
SearchQuote: 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
impl Eq for SearchQuote
Source§impl Hash for SearchQuote
impl Hash for SearchQuote
Source§impl Message for SearchQuote
impl Message for SearchQuote
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 SearchQuote
impl PartialEq for SearchQuote
Source§fn eq(&self, other: &SearchQuote) -> bool
fn eq(&self, other: &SearchQuote) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SearchQuote
impl Serialize for SearchQuote
impl StructuralPartialEq for SearchQuote
Auto Trait Implementations§
impl Freeze for SearchQuote
impl RefUnwindSafe for SearchQuote
impl Send for SearchQuote
impl Sync for SearchQuote
impl Unpin for SearchQuote
impl UnsafeUnpin for SearchQuote
impl UnwindSafe for SearchQuote
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