#[repr(u8)]pub enum RType {
Show 23 variants
Mbp0 = 0,
Mbp1 = 1,
Mbp10 = 10,
OhlcvDeprecated = 17,
Ohlcv1S = 32,
Ohlcv1M = 33,
Ohlcv1H = 34,
Ohlcv1D = 35,
OhlcvEod = 36,
Status = 18,
InstrumentDef = 19,
Imbalance = 20,
Error = 21,
SymbolMapping = 22,
System = 23,
Statistics = 24,
Mbo = 160,
Cmbp1 = 177,
Cbbo1S = 192,
Cbbo1M = 193,
Tcbbo = 194,
Bbo1S = 195,
Bbo1M = 196,
}Expand description
A record type,
i.e. a sentinel for different types implementing HasRType.
Use in RecordHeader to indicate the type of record,
which is useful when working with DBN streams containing multiple record types.
Variants§
Mbp0 = 0
Denotes a market-by-price record with a book depth of 0 (used for the
Trades schema).
Mbp1 = 1
Denotes a market-by-price record with a book depth of 1 (also used for the
Tbbo schema).
Mbp10 = 10
Denotes a market-by-price record with a book depth of 10.
OhlcvDeprecated = 17
Separated into separate rtypes for each OHLCV schema.
Denotes an open, high, low, close, and volume record at an unspecified cadence.
Ohlcv1S = 32
Denotes an open, high, low, close, and volume record at a 1-second cadence.
Ohlcv1M = 33
Denotes an open, high, low, close, and volume record at a 1-minute cadence.
Ohlcv1H = 34
Denotes an open, high, low, close, and volume record at an hourly cadence.
Ohlcv1D = 35
Denotes an open, high, low, close, and volume record at a daily cadence based on the UTC date.
OhlcvEod = 36
Denotes an open, high, low, close, and volume record at a daily cadence based on the end of the trading session.
Status = 18
Denotes an exchange status record.
InstrumentDef = 19
Denotes an instrument definition record.
Imbalance = 20
Denotes an order imbalance record.
Error = 21
Denotes an error from gateway.
SymbolMapping = 22
Denotes a symbol mapping record.
System = 23
Denotes a non-error message from the gateway. Also used for heartbeats.
Statistics = 24
Denotes a statistics record from the publisher (not calculated by Databento).
Mbo = 160
Denotes a market-by-order record.
Cmbp1 = 177
Denotes a consolidated best bid and offer record.
Cbbo1S = 192
Denotes a consolidated best bid and offer record subsampled on a one-second interval.
Cbbo1M = 193
Denotes a consolidated best bid and offer record subsampled on a one-minute interval.
Tcbbo = 194
Denotes a consolidated best bid and offer trade record containing the consolidated BBO before the trade
Bbo1S = 195
Denotes a best bid and offer record subsampled on a one-second interval.
Bbo1M = 196
Denotes a best bid and offer record subsampled on a one-minute interval.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for RType
serde only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl<'a, 'py> FromPyObject<'a, 'py> for RTypewhere
Self: Clone,
impl<'a, 'py> FromPyObject<'a, 'py> for RTypewhere
Self: Clone,
Source§impl IntoEnumIterator for RType
impl IntoEnumIterator for RType
Source§impl<'py> IntoPyObject<'py> for RType
impl<'py> IntoPyObject<'py> for RType
Source§type Output = Bound<'py, <RType as IntoPyObject<'py>>::Target>
type Output = Bound<'py, <RType as IntoPyObject<'py>>::Target>
Source§fn into_pyobject(
self,
py: Python<'py>,
) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
fn into_pyobject( self, py: Python<'py>, ) -> Result<<Self as IntoPyObject<'py>>::Output, <Self as IntoPyObject<'py>>::Error>
Source§impl Ord for RType
impl Ord for RType
Source§impl PartialOrd for RType
impl PartialOrd for RType
Source§impl PyClassImpl for RType
impl PyClassImpl for RType
Source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
Source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
Source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
Source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
Source§const IS_IMMUTABLE_TYPE: bool = false
const IS_IMMUTABLE_TYPE: bool = false
Source§const RAW_DOC: &'static CStr = /// A [record type](https://databento.com/docs/standards-and-conventions/common-fields-enums-types),
/// i.e. a sentinel for different types implementing [`HasRType`](crate::record::HasRType).
///
/// Use in [`RecordHeader`](crate::RecordHeader) to indicate the type of record,
/// which is useful when working with DBN streams containing multiple record types.
const RAW_DOC: &'static CStr = /// A [record type](https://databento.com/docs/standards-and-conventions/common-fields-enums-types), /// i.e. a sentinel for different types implementing [`HasRType`](crate::record::HasRType). /// /// Use in [`RecordHeader`](crate::RecordHeader) to indicate the type of record, /// which is useful when working with DBN streams containing multiple record types.
Source§const DOC: &'static CStr
const DOC: &'static CStr
text_signature if a constructor is defined. Read moreSource§type Layout = <<RType as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<RType>
type Layout = <<RType as PyClassImpl>::BaseNativeType as PyClassBaseType>::Layout<RType>
Source§type ThreadChecker = NoopThreadChecker
type ThreadChecker = NoopThreadChecker
Source§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Source§type BaseNativeType = PyAny
type BaseNativeType = PyAny
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
Source§fn dict_offset() -> Option<PyObjectOffset>
fn dict_offset() -> Option<PyObjectOffset>
Source§fn weaklist_offset() -> Option<PyObjectOffset>
fn weaklist_offset() -> Option<PyObjectOffset>
Source§impl PyClassNewTextSignature for RType
Available on crate feature python only.
impl PyClassNewTextSignature for RType
python only.const TEXT_SIGNATURE: &'static str = "(value)"
Source§impl PyClass__eq__SlotFragment<RType> for PyClassImplCollector<RType>
Available on crate feature python only.
impl PyClass__eq__SlotFragment<RType> for PyClassImplCollector<RType>
python only.Source§impl PyMethods<RType> for PyClassImplCollector<RType>
Available on crate feature python only.
impl PyMethods<RType> for PyClassImplCollector<RType>
python only.fn py_methods(self) -> &'static PyClassItems
Source§impl PyTypeInfo for RType
impl PyTypeInfo for RType
Source§const NAME: &str = <Self as ::pyo3::PyClass>::NAME
const NAME: &str = <Self as ::pyo3::PyClass>::NAME
prefer using ::type_object(py).name() to get the correct runtime value
Source§const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
const MODULE: Option<&str> = <Self as ::pyo3::impl_::pyclass::PyClassImpl>::MODULE
prefer using ::type_object(py).module() to get the correct runtime value
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Source§fn type_object(py: Python<'_>) -> Bound<'_, PyType>
fn type_object(py: Python<'_>) -> Bound<'_, PyType>
Source§impl TryFromPrimitive for RType
impl TryFromPrimitive for RType
Source§impl WritePyRepr for RType
Available on crate feature python only.
impl WritePyRepr for RType
python only.Source§fn write_py_repr(&self, s: &mut String) -> Result
fn write_py_repr(&self, s: &mut String) -> Result
s. Read moreSource§const SHOULD_FLATTEN: bool = false
const SHOULD_FLATTEN: bool = false
impl Copy for RType
impl Eq for RType
impl StructuralPartialEq for RType
Auto Trait Implementations§
impl Freeze for RType
impl RefUnwindSafe for RType
impl Send for RType
impl Sync for RType
impl Unpin for RType
impl UnsafeUnpin for RType
impl UnwindSafe for RType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
impl<'py, T> IntoPyObjectExt<'py> for Twhere
T: IntoPyObject<'py>,
Source§fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
fn into_bound_py_any(self, py: Python<'py>) -> Result<Bound<'py, PyAny>, PyErr>
self into an owned Python object, dropping type information.Source§impl<T> PyErrArguments for T
impl<T> PyErrArguments for T
Source§impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
impl<T> PyTypeCheck for Twhere
T: PyTypeInfo,
Source§const NAME: &'static str = T::NAME
const NAME: &'static str = T::NAME
Use ::classinfo_object() instead and format the type name at runtime. Note that using built-in cast features is often better than manual PyTypeCheck usage.