pub struct WebSocketDepthEvent {
pub event_type: String,
pub event_time: i64,
pub symbol: String,
pub first_update_id: i64,
pub last_update_id: i64,
pub bids: Vec<DepthElement>,
pub asks: Vec<DepthElement>,
}Expand description
The depth data, received via WebSocket.
Fields§
§event_type: StringThe trade event type. Usually equal to depthUpdate.
event_time: i64The trade event time in milliseconds since Unix epoch.
symbol: StringThe trading symbol name.
first_update_id: i64The first update ID.
last_update_id: i64The last update ID.
bids: Vec<DepthElement>The orders below the current price.
asks: Vec<DepthElement>The orders above the current price.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Depth
impl<'de> Deserialize<'de> for Depth
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 Depth
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnwindSafe for Depth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more