pub struct Reader<'a> { /* private fields */ }Implementations§
Source§impl<'a> Reader<'a>
impl<'a> Reader<'a>
pub fn reborrow(&self) -> Reader<'_>
pub fn total_size(&self) -> Result<MessageSize>
pub fn get_trader_id(self) -> Result<Reader<'a>>
pub fn has_trader_id(&self) -> bool
pub fn get_strategy_id(self) -> Result<Reader<'a>>
pub fn has_strategy_id(&self) -> bool
pub fn get_instrument_id(self) -> Result<Reader<'a>>
pub fn has_instrument_id(&self) -> bool
pub fn get_id(self) -> Result<Reader<'a>>
pub fn has_id(&self) -> bool
pub fn get_account_id(self) -> Result<Reader<'a>>
pub fn has_account_id(&self) -> bool
pub fn get_opening_order_id(self) -> Result<Reader<'a>>
pub fn has_opening_order_id(&self) -> bool
pub fn get_closing_order_id(self) -> Result<Reader<'a>>
pub fn has_closing_order_id(&self) -> bool
pub fn get_entry(self) -> Result<OrderSide, NotInSchema>
pub fn get_side(self) -> Result<PositionSide, NotInSchema>
pub fn get_signed_qty(self) -> f64
pub fn get_quantity(self) -> Result<Reader<'a>>
pub fn has_quantity(&self) -> bool
pub fn get_peak_qty(self) -> Result<Reader<'a>>
pub fn has_peak_qty(&self) -> bool
pub fn get_price_precision(self) -> u8
pub fn get_size_precision(self) -> u8
pub fn get_multiplier(self) -> Result<Reader<'a>>
pub fn has_multiplier(&self) -> bool
pub fn get_is_inverse(self) -> bool
pub fn get_is_currency_pair(self) -> bool
pub fn get_instrument_class(self) -> Result<InstrumentClass, NotInSchema>
pub fn get_base_currency(self) -> Result<Reader<'a>>
pub fn has_base_currency(&self) -> bool
pub fn get_quote_currency(self) -> Result<Reader<'a>>
pub fn has_quote_currency(&self) -> bool
pub fn get_settlement_currency(self) -> Result<Reader<'a>>
pub fn has_settlement_currency(&self) -> bool
pub fn get_ts_init(self) -> Result<Reader<'a>>
pub fn has_ts_init(&self) -> bool
pub fn get_ts_opened(self) -> Result<Reader<'a>>
pub fn has_ts_opened(&self) -> bool
pub fn get_ts_last(self) -> Result<Reader<'a>>
pub fn has_ts_last(&self) -> bool
pub fn get_ts_closed(self) -> Result<Reader<'a>>
pub fn has_ts_closed(&self) -> bool
pub fn get_duration_ns(self) -> u64
pub fn get_avg_px_open(self) -> f64
pub fn get_avg_px_close(self) -> f64
pub fn get_realized_return(self) -> f64
pub fn get_realized_pnl(self) -> Result<Reader<'a>>
pub fn has_realized_pnl(&self) -> bool
pub fn get_trade_ids(self) -> Result<Reader<'a, Owned>>
pub fn has_trade_ids(&self) -> bool
pub fn get_buy_qty(self) -> Result<Reader<'a>>
pub fn has_buy_qty(&self) -> bool
pub fn get_sell_qty(self) -> Result<Reader<'a>>
pub fn has_sell_qty(&self) -> bool
pub fn get_commission_currencies(self) -> Result<Reader<'a, Owned>>
pub fn has_commission_currencies(&self) -> bool
pub fn get_commission_amounts(self) -> Result<Reader<'a, Owned>>
pub fn has_commission_amounts(&self) -> bool
Trait Implementations§
Source§impl<'a> FromPointerReader<'a> for Reader<'a>
impl<'a> FromPointerReader<'a> for Reader<'a>
fn get_from_pointer( reader: &PointerReader<'a>, default: Option<&'a [Word]>, ) -> Result<Self>
Source§impl<'a> IntoInternalStructReader<'a> for Reader<'a>
impl<'a> IntoInternalStructReader<'a> for Reader<'a>
fn into_internal_struct_reader(self) -> StructReader<'a>
impl Copy for Reader<'_>
Auto Trait Implementations§
impl<'a> Freeze for Reader<'a>
impl<'a> !RefUnwindSafe for Reader<'a>
impl<'a> !Send for Reader<'a>
impl<'a> !Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> !UnwindSafe for Reader<'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