pub struct DepthUpdate {
pub event_type: String,
pub event_time: u64,
pub transaction_time: u64,
pub symbol: String,
pub first_update_id: u64,
pub last_update_id: u64,
pub prev_update_id: u64,
pub bids: Vec<PriceLevel>,
pub asks: Vec<PriceLevel>,
pub msg_type: MessageType,
}Expand description
Binance-compatible depth update message
Fields§
§event_type: String§event_time: u64§transaction_time: u64§symbol: String§first_update_id: u64§last_update_id: u64§prev_update_id: u64§bids: Vec<PriceLevel>§asks: Vec<PriceLevel>§msg_type: MessageTypeTrait Implementations§
Source§impl Clone for DepthUpdate
impl Clone for DepthUpdate
Source§fn clone(&self) -> DepthUpdate
fn clone(&self) -> DepthUpdate
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 DepthUpdate
impl Debug for DepthUpdate
Source§impl<'de> Deserialize<'de> for DepthUpdate
impl<'de> Deserialize<'de> for DepthUpdate
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 DepthUpdate
impl RefUnwindSafe for DepthUpdate
impl Send for DepthUpdate
impl Sync for DepthUpdate
impl Unpin for DepthUpdate
impl UnsafeUnpin for DepthUpdate
impl UnwindSafe for DepthUpdate
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