pub struct OptionQuote {
pub symbol: String,
pub last_done: String,
pub prev_close: String,
pub open: String,
pub high: String,
pub low: String,
pub timestamp: i64,
pub volume: i64,
pub turnover: String,
pub trade_status: i32,
pub option_extend: Option<OptionExtend>,
}Fields§
§symbol: String§last_done: String§prev_close: String§open: String§high: String§low: String§timestamp: i64§volume: i64§turnover: String§trade_status: i32§option_extend: Option<OptionExtend>Implementations§
Source§impl OptionQuote
impl OptionQuote
Sourcepub fn trade_status(&self) -> TradeStatus
pub fn trade_status(&self) -> TradeStatus
Returns the enum value of trade_status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_trade_status(&mut self, value: TradeStatus)
pub fn set_trade_status(&mut self, value: TradeStatus)
Sets trade_status to the provided enum value.
Trait Implementations§
Source§impl Clone for OptionQuote
impl Clone for OptionQuote
Source§fn clone(&self) -> OptionQuote
fn clone(&self) -> OptionQuote
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 OptionQuote
impl Debug for OptionQuote
Source§impl Default for OptionQuote
impl Default for OptionQuote
Source§impl<'de> Deserialize<'de> for OptionQuote
impl<'de> Deserialize<'de> for OptionQuote
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 Message for OptionQuote
impl Message for OptionQuote
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 OptionQuote
impl PartialEq for OptionQuote
Source§impl Serialize for OptionQuote
impl Serialize for OptionQuote
impl StructuralPartialEq for OptionQuote
Auto Trait Implementations§
impl Freeze for OptionQuote
impl RefUnwindSafe for OptionQuote
impl Send for OptionQuote
impl Sync for OptionQuote
impl Unpin for OptionQuote
impl UnsafeUnpin for OptionQuote
impl UnwindSafe for OptionQuote
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