#[repr(u8)]pub enum SType {
InstrumentId = 0,
RawSymbol = 1,
Smart = 2,
Continuous = 3,
Parent = 4,
Nasdaq = 5,
Cms = 6,
}Expand description
A symbology type. Refer to the symbology documentation for more information.
Variants§
InstrumentId = 0
Symbology using a unique numeric ID.
RawSymbol = 1
Symbology using the original symbols provided by the publisher.
Smart = 2
👎Deprecated since 0.5.0: Smart was split into Continuous and Parent.
A set of Databento-specific symbologies for referring to groups of symbols.
Continuous = 3
A Databento-specific symbology where one symbol may point to different instruments at different points of time, e.g. to always refer to the front month future.
Parent = 4
A Databento-specific symbology for referring to a group of symbols by one “parent” symbol, e.g. ES.FUT to refer to all ES futures.
Nasdaq = 5
Symbology for US equities using NASDAQ Integrated suffix conventions.
Cms = 6
Symbology for US equities using CMS suffix conventions.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SType
Available on crate feature serde only.
impl<'de> Deserialize<'de> for SType
Available on crate feature
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>
Deserialize this value from the given Serde deserializer. Read more
source§impl HasPyGilRef for SType
impl HasPyGilRef for SType
§type AsRefTarget = PyCell<SType>
type AsRefTarget = PyCell<SType>
Utility type to make Py::as_ref work.
source§impl PartialEq for SType
impl PartialEq for SType
source§impl PyClassImpl for SType
impl PyClassImpl for SType
source§const IS_BASETYPE: bool = false
const IS_BASETYPE: bool = false
#[pyclass(subclass)]
source§const IS_SUBCLASS: bool = false
const IS_SUBCLASS: bool = false
#[pyclass(extends=…)]
source§const IS_MAPPING: bool = false
const IS_MAPPING: bool = false
#[pyclass(mapping)]
source§const IS_SEQUENCE: bool = false
const IS_SEQUENCE: bool = false
#[pyclass(sequence)]
§type ThreadChecker = SendablePyClass<SType>
type ThreadChecker = SendablePyClass<SType>
This handles following two situations: Read more
§type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
type PyClassMutability = <<PyAny as PyClassBaseType>::PyClassMutability as PyClassMutability>::MutableChild
Immutable or mutable
§type BaseNativeType = PyAny
type BaseNativeType = PyAny
The closest native ancestor. This is
PyAny by default, and when you declare
#[pyclass(extends=PyDict)], it’s PyDict.fn items_iter() -> PyClassItemsIter
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn dict_offset() -> Option<isize>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<SType> for PyClassImplCollector<SType>
Available on crate feature python only.
impl PyClassNewTextSignature<SType> for PyClassImplCollector<SType>
Available on crate feature
python only.fn new_text_signature(self) -> Option<&'static str>
source§impl PyMethods<SType> for PyClassImplCollector<SType>
Available on crate feature python only.
impl PyMethods<SType> for PyClassImplCollector<SType>
Available on crate feature
python only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for SType
impl PyTypeInfo for SType
source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
source§fn type_object(py: Python<'_>) -> &PyType
fn type_object(py: Python<'_>) -> &PyType
👎Deprecated since 0.21.0:
PyTypeInfo::type_object will be replaced by PyTypeInfo::type_object_bound in a future PyO3 versionReturns the safe abstraction over the type object.
source§fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_type_of will be replaced by PyTypeInfo::is_type_of_bound in a future PyO3 versionChecks if
object is an instance of this type or a subclass of this type.source§fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
fn is_type_of_bound(object: &Bound<'_, PyAny>) -> bool
Checks if
object is an instance of this type or a subclass of this type.source§fn is_exact_type_of(object: &PyAny) -> bool
fn is_exact_type_of(object: &PyAny) -> bool
👎Deprecated since 0.21.0:
PyTypeInfo::is_exact_type_of will be replaced by PyTypeInfo::is_exact_type_of_bound in a future PyO3 versionChecks if
object is an instance of this type.source§impl TryFrom<u8> for SType
impl TryFrom<u8> for SType
§type Error = TryFromPrimitiveError<SType>
type Error = TryFromPrimitiveError<SType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for SType
impl TryFromPrimitive for SType
impl Copy for SType
impl Eq for SType
impl StructuralPartialEq for SType
Auto Trait Implementations§
impl Freeze for SType
impl RefUnwindSafe for SType
impl Send for SType
impl Sync for SType
impl Unpin for SType
impl UnwindSafe for SType
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,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)