dbn

Enum RecordEnum

Source
pub enum RecordEnum {
Show 15 variants Mbo(MboMsg), Trade(TradeMsg), Mbp1(Mbp1Msg), Mbp10(Mbp10Msg), Ohlcv(OhlcvMsg), Status(StatusMsg), InstrumentDef(InstrumentDefMsg), Imbalance(ImbalanceMsg), Stat(StatMsg), Error(ErrorMsg), SymbolMapping(SymbolMappingMsg), System(SystemMsg), Cmbp1(Cmbp1Msg), Bbo(BboMsg), Cbbo(CbboMsg),
}
Expand description

An owned DBN record type of flexible type. Unlike RecordRef, this type allows matching.

Note: this type does not support ts_out.

Variants§

§

Mbo(MboMsg)

An market-by-order message.

§

Trade(TradeMsg)

A trade message.

§

Mbp1(Mbp1Msg)

A market-by-price message with a book depth of 1.

§

Mbp10(Mbp10Msg)

A market-by-price message with a book depth of 10.

§

Ohlcv(OhlcvMsg)

An open, high, low, close, and volume message.

§

Status(StatusMsg)

A trading status message.

§

InstrumentDef(InstrumentDefMsg)

An instrument definition message.

§

Imbalance(ImbalanceMsg)

An auction imbalance message.

§

Stat(StatMsg)

A publisher statistic message.

§

Error(ErrorMsg)

An error message from the Databento Live Subscription Gateway (LSG).

§

SymbolMapping(SymbolMappingMsg)

A symbol mapping message.

§

System(SystemMsg)

A non-error message from the Databento Live Subscription Gateway (LSG).

§

Cmbp1(Cmbp1Msg)

A consolidated best bid and offer message.

§

Bbo(BboMsg)

A subsampled market-by-price message with a book depth of 1.

§

Cbbo(CbboMsg)

A subsampled and consolidated market-by-price message with a book depth of 1.

Trait Implementations§

Source§

impl Clone for RecordEnum

Source§

fn clone(&self) -> RecordEnum

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RecordEnum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a RecordEnum> for RecordRef<'a>

Source§

fn from(rec_enum: &'a RecordEnum) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a RecordEnum> for RecordRefEnum<'a>

Source§

fn from(rec_enum: &'a RecordEnum) -> Self

Converts to this type from the input type.
Source§

impl From<CbboMsg> for RecordEnum

Source§

fn from(rec: CbboMsg) -> Self

Converts to this type from the input type.
Source§

impl From<Cmbp1Msg> for RecordEnum

Source§

fn from(rec: Cmbp1Msg) -> Self

Converts to this type from the input type.
Source§

impl From<ErrorMsg> for RecordEnum

Source§

fn from(rec: ErrorMsg) -> Self

Converts to this type from the input type.
Source§

impl From<ImbalanceMsg> for RecordEnum

Source§

fn from(rec: ImbalanceMsg) -> Self

Converts to this type from the input type.
Source§

impl From<InstrumentDefMsg> for RecordEnum

Source§

fn from(rec: InstrumentDefMsg) -> Self

Converts to this type from the input type.
Source§

impl From<MboMsg> for RecordEnum

Source§

fn from(rec: MboMsg) -> Self

Converts to this type from the input type.
Source§

impl From<Mbp10Msg> for RecordEnum

Source§

fn from(rec: Mbp10Msg) -> Self

Converts to this type from the input type.
Source§

impl From<Mbp1Msg> for RecordEnum

Source§

fn from(rec: Mbp1Msg) -> Self

Converts to this type from the input type.
Source§

impl From<OhlcvMsg> for RecordEnum

Source§

fn from(rec: OhlcvMsg) -> Self

Converts to this type from the input type.
Source§

impl From<StatMsg> for RecordEnum

Source§

fn from(rec: StatMsg) -> Self

Converts to this type from the input type.
Source§

impl From<StatusMsg> for RecordEnum

Source§

fn from(rec: StatusMsg) -> Self

Converts to this type from the input type.
Source§

impl From<SymbolMappingMsg> for RecordEnum

Source§

fn from(rec: SymbolMappingMsg) -> Self

Converts to this type from the input type.
Source§

impl From<SystemMsg> for RecordEnum

Source§

fn from(rec: SystemMsg) -> Self

Converts to this type from the input type.
Source§

impl From<TradeMsg> for RecordEnum

Source§

fn from(rec: TradeMsg) -> Self

Converts to this type from the input type.
Source§

impl Record for RecordEnum

Source§

fn header(&self) -> &RecordHeader

Returns a reference to the RecordHeader that comes at the beginning of all record types.
Source§

fn raw_index_ts(&self) -> u64

Returns the raw primary timestamp for the record. Read more
Source§

fn record_size(&self) -> usize

Returns the size of the record in bytes.
Source§

fn rtype(&self) -> Result<RType>

Tries to convert the raw record type into an enum which is useful for exhaustive pattern matching. Read more
Source§

fn publisher(&self) -> Result<Publisher>

Tries to convert the raw publisher_id into an enum which is useful for exhaustive pattern matching. Read more
Source§

fn index_ts(&self) -> Option<OffsetDateTime>

Returns the primary timestamp for the record. Returns None if the primary timestamp contains the sentinel value for a null timestamp. Read more
Source§

fn index_date(&self) -> Option<Date>

Returns the primary date for the record; the date component of the primary timestamp (index_ts()). Returns None if the primary timestamp contains the sentinel value for a null timestamp.
Source§

impl RecordMut for RecordEnum

Source§

fn header_mut(&mut self) -> &mut RecordHeader

Returns a mutable reference to the RecordHeader that comes at the beginning of all record types.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Ungil for T
where T: Send,