pub struct OrderResponseEncoder<'a> { /* private fields */ }Implementations§
Source§impl<'a> OrderResponseEncoder<'a>
impl<'a> OrderResponseEncoder<'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 price_exponent(&mut self, value: i8)
pub fn price_exponent(&mut self, value: i8)
primitive field ‘priceExponent’
- min value: -127
- max value: 127
- null value: -128_i8
- characterEncoding: null
- semanticType: null
- encodedOffset: 0
- encodedLength: 1
- version: 0
Sourcepub fn qty_exponent(&mut self, value: i8)
pub fn qty_exponent(&mut self, value: i8)
primitive field ‘qtyExponent’
- min value: -127
- max value: 127
- null value: -128_i8
- characterEncoding: null
- semanticType: null
- encodedOffset: 1
- encodedLength: 1
- version: 0
Sourcepub fn order_id(&mut self, value: i64)
pub fn order_id(&mut self, value: i64)
primitive field ‘orderId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 2
- encodedLength: 8
- version: 0
Sourcepub fn order_list_id(&mut self, value: i64)
pub fn order_list_id(&mut self, value: i64)
primitive field ‘orderListId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 10
- encodedLength: 8
- version: 0
Sourcepub fn price(&mut self, value: i64)
pub fn price(&mut self, value: i64)
primitive field ‘price’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 18
- encodedLength: 8
- version: 0
Sourcepub fn orig_qty(&mut self, value: i64)
pub fn orig_qty(&mut self, value: i64)
primitive field ‘origQty’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 26
- encodedLength: 8
- version: 0
Sourcepub fn executed_qty(&mut self, value: i64)
pub fn executed_qty(&mut self, value: i64)
primitive field ‘executedQty’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 34
- encodedLength: 8
- version: 0
Sourcepub fn cummulative_quote_qty(&mut self, value: i64)
pub fn cummulative_quote_qty(&mut self, value: i64)
primitive field ‘cummulativeQuoteQty’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 42
- encodedLength: 8
- version: 0
Sourcepub fn status(&mut self, value: OrderStatus)
pub fn status(&mut self, value: OrderStatus)
REQUIRED enum
Sourcepub fn time_in_force(&mut self, value: TimeInForce)
pub fn time_in_force(&mut self, value: TimeInForce)
REQUIRED enum
Sourcepub fn order_type(&mut self, value: OrderType)
pub fn order_type(&mut self, value: OrderType)
REQUIRED enum
Sourcepub fn stop_price(&mut self, value: i64)
pub fn stop_price(&mut self, value: i64)
primitive field ‘stopPrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 54
- encodedLength: 8
- version: 0
Sourcepub fn trailing_delta(&mut self, value: i64)
pub fn trailing_delta(&mut self, value: i64)
primitive field ‘trailingDelta’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 62
- encodedLength: 8
- version: 0
Sourcepub fn trailing_time(&mut self, value: i64)
pub fn trailing_time(&mut self, value: i64)
primitive field ‘trailingTime’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 70
- encodedLength: 8
- version: 0
Sourcepub fn iceberg_qty(&mut self, value: i64)
pub fn iceberg_qty(&mut self, value: i64)
primitive field ‘icebergQty’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 78
- encodedLength: 8
- version: 0
Sourcepub fn time(&mut self, value: i64)
pub fn time(&mut self, value: i64)
primitive field ‘time’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 86
- encodedLength: 8
- version: 0
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: 94
- encodedLength: 8
- version: 0
Sourcepub fn is_working(&mut self, value: BoolEnum)
pub fn is_working(&mut self, value: BoolEnum)
REQUIRED enum
Sourcepub fn working_time(&mut self, value: i64)
pub fn working_time(&mut self, value: i64)
primitive field ‘workingTime’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 103
- encodedLength: 8
- version: 0
Sourcepub fn orig_quote_order_qty(&mut self, value: i64)
pub fn orig_quote_order_qty(&mut self, value: i64)
primitive field ‘origQuoteOrderQty’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 111
- encodedLength: 8
- version: 0
Sourcepub fn strategy_id(&mut self, value: i64)
pub fn strategy_id(&mut self, value: i64)
primitive field ‘strategyId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 119
- encodedLength: 8
- version: 0
Sourcepub fn strategy_type(&mut self, value: i32)
pub fn strategy_type(&mut self, value: i32)
primitive field ‘strategyType’
- min value: -2147483647
- max value: 2147483647
- null value: -2147483648_i32
- characterEncoding: null
- semanticType: null
- encodedOffset: 127
- encodedLength: 4
- version: 0
Sourcepub fn order_capacity(&mut self, value: OrderCapacity)
pub fn order_capacity(&mut self, value: OrderCapacity)
REQUIRED enum
Sourcepub fn working_floor(&mut self, value: Floor)
pub fn working_floor(&mut self, value: Floor)
REQUIRED enum
Sourcepub fn self_trade_prevention_mode(&mut self, value: SelfTradePreventionMode)
pub fn self_trade_prevention_mode(&mut self, value: SelfTradePreventionMode)
REQUIRED enum
Sourcepub fn prevented_match_id(&mut self, value: i64)
pub fn prevented_match_id(&mut self, value: i64)
primitive field ‘preventedMatchId’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 134
- encodedLength: 8
- version: 0
Sourcepub fn prevented_quantity(&mut self, value: i64)
pub fn prevented_quantity(&mut self, value: i64)
primitive field ‘preventedQuantity’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 142
- encodedLength: 8
- version: 0
Sourcepub fn peg_price_type(&mut self, value: PegPriceType)
pub fn peg_price_type(&mut self, value: PegPriceType)
REQUIRED enum
Sourcepub fn peg_offset_type(&mut self, value: PegOffsetType)
pub fn peg_offset_type(&mut self, value: PegOffsetType)
REQUIRED enum
Sourcepub fn peg_offset_value(&mut self, value: u8)
pub fn peg_offset_value(&mut self, value: u8)
primitive field ‘pegOffsetValue’
- min value: 0
- max value: 254
- null value: 0xff_u8
- characterEncoding: null
- semanticType: null
- encodedOffset: 153
- encodedLength: 1
- version: 1
Sourcepub fn pegged_price(&mut self, value: i64)
pub fn pegged_price(&mut self, value: i64)
primitive field ‘peggedPrice’
- min value: -9223372036854775807
- max value: 9223372036854775807
- null value: -9223372036854775808_i64
- characterEncoding: null
- semanticType: null
- encodedOffset: 154
- encodedLength: 8
- version: 1
Sourcepub fn client_order_id(&mut self, value: &str)
pub fn client_order_id(&mut self, value: &str)
VAR_DATA ENCODER - character encoding: ‘UTF-8’
Trait Implementations§
Source§impl<'a> Debug for OrderResponseEncoder<'a>
impl<'a> Debug for OrderResponseEncoder<'a>
Source§impl<'a> Default for OrderResponseEncoder<'a>
impl<'a> Default for OrderResponseEncoder<'a>
Source§fn default() -> OrderResponseEncoder<'a>
fn default() -> OrderResponseEncoder<'a>
Source§impl<'a> Encoder<'a> for OrderResponseEncoder<'a>
impl<'a> Encoder<'a> for OrderResponseEncoder<'a>
Source§impl<'a> Writer<'a> for OrderResponseEncoder<'a>
impl<'a> Writer<'a> for OrderResponseEncoder<'a>
fn get_buf_mut(&mut self) -> &mut WriteBuf<'a>
Auto Trait Implementations§
impl<'a> Freeze for OrderResponseEncoder<'a>
impl<'a> RefUnwindSafe for OrderResponseEncoder<'a>
impl<'a> Send for OrderResponseEncoder<'a>
impl<'a> Sync for OrderResponseEncoder<'a>
impl<'a> Unpin for OrderResponseEncoder<'a>
impl<'a> UnsafeUnpin for OrderResponseEncoder<'a>
impl<'a> !UnwindSafe for OrderResponseEncoder<'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
§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>
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>
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