pub struct Builder<'a> { /* private fields */ }Implementations§
Source§impl<'a> Builder<'a>
impl<'a> Builder<'a>
pub fn into_reader(self) -> Reader<'a>
pub fn reborrow(&mut self) -> Builder<'_>
pub fn reborrow_as_reader(&self) -> Reader<'_>
pub fn total_size(&self) -> Result<MessageSize>
pub fn get_trader_id(self) -> Result<Builder<'a>>
pub fn set_trader_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_trader_id(self) -> Builder<'a>
pub fn has_trader_id(&self) -> bool
pub fn get_strategy_id(self) -> Result<Builder<'a>>
pub fn set_strategy_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_strategy_id(self) -> Builder<'a>
pub fn has_strategy_id(&self) -> bool
pub fn get_instrument_id(self) -> Result<Builder<'a>>
pub fn set_instrument_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_instrument_id(self) -> Builder<'a>
pub fn has_instrument_id(&self) -> bool
pub fn get_id(self) -> Result<Builder<'a>>
pub fn set_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_id(self) -> Builder<'a>
pub fn has_id(&self) -> bool
pub fn get_account_id(self) -> Result<Builder<'a>>
pub fn set_account_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_account_id(self) -> Builder<'a>
pub fn has_account_id(&self) -> bool
pub fn get_opening_order_id(self) -> Result<Builder<'a>>
pub fn set_opening_order_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_opening_order_id(self) -> Builder<'a>
pub fn has_opening_order_id(&self) -> bool
pub fn get_closing_order_id(self) -> Result<Builder<'a>>
pub fn set_closing_order_id(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_closing_order_id(self) -> Builder<'a>
pub fn has_closing_order_id(&self) -> bool
pub fn get_entry(self) -> Result<OrderSide, NotInSchema>
pub fn set_entry(&mut self, value: OrderSide)
pub fn get_side(self) -> Result<PositionSide, NotInSchema>
pub fn set_side(&mut self, value: PositionSide)
pub fn get_signed_qty(self) -> f64
pub fn set_signed_qty(&mut self, value: f64)
pub fn get_quantity(self) -> Result<Builder<'a>>
pub fn set_quantity(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_quantity(self) -> Builder<'a>
pub fn has_quantity(&self) -> bool
pub fn get_peak_qty(self) -> Result<Builder<'a>>
pub fn set_peak_qty(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_peak_qty(self) -> Builder<'a>
pub fn has_peak_qty(&self) -> bool
pub fn get_price_precision(self) -> u8
pub fn set_price_precision(&mut self, value: u8)
pub fn get_size_precision(self) -> u8
pub fn set_size_precision(&mut self, value: u8)
pub fn get_multiplier(self) -> Result<Builder<'a>>
pub fn set_multiplier(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_multiplier(self) -> Builder<'a>
pub fn has_multiplier(&self) -> bool
pub fn get_is_inverse(self) -> bool
pub fn set_is_inverse(&mut self, value: bool)
pub fn get_is_currency_pair(self) -> bool
pub fn set_is_currency_pair(&mut self, value: bool)
pub fn get_instrument_class(self) -> Result<InstrumentClass, NotInSchema>
pub fn set_instrument_class(&mut self, value: InstrumentClass)
pub fn get_base_currency(self) -> Result<Builder<'a>>
pub fn set_base_currency(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_base_currency(self) -> Builder<'a>
pub fn has_base_currency(&self) -> bool
pub fn get_quote_currency(self) -> Result<Builder<'a>>
pub fn set_quote_currency(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_quote_currency(self) -> Builder<'a>
pub fn has_quote_currency(&self) -> bool
pub fn get_settlement_currency(self) -> Result<Builder<'a>>
pub fn set_settlement_currency(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_settlement_currency(self) -> Builder<'a>
pub fn has_settlement_currency(&self) -> bool
pub fn get_ts_init(self) -> Result<Builder<'a>>
pub fn set_ts_init(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_ts_init(self) -> Builder<'a>
pub fn has_ts_init(&self) -> bool
pub fn get_ts_opened(self) -> Result<Builder<'a>>
pub fn set_ts_opened(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_ts_opened(self) -> Builder<'a>
pub fn has_ts_opened(&self) -> bool
pub fn get_ts_last(self) -> Result<Builder<'a>>
pub fn set_ts_last(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_ts_last(self) -> Builder<'a>
pub fn has_ts_last(&self) -> bool
pub fn get_ts_closed(self) -> Result<Builder<'a>>
pub fn set_ts_closed(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_ts_closed(self) -> Builder<'a>
pub fn has_ts_closed(&self) -> bool
pub fn get_duration_ns(self) -> u64
pub fn set_duration_ns(&mut self, value: u64)
pub fn get_avg_px_open(self) -> f64
pub fn set_avg_px_open(&mut self, value: f64)
pub fn get_avg_px_close(self) -> f64
pub fn set_avg_px_close(&mut self, value: f64)
pub fn get_realized_return(self) -> f64
pub fn set_realized_return(&mut self, value: f64)
pub fn get_realized_pnl(self) -> Result<Builder<'a>>
pub fn set_realized_pnl(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_realized_pnl(self) -> Builder<'a>
pub fn has_realized_pnl(&self) -> bool
pub fn get_trade_ids(self) -> Result<Builder<'a, Owned>>
pub fn set_trade_ids(&mut self, value: Reader<'_, Owned>) -> Result<()>
pub fn init_trade_ids(self, size: u32) -> Builder<'a, Owned>
pub fn has_trade_ids(&self) -> bool
pub fn get_buy_qty(self) -> Result<Builder<'a>>
pub fn set_buy_qty(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_buy_qty(self) -> Builder<'a>
pub fn has_buy_qty(&self) -> bool
pub fn get_sell_qty(self) -> Result<Builder<'a>>
pub fn set_sell_qty(&mut self, value: Reader<'_>) -> Result<()>
pub fn init_sell_qty(self) -> Builder<'a>
pub fn has_sell_qty(&self) -> bool
pub fn get_commission_currencies(self) -> Result<Builder<'a, Owned>>
pub fn set_commission_currencies( &mut self, value: Reader<'_, Owned>, ) -> Result<()>
pub fn init_commission_currencies(self, size: u32) -> Builder<'a, Owned>
pub fn has_commission_currencies(&self) -> bool
pub fn get_commission_amounts(self) -> Result<Builder<'a, Owned>>
pub fn set_commission_amounts(&mut self, value: Reader<'_, Owned>) -> Result<()>
pub fn init_commission_amounts(self, size: u32) -> Builder<'a, Owned>
pub fn has_commission_amounts(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Builder<'a>
impl<'a> !RefUnwindSafe for Builder<'a>
impl<'a> !Send for Builder<'a>
impl<'a> !Sync for Builder<'a>
impl<'a> Unpin for Builder<'a>
impl<'a> !UnwindSafe for Builder<'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