pub struct PushQuote {Show 14 fields
pub symbol: String,
pub sequence: i64,
pub last_done: String,
pub open: String,
pub high: String,
pub low: String,
pub timestamp: i64,
pub volume: i64,
pub turnover: String,
pub trade_status: i32,
pub trade_session: i32,
pub current_volume: i64,
pub current_turnover: String,
pub tag: i32,
}Fields§
§symbol: String§sequence: i64§last_done: String§open: String§high: String§low: String§timestamp: i64§volume: i64§turnover: String§trade_status: i32§trade_session: i32§current_volume: i64§current_turnover: String§tag: i32Implementations§
Source§impl PushQuote
impl PushQuote
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.
Sourcepub fn trade_session(&self) -> TradeSession
pub fn trade_session(&self) -> TradeSession
Returns the enum value of trade_session, or the default if the field is set to an invalid enum value.
Sourcepub fn set_trade_session(&mut self, value: TradeSession)
pub fn set_trade_session(&mut self, value: TradeSession)
Sets trade_session to the provided enum value.
Sourcepub fn tag(&self) -> PushQuoteTag
pub fn tag(&self) -> PushQuoteTag
Returns the enum value of tag, or the default if the field is set to an invalid enum value.
Sourcepub fn set_tag(&mut self, value: PushQuoteTag)
pub fn set_tag(&mut self, value: PushQuoteTag)
Sets tag to the provided enum value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PushQuote
impl<'de> Deserialize<'de> for PushQuote
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 PushQuote
impl Message for PushQuote
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.impl StructuralPartialEq for PushQuote
Auto Trait Implementations§
impl Freeze for PushQuote
impl RefUnwindSafe for PushQuote
impl Send for PushQuote
impl Sync for PushQuote
impl Unpin for PushQuote
impl UnsafeUnpin for PushQuote
impl UnwindSafe for PushQuote
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