pub struct AccountResponseEncoder<'a> { /* private fields */ }Implementations§
Source§impl<'a> AccountResponseEncoder<'a>
impl<'a> AccountResponseEncoder<'a>
pub fn wrap(self, buf: WriteBuf<'a>, offset: usize) -> Self
pub fn encoded_length(&self) -> usize
pub fn header(self, offset: usize) -> MessageHeaderEncoder<Self>
Sourcepub fn commission_exponent(&mut self, value: i8)
pub fn commission_exponent(&mut self, value: i8)
primitive field ‘commissionExponent’
- min value: -127
- max value: 127
- null value: -128_i8
- characterEncoding: null
- semanticType: null
- encodedOffset: 0
- encodedLength: 1
- version: 0
Sourcepub fn commission_rate_maker(&mut self, value: i64)
pub fn commission_rate_maker(&mut self, value: i64)
primitive field ‘commissionRateMaker’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 1
- encodedLength: 8
- version: 0
Sourcepub fn commission_rate_taker(&mut self, value: i64)
pub fn commission_rate_taker(&mut self, value: i64)
primitive field ‘commissionRateTaker’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 9
- encodedLength: 8
- version: 0
Sourcepub fn commission_rate_buyer(&mut self, value: i64)
pub fn commission_rate_buyer(&mut self, value: i64)
primitive field ‘commissionRateBuyer’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 17
- encodedLength: 8
- version: 0
Sourcepub fn commission_rate_seller(&mut self, value: i64)
pub fn commission_rate_seller(&mut self, value: i64)
primitive field ‘commissionRateSeller’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 25
- encodedLength: 8
- version: 0
Sourcepub fn can_withdraw(&mut self, value: BoolEnum)
pub fn can_withdraw(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn can_deposit(&mut self, value: BoolEnum)
pub fn can_deposit(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn require_self_trade_prevention(&mut self, value: BoolEnum)
pub fn require_self_trade_prevention(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn prevent_sor(&mut self, value: BoolEnum)
pub fn prevent_sor(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn update_time(&mut self, value: i64)
pub fn update_time(&mut self, value: i64)
primitive field ‘updateTime’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 39
- encodedLength: 8
- version: 0
Sourcepub fn account_type(&mut self, value: AccountType)
pub fn account_type(&mut self, value: AccountType)
REQUIRED enum
Sourcepub fn trade_group_id(&mut self, value: i64)
pub fn trade_group_id(&mut self, value: i64)
primitive field ‘tradeGroupId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 48
- encodedLength: 8
- version: 0
Sourcepub fn uid(&mut self, value: i64)
pub fn uid(&mut self, value: i64)
primitive field ‘uid’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 56
- encodedLength: 8
- version: 0
Sourcepub fn balances_encoder(
self,
count: u32,
balances_encoder: BalancesEncoder<Self>,
) -> BalancesEncoder<Self>
pub fn balances_encoder( self, count: u32, balances_encoder: BalancesEncoder<Self>, ) -> BalancesEncoder<Self>
GROUP ENCODER (id=100)
Sourcepub fn permissions_encoder(
self,
count: u32,
permissions_encoder: PermissionsEncoder<Self>,
) -> PermissionsEncoder<Self>
pub fn permissions_encoder( self, count: u32, permissions_encoder: PermissionsEncoder<Self>, ) -> PermissionsEncoder<Self>
GROUP ENCODER (id=101)
Sourcepub fn reduce_only_assets_encoder(
self,
count: u32,
reduce_only_assets_encoder: ReduceOnlyAssetsEncoder<Self>,
) -> ReduceOnlyAssetsEncoder<Self>
pub fn reduce_only_assets_encoder( self, count: u32, reduce_only_assets_encoder: ReduceOnlyAssetsEncoder<Self>, ) -> ReduceOnlyAssetsEncoder<Self>
GROUP ENCODER (id=102)
Trait Implementations§
Source§impl<'a> Debug for AccountResponseEncoder<'a>
impl<'a> Debug for AccountResponseEncoder<'a>
Source§impl<'a> Default for AccountResponseEncoder<'a>
impl<'a> Default for AccountResponseEncoder<'a>
Source§fn default() -> AccountResponseEncoder<'a>
fn default() -> AccountResponseEncoder<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> Encoder<'a> for AccountResponseEncoder<'a>
impl<'a> Encoder<'a> for AccountResponseEncoder<'a>
Source§impl<'a> Writer<'a> for AccountResponseEncoder<'a>
impl<'a> Writer<'a> for AccountResponseEncoder<'a>
fn get_buf_mut(&mut self) -> &mut WriteBuf<'a>
Auto Trait Implementations§
impl<'a> Freeze for AccountResponseEncoder<'a>
impl<'a> RefUnwindSafe for AccountResponseEncoder<'a>
impl<'a> Send for AccountResponseEncoder<'a>
impl<'a> Sync for AccountResponseEncoder<'a>
impl<'a> Unpin for AccountResponseEncoder<'a>
impl<'a> UnsafeUnpin for AccountResponseEncoder<'a>
impl<'a> !UnwindSafe for AccountResponseEncoder<'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
§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