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_position_id(self) -> Result<Reader<'a>>
pub fn has_position_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_quantity(self) -> Result<Reader<'a>>
pub fn has_peak_quantity(&self) -> bool
pub fn get_last_qty(self) -> Result<Reader<'a>>
pub fn has_last_qty(&self) -> bool
pub fn get_last_px(self) -> Result<Reader<'a>>
pub fn has_last_px(&self) -> bool
pub fn get_currency(self) -> Result<Reader<'a>>
pub fn has_currency(&self) -> bool
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_unrealized_pnl(self) -> Result<Reader<'a>>
pub fn has_unrealized_pnl(&self) -> bool
pub fn get_duration(self) -> u64
pub fn get_event_id(self) -> Result<Reader<'a>>
pub fn has_event_id(&self) -> bool
pub fn get_ts_opened(self) -> Result<Reader<'a>>
pub fn has_ts_opened(&self) -> bool
pub fn get_ts_closed(self) -> Result<Reader<'a>>
pub fn has_ts_closed(&self) -> bool
pub fn get_ts_event(self) -> Result<Reader<'a>>
pub fn has_ts_event(&self) -> bool
pub fn get_ts_init(self) -> Result<Reader<'a>>
pub fn has_ts_init(&self) -> bool
Trait Implementations§
impl Copy for Reader<'_>
Source§impl<'a> From<StructReader<'a>> for Reader<'a>
impl<'a> From<StructReader<'a>> for Reader<'a>
Source§fn from(reader: StructReader<'a>) -> Self
fn from(reader: StructReader<'a>) -> Self
Converts to this type from the input type.
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>
Source§impl SetterInput<Owned> for Reader<'_>
impl SetterInput<Owned> for Reader<'_>
Source§fn set_pointer_builder(
pointer: PointerBuilder<'_>,
value: Self,
canonicalize: bool,
) -> Result<()>
fn set_pointer_builder( pointer: PointerBuilder<'_>, value: Self, canonicalize: bool, ) -> Result<()>
Copies the values from
input into builder, where builder
represents the backing memory of a <Receiver as Owned>::Builder. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for Reader<'a>
impl<'a> !Send for Reader<'a>
impl<'a> !Sync for Reader<'a>
impl<'a> !UnwindSafe for Reader<'a>
impl<'a> Freeze for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin 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