pub struct DepthSnapshot {
pub bids: Vec<DepthLevel>,
pub asks: Vec<DepthLevel>,
}Expand description
Depth snapshot from GET /v1/depth or WebSocket subscribe_depth.
Fields§
§bids: Vec<DepthLevel>Bid side of the order book, sorted by price descending.
asks: Vec<DepthLevel>Ask side of the order book, sorted by price ascending.
Trait Implementations§
Source§impl Clone for DepthSnapshot
impl Clone for DepthSnapshot
Source§fn clone(&self) -> DepthSnapshot
fn clone(&self) -> DepthSnapshot
Returns a duplicate 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 DepthSnapshot
impl Debug for DepthSnapshot
Source§impl<'de> Deserialize<'de> for DepthSnapshot
impl<'de> Deserialize<'de> for DepthSnapshot
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
Auto Trait Implementations§
impl Freeze for DepthSnapshot
impl RefUnwindSafe for DepthSnapshot
impl Send for DepthSnapshot
impl Sync for DepthSnapshot
impl Unpin for DepthSnapshot
impl UnwindSafe for DepthSnapshot
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