pub struct Level2Snapshot {
pub message_type: String,
pub product_id: String,
pub bids: SmallVec<[[String; 2]; 32]>,
pub asks: SmallVec<[[String; 2]; 32]>,
}Expand description
Coinbase WebSocket Level2 snapshot message
Fields§
§message_type: StringMessage type (always “snapshot”)
product_id: StringTrading pair identifier
bids: SmallVec<[[String; 2]; 32]>Bid price levels as [price, size] pairs
asks: SmallVec<[[String; 2]; 32]>Ask price levels as [price, size] pairs
Trait Implementations§
Source§impl Clone for Level2Snapshot
impl Clone for Level2Snapshot
Source§fn clone(&self) -> Level2Snapshot
fn clone(&self) -> Level2Snapshot
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 Level2Snapshot
impl Debug for Level2Snapshot
Source§impl<'de> Deserialize<'de> for Level2Snapshot
impl<'de> Deserialize<'de> for Level2Snapshot
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 Level2Snapshot
impl RefUnwindSafe for Level2Snapshot
impl Send for Level2Snapshot
impl Sync for Level2Snapshot
impl Unpin for Level2Snapshot
impl UnwindSafe for Level2Snapshot
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