pub struct SymbolsEncoder<P> { /* private fields */ }Implementations§
Source§impl<'a, P> SymbolsEncoder<P>
impl<'a, P> SymbolsEncoder<P>
pub fn wrap(self, parent: P, count: u32) -> Self
pub fn block_length() -> u16
pub fn parent(&mut self) -> SbeResult<P>
Sourcepub fn advance(&mut self) -> SbeResult<Option<usize>>
pub fn advance(&mut self) -> SbeResult<Option<usize>>
will return Some(current index) when successful otherwise None
Sourcepub fn status(&mut self, value: SymbolStatus)
pub fn status(&mut self, value: SymbolStatus)
REQUIRED enum
Sourcepub fn base_asset_precision(&mut self, value: u8)
pub fn base_asset_precision(&mut self, value: u8)
primitive field ‘baseAssetPrecision’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 1
- encodedLength: 1
- version: 0
Sourcepub fn quote_asset_precision(&mut self, value: u8)
pub fn quote_asset_precision(&mut self, value: u8)
primitive field ‘quoteAssetPrecision’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 2
- encodedLength: 1
- version: 0
Sourcepub fn base_commission_precision(&mut self, value: u8)
pub fn base_commission_precision(&mut self, value: u8)
primitive field ‘baseCommissionPrecision’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 3
- encodedLength: 1
- version: 0
Sourcepub fn quote_commission_precision(&mut self, value: u8)
pub fn quote_commission_precision(&mut self, value: u8)
primitive field ‘quoteCommissionPrecision’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 4
- encodedLength: 1
- version: 0
pub fn order_types(&mut self, value: OrderTypes)
Sourcepub fn iceberg_allowed(&mut self, value: BoolEnum)
pub fn iceberg_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn oco_allowed(&mut self, value: BoolEnum)
pub fn oco_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn oto_allowed(&mut self, value: BoolEnum)
pub fn oto_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn quote_order_qty_market_allowed(&mut self, value: BoolEnum)
pub fn quote_order_qty_market_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn allow_trailing_stop(&mut self, value: BoolEnum)
pub fn allow_trailing_stop(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn cancel_replace_allowed(&mut self, value: BoolEnum)
pub fn cancel_replace_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn amend_allowed(&mut self, value: BoolEnum)
pub fn amend_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn is_spot_trading_allowed(&mut self, value: BoolEnum)
pub fn is_spot_trading_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn is_margin_trading_allowed(&mut self, value: BoolEnum)
pub fn is_margin_trading_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn default_self_trade_prevention_mode(
&mut self,
value: SelfTradePreventionMode,
)
pub fn default_self_trade_prevention_mode( &mut self, value: SelfTradePreventionMode, )
REQUIRED enum
pub fn allowed_self_trade_prevention_modes( &mut self, value: AllowedSelfTradePreventionModes, )
Sourcepub fn peg_instructions_allowed(&mut self, value: BoolEnum)
pub fn peg_instructions_allowed(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn filters_encoder(
self,
count: u32,
filters_encoder: FiltersEncoder<Self>,
) -> FiltersEncoder<Self>
pub fn filters_encoder( self, count: u32, filters_encoder: FiltersEncoder<Self>, ) -> FiltersEncoder<Self>
GROUP ENCODER (id=100)
Sourcepub fn permission_sets_encoder(
self,
count: u32,
permission_sets_encoder: PermissionSetsEncoder<Self>,
) -> PermissionSetsEncoder<Self>
pub fn permission_sets_encoder( self, count: u32, permission_sets_encoder: PermissionSetsEncoder<Self>, ) -> PermissionSetsEncoder<Self>
GROUP ENCODER (id=101)
Sourcepub fn base_asset(&mut self, value: &str)
pub fn base_asset(&mut self, value: &str)
VAR_DATA ENCODER - character encoding: ‘UTF-8’
Sourcepub fn quote_asset(&mut self, value: &str)
pub fn quote_asset(&mut self, value: &str)
VAR_DATA ENCODER - character encoding: ‘UTF-8’
Trait Implementations§
Source§impl<P: Debug> Debug for SymbolsEncoder<P>
impl<P: Debug> Debug for SymbolsEncoder<P>
Source§impl<P: Default> Default for SymbolsEncoder<P>
impl<P: Default> Default for SymbolsEncoder<P>
Source§fn default() -> SymbolsEncoder<P>
fn default() -> SymbolsEncoder<P>
Returns the “default value” for a type. Read more
Source§impl<'a, P> Encoder<'a> for SymbolsEncoder<P>
impl<'a, P> Encoder<'a> for SymbolsEncoder<P>
Source§impl<'a, P> Writer<'a> for SymbolsEncoder<P>
impl<'a, P> Writer<'a> for SymbolsEncoder<P>
fn get_buf_mut(&mut self) -> &mut WriteBuf<'a>
Auto Trait Implementations§
impl<P> Freeze for SymbolsEncoder<P>where
P: Freeze,
impl<P> RefUnwindSafe for SymbolsEncoder<P>where
P: RefUnwindSafe,
impl<P> Send for SymbolsEncoder<P>where
P: Send,
impl<P> Sync for SymbolsEncoder<P>where
P: Sync,
impl<P> Unpin for SymbolsEncoder<P>where
P: Unpin,
impl<P> UnsafeUnpin for SymbolsEncoder<P>where
P: UnsafeUnpin,
impl<P> UnwindSafe for SymbolsEncoder<P>where
P: UnwindSafe,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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