pub struct AccountResponseDecoder<'a> {
pub acting_block_length: u16,
pub acting_version: u16,
/* private fields */
}Fields§
§acting_block_length: u16§acting_version: u16Implementations§
Source§impl<'a> AccountResponseDecoder<'a>
impl<'a> AccountResponseDecoder<'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 commission_exponent(&self) -> i8
pub fn commission_exponent(&self) -> i8
primitive field - ‘REQUIRED’
Sourcepub fn commission_rate_maker(&self) -> i64
pub fn commission_rate_maker(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn commission_rate_taker(&self) -> i64
pub fn commission_rate_taker(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn commission_rate_buyer(&self) -> i64
pub fn commission_rate_buyer(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn commission_rate_seller(&self) -> i64
pub fn commission_rate_seller(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn can_withdraw(&self) -> BoolEnum
pub fn can_withdraw(&self) -> BoolEnum
REQUIRED enum
Sourcepub fn can_deposit(&self) -> BoolEnum
pub fn can_deposit(&self) -> BoolEnum
REQUIRED enum
Sourcepub fn require_self_trade_prevention(&self) -> BoolEnum
pub fn require_self_trade_prevention(&self) -> BoolEnum
REQUIRED enum
Sourcepub fn prevent_sor(&self) -> BoolEnum
pub fn prevent_sor(&self) -> BoolEnum
REQUIRED enum
Sourcepub fn update_time(&self) -> i64
pub fn update_time(&self) -> i64
primitive field - ‘REQUIRED’
Sourcepub fn account_type(&self) -> AccountType
pub fn account_type(&self) -> AccountType
REQUIRED enum
Sourcepub fn trade_group_id(&self) -> Option<i64>
pub fn trade_group_id(&self) -> Option<i64>
primitive field - ‘OPTIONAL’ { null_value: ‘-9223372036854775808_i64’ }
Sourcepub fn balances_decoder(self) -> BalancesDecoder<Self>
pub fn balances_decoder(self) -> BalancesDecoder<Self>
GROUP DECODER (id=100)
Sourcepub fn permissions_decoder(self) -> PermissionsDecoder<Self>
pub fn permissions_decoder(self) -> PermissionsDecoder<Self>
GROUP DECODER (id=101)
Sourcepub fn reduce_only_assets_decoder(self) -> ReduceOnlyAssetsDecoder<Self>
pub fn reduce_only_assets_decoder(self) -> ReduceOnlyAssetsDecoder<Self>
GROUP DECODER (id=102)
Trait Implementations§
Source§impl ActingVersion for AccountResponseDecoder<'_>
impl ActingVersion for AccountResponseDecoder<'_>
fn acting_version(&self) -> u16
Source§impl<'a> Clone for AccountResponseDecoder<'a>
impl<'a> Clone for AccountResponseDecoder<'a>
Source§fn clone(&self) -> AccountResponseDecoder<'a>
fn clone(&self) -> AccountResponseDecoder<'a>
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<'a> Debug for AccountResponseDecoder<'a>
impl<'a> Debug for AccountResponseDecoder<'a>
Source§impl<'a> Decoder<'a> for AccountResponseDecoder<'a>
impl<'a> Decoder<'a> for AccountResponseDecoder<'a>
Source§impl<'a> Default for AccountResponseDecoder<'a>
impl<'a> Default for AccountResponseDecoder<'a>
Source§fn default() -> AccountResponseDecoder<'a>
fn default() -> AccountResponseDecoder<'a>
Returns the “default value” for a type. Read more
impl<'a> Copy for AccountResponseDecoder<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccountResponseDecoder<'a>
impl<'a> RefUnwindSafe for AccountResponseDecoder<'a>
impl<'a> Send for AccountResponseDecoder<'a>
impl<'a> Sync for AccountResponseDecoder<'a>
impl<'a> Unpin for AccountResponseDecoder<'a>
impl<'a> UnsafeUnpin for AccountResponseDecoder<'a>
impl<'a> UnwindSafe for AccountResponseDecoder<'a>
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
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>
§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