Struct dbn::record::BidAskPair
source · #[repr(C)]pub struct BidAskPair {
pub bid_px: i64,
pub ask_px: i64,
pub bid_sz: u32,
pub ask_sz: u32,
pub bid_ct: u32,
pub ask_ct: u32,
}
Expand description
A level.
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_ct: u32
The bid order count.
ask_ct: u32
The ask order count.
Trait Implementations§
source§impl Clone for BidAskPair
impl Clone for BidAskPair
source§fn clone(&self) -> BidAskPair
fn clone(&self) -> BidAskPair
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 BidAskPair
impl Debug for BidAskPair
source§impl Default for BidAskPair
impl Default for BidAskPair
source§impl<'de> Deserialize<'de> for BidAskPair
impl<'de> Deserialize<'de> for BidAskPair
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 BidAskPair
impl Hash for BidAskPair
source§impl PartialEq for BidAskPair
impl PartialEq for BidAskPair
source§fn eq(&self, other: &BidAskPair) -> bool
fn eq(&self, other: &BidAskPair) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PyClassImpl for BidAskPair
impl PyClassImpl for BidAskPair
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<BidAskPair>
type ThreadChecker = SendablePyClass<BidAskPair>
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<BidAskPair> for PyClassImplCollector<BidAskPair>
Available on crate feature python
only.
impl PyClassNewTextSignature<BidAskPair> for PyClassImplCollector<BidAskPair>
Available on crate feature
python
only.fn new_text_signature(self) -> Option<&'static str>
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a BidAskPair
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a BidAskPair
source§impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut BidAskPair
impl<'a, 'py> PyFunctionArgument<'a, 'py> for &'a mut BidAskPair
source§impl PyMethods<BidAskPair> for PyClassImplCollector<BidAskPair>
Available on crate feature python
only.
impl PyMethods<BidAskPair> for PyClassImplCollector<BidAskPair>
Available on crate feature
python
only.fn py_methods(self) -> &'static PyClassItems
source§impl PyTypeInfo for BidAskPair
impl PyTypeInfo for BidAskPair
§type AsRefTarget = PyCell<BidAskPair>
type AsRefTarget = PyCell<BidAskPair>
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 BidAskPair
impl Serialize for BidAskPair
impl Copy for BidAskPair
impl Eq for BidAskPair
impl StructuralPartialEq for BidAskPair
Auto Trait Implementations§
impl Freeze for BidAskPair
impl RefUnwindSafe for BidAskPair
impl Send for BidAskPair
impl Sync for BidAskPair
impl Unpin for BidAskPair
impl UnwindSafe for BidAskPair
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