pub struct OrderBookBatch {
pub orderbooks: Vec<OrderBook>,
pub batch_timestamp: u64,
pub batch_id: Option<String>,
}Expand description
The table OrderBookBatch in the namespace rusty_monitor.schema
Generated from these locations:
- Table
OrderBookBatchin the fileschemas/orderbook.fbs:42
Fields§
§orderbooks: Vec<OrderBook>The field orderbooks in the table OrderBookBatch
batch_timestamp: u64The field batch_timestamp in the table OrderBookBatch
batch_id: Option<String>The field batch_id in the table OrderBookBatch
Implementations§
Source§impl OrderBookBatch
impl OrderBookBatch
Sourcepub const fn builder() -> OrderBookBatchBuilder<()>
pub const fn builder() -> OrderBookBatchBuilder<()>
Creates a OrderBookBatchBuilder for serializing an instance of this table.
pub fn create( builder: &mut Builder, field_orderbooks: impl WriteAs<Offset<[Offset<OrderBook>]>>, field_batch_timestamp: impl WriteAsDefault<u64, u64>, field_batch_id: impl WriteAsOptional<Offset<str>>, ) -> Offset<Self>
Trait Implementations§
Source§impl Clone for OrderBookBatch
impl Clone for OrderBookBatch
Source§fn clone(&self) -> OrderBookBatch
fn clone(&self) -> OrderBookBatch
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderBookBatch
impl Debug for OrderBookBatch
Source§impl Default for OrderBookBatch
impl Default for OrderBookBatch
Source§impl<'de> Deserialize<'de> for OrderBookBatch
impl<'de> Deserialize<'de> for OrderBookBatch
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 OrderBookBatch
impl Hash for OrderBookBatch
Source§impl Ord for OrderBookBatch
impl Ord for OrderBookBatch
Source§fn cmp(&self, other: &OrderBookBatch) -> Ordering
fn cmp(&self, other: &OrderBookBatch) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for OrderBookBatch
impl PartialEq for OrderBookBatch
Source§impl PartialOrd for OrderBookBatch
impl PartialOrd for OrderBookBatch
Source§impl Serialize for OrderBookBatch
impl Serialize for OrderBookBatch
Source§impl<'a> TryFrom<OrderBookBatchRef<'a>> for OrderBookBatch
impl<'a> TryFrom<OrderBookBatchRef<'a>> for OrderBookBatch
impl Eq for OrderBookBatch
impl StructuralPartialEq for OrderBookBatch
impl VectorWrite<Offset<OrderBookBatch>> for OrderBookBatch
§Safety
The planus compiler generates implementations that initialize
the bytes in write_values.
impl WriteAs<Offset<OrderBookBatch>> for OrderBookBatch
impl WriteAsOffset<OrderBookBatch> for OrderBookBatch
impl<T0: WriteAs<Offset<[Offset<OrderBook>]>>, T1: WriteAsDefault<u64, u64>, T2: WriteAsOptional<Offset<str>>> WriteAsOffset<OrderBookBatch> for OrderBookBatchBuilder<(T0, T1, T2)>
impl WriteAsOptional<Offset<OrderBookBatch>> for OrderBookBatch
Auto Trait Implementations§
impl Freeze for OrderBookBatch
impl RefUnwindSafe for OrderBookBatch
impl Send for OrderBookBatch
impl Sync for OrderBookBatch
impl Unpin for OrderBookBatch
impl UnwindSafe for OrderBookBatch
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more