pub struct OrderEvent {
pub price: Decimal,
pub quantity_delta: u64,
pub side: Side,
}Expand description
Represents an event published by the OrderBook when its state changes.
This event is consumed by downstream services (like MarketDepthCache) to update
their own state without blocking the core order book operations.
Fields§
§price: DecimalThe exact price level where the change occurred
quantity_delta: u64The change in quantity at this price level (positive for additions)
side: SideWhether this event affects the bid or ask side
Trait Implementations§
Source§impl Clone for OrderEvent
impl Clone for OrderEvent
Source§fn clone(&self) -> OrderEvent
fn clone(&self) -> OrderEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderEvent
impl Debug for OrderEvent
Source§impl PartialEq for OrderEvent
impl PartialEq for OrderEvent
impl Eq for OrderEvent
impl StructuralPartialEq for OrderEvent
Auto Trait Implementations§
impl Freeze for OrderEvent
impl RefUnwindSafe for OrderEvent
impl Send for OrderEvent
impl Sync for OrderEvent
impl Unpin for OrderEvent
impl UnwindSafe for OrderEvent
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)