pub struct Level2Update {
pub message_type: String,
pub product_id: String,
pub time: String,
pub changes: SmallVec<[Level2Change; 32]>,
}Expand description
Coinbase WebSocket Level2 update message
Fields§
§message_type: StringMessage type (always “l2update”)
product_id: StringTrading pair identifier
time: StringUpdate timestamp in ISO 8601 format
changes: SmallVec<[Level2Change; 32]>Price level changes [side, price, size]
Trait Implementations§
Source§impl Clone for Level2Update
impl Clone for Level2Update
Source§fn clone(&self) -> Level2Update
fn clone(&self) -> Level2Update
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 Level2Update
impl Debug for Level2Update
Source§impl<'de> Deserialize<'de> for Level2Update
impl<'de> Deserialize<'de> for Level2Update
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 Level2Update
impl RefUnwindSafe for Level2Update
impl Send for Level2Update
impl Sync for Level2Update
impl Unpin for Level2Update
impl UnwindSafe for Level2Update
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