Struct dbn::record::ConsolidatedBidAskPair
source · #[repr(C)]pub struct ConsolidatedBidAskPair {
pub bid_px: i64,
pub ask_px: i64,
pub bid_sz: u32,
pub ask_sz: u32,
pub bid_pb: u16,
pub ask_pb: u16,
/* private fields */
}
Expand description
A price level consolidated from multiple venues.
Fields§
§bid_px: i64
The bid price.
ask_px: i64
The ask price.
bid_sz: u32
The bid size.
ask_sz: u32
The ask size.
bid_pb: u16
The bid publisher ID assigned by Databento, which denotes the dataset and venue.
ask_pb: u16
The ask publisher ID assigned by Databento, which denotes the dataset and venue.
Implementations§
Trait Implementations§
source§impl Clone for ConsolidatedBidAskPair
impl Clone for ConsolidatedBidAskPair
source§fn clone(&self) -> ConsolidatedBidAskPair
fn clone(&self) -> ConsolidatedBidAskPair
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConsolidatedBidAskPair
impl Debug for ConsolidatedBidAskPair
source§impl Default for ConsolidatedBidAskPair
impl Default for ConsolidatedBidAskPair
source§impl<'de> Deserialize<'de> for ConsolidatedBidAskPair
impl<'de> Deserialize<'de> for ConsolidatedBidAskPair
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for ConsolidatedBidAskPair
impl Hash for ConsolidatedBidAskPair
source§impl PartialEq for ConsolidatedBidAskPair
impl PartialEq for ConsolidatedBidAskPair
source§fn eq(&self, other: &ConsolidatedBidAskPair) -> bool
fn eq(&self, other: &ConsolidatedBidAskPair) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PyClass for ConsolidatedBidAskPair
impl PyClass for ConsolidatedBidAskPair
source§impl PyClassImpl for ConsolidatedBidAskPair
impl PyClassImpl for ConsolidatedBidAskPair
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<ConsolidatedBidAskPair>
type ThreadChecker = SendablePyClass<ConsolidatedBidAskPair>
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 dict_offset() -> Option<Py_ssize_t>
fn lazy_type_object() -> &'static LazyTypeObject<Self>
fn weaklist_offset() -> Option<isize>
source§impl PyClassNewTextSignature<ConsolidatedBidAskPair> for PyClassImplCollector<ConsolidatedBidAskPair>
Available on crate feature python
only.
impl PyClassNewTextSignature<ConsolidatedBidAskPair> for PyClassImplCollector<ConsolidatedBidAskPair>
Available on crate feature
python
only.fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ConsolidatedBidAskPair
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a ConsolidatedBidAskPair
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ConsolidatedBidAskPair
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut ConsolidatedBidAskPair
source§impl PyMethods<ConsolidatedBidAskPair> for PyClassImplCollector<ConsolidatedBidAskPair>
Available on crate feature python
only.
impl PyMethods<ConsolidatedBidAskPair> for PyClassImplCollector<ConsolidatedBidAskPair>
Available on crate feature
python
only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for ConsolidatedBidAskPair
impl PyTypeInfo for ConsolidatedBidAskPair
§type AsRefTarget = PyCell<ConsolidatedBidAskPair>
type AsRefTarget = PyCell<ConsolidatedBidAskPair>
Utility type to make Py::as_ref work.
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
Returns the safe abstraction over the type object.
source§fn is_type_of(object: &PyAny) -> bool
fn is_type_of(object: &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
Checks if
object
is an instance of this type.source§impl Serialize for ConsolidatedBidAskPair
impl Serialize for ConsolidatedBidAskPair
impl Copy for ConsolidatedBidAskPair
impl Eq for ConsolidatedBidAskPair
impl StructuralPartialEq for ConsolidatedBidAskPair
Auto Trait Implementations§
impl Freeze for ConsolidatedBidAskPair
impl RefUnwindSafe for ConsolidatedBidAskPair
impl Send for ConsolidatedBidAskPair
impl Sync for ConsolidatedBidAskPair
impl Unpin for ConsolidatedBidAskPair
impl UnwindSafe for ConsolidatedBidAskPair
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