pub struct TickerSymbolMiniResponseDecoder<'a> {
pub acting_block_length: u16,
pub acting_version: u16,
/* private fields */
}Fields§
§acting_block_length: u16§acting_version: u16Implementations§
Source§impl<'a> TickerSymbolMiniResponseDecoder<'a>
impl<'a> TickerSymbolMiniResponseDecoder<'a>
pub fn wrap( self, buf: ReadBuf<'a>, offset: usize, acting_block_length: u16, acting_version: u16, ) -> Self
pub fn encoded_length(&self) -> usize
pub fn header( self, header: MessageHeaderDecoder<ReadBuf<'a>>, offset: usize, ) -> Self
Sourcepub fn price_exponent(&self) -> i8
pub fn price_exponent(&self) -> i8
primitive field - ‘REQUIRED’
Sourcepub fn qty_exponent(&self) -> i8
pub fn qty_exponent(&self) -> i8
primitive field - ‘REQUIRED’
Sourcepub fn open_price(&self) -> Option<i64>
pub fn open_price(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
Sourcepub fn high_price(&self) -> Option<i64>
pub fn high_price(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
Sourcepub fn low_price(&self) -> Option<i64>
pub fn low_price(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
Sourcepub fn last_price(&self) -> Option<i64>
pub fn last_price(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
pub fn volume(&self) -> [u8; 16]
pub fn quote_volume(&self) -> [u8; 16]
Sourcepub fn close_time(&self) -> i64
pub fn close_time(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn first_id(&self) -> Option<i64>
pub fn first_id(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
Sourcepub fn last_id(&self) -> Option<i64>
pub fn last_id(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
Sourcepub fn num_trades(&self) -> i64
pub fn num_trades(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn symbol_decoder(&mut self) -> (usize, usize)
pub fn symbol_decoder(&mut self) -> (usize, usize)
VAR_DATA DECODER - character encoding: ‘UTF-8’
pub fn symbol_slice(&'a self, coordinates: (usize, usize)) -> &'a [u8] ⓘ
Trait Implementations§
Source§impl ActingVersion for TickerSymbolMiniResponseDecoder<'_>
impl ActingVersion for TickerSymbolMiniResponseDecoder<'_>
fn acting_version(&self) -> u16
Source§impl<'a> Clone for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Clone for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Copy for TickerSymbolMiniResponseDecoder<'a>
Source§impl<'a> Debug for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Debug for TickerSymbolMiniResponseDecoder<'a>
Source§impl<'a> Decoder<'a> for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Decoder<'a> for TickerSymbolMiniResponseDecoder<'a>
Source§impl<'a> Default for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Default for TickerSymbolMiniResponseDecoder<'a>
Auto Trait Implementations§
impl<'a> Freeze for TickerSymbolMiniResponseDecoder<'a>
impl<'a> RefUnwindSafe for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Send for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Sync for TickerSymbolMiniResponseDecoder<'a>
impl<'a> Unpin for TickerSymbolMiniResponseDecoder<'a>
impl<'a> UnsafeUnpin for TickerSymbolMiniResponseDecoder<'a>
impl<'a> UnwindSafe for TickerSymbolMiniResponseDecoder<'a>
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more