pub struct BookDelta {
pub side: Side,
pub price: Price,
pub quantity: Quantity,
pub action: DeltaAction,
pub sequence: u64,
}Expand description
An incremental update to an order book.
Fields§
§side: SideWhich side of the book this update applies to.
price: PriceThe price level being updated.
quantity: QuantityThe new quantity (used for Set; ignored for Remove).
action: DeltaActionThe action to take.
sequence: u64Must equal book.sequence() + 1.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BookDelta
impl<'de> Deserialize<'de> for BookDelta
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 BookDelta
impl RefUnwindSafe for BookDelta
impl Send for BookDelta
impl Sync for BookDelta
impl Unpin for BookDelta
impl UnsafeUnpin for BookDelta
impl UnwindSafe for BookDelta
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