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<DepthUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DepthUpdate, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DepthUpdate
impl Serialize for DepthUpdate
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. 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