Struct barter_data::model::OrderBook
source · [−]pub struct OrderBook {
pub last_update_time: DateTime<Utc>,
pub last_update_id: u64,
pub bids: Vec<Level>,
pub asks: Vec<Level>,
}Expand description
Normalised Barter OrderBook snapshot.
Fields
last_update_time: DateTime<Utc>last_update_id: u64bids: Vec<Level>asks: Vec<Level>Trait Implementations
sourceimpl<'de> Deserialize<'de> for OrderBook
impl<'de> Deserialize<'de> for OrderBook
sourcefn 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
sourceimpl PartialOrd<OrderBook> for OrderBook
impl PartialOrd<OrderBook> for OrderBook
sourcefn partial_cmp(&self, other: &OrderBook) -> Option<Ordering>
fn partial_cmp(&self, other: &OrderBook) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for OrderBook
Auto Trait Implementations
impl RefUnwindSafe for OrderBook
impl Send for OrderBook
impl Sync for OrderBook
impl Unpin for OrderBook
impl UnwindSafe for OrderBook
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more