pub struct Order {
pub price: Decimal,
pub quantity: u64,
pub side: Side,
}Expand description
Represents a single order in the order book.
Each order contains a price, quantity, and side (bid or ask).
Fields§
§price: DecimalThe price level at which this order is placed (using fixed-point arithmetic)
quantity: u64The quantity of the asset being bought or sold
side: SideWhether this is a buy (Bid) or sell (Ask) order
Implementations§
Trait Implementations§
impl Eq for Order
impl StructuralPartialEq for Order
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnwindSafe for Order
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)