#[repr(align(16))]pub struct LimitOrder {
pub id: OrderId,
pub client_order_id: Option<ClientId>,
pub side: OrderSide,
pub price: Decimal,
pub original_quantity: Decimal,
pub remaining_quantity: Decimal,
pub creation_time_ns: u64,
}Expand description
Represents a limit order in the matching engine
Fields§
§id: OrderIdUnique order ID
client_order_id: Option<ClientId>Client-provided order ID (if any)
side: OrderSideOrder side (buy or sell)
price: DecimalLimit price
original_quantity: DecimalOriginal order quantity
remaining_quantity: DecimalRemaining quantity
creation_time_ns: u64Order creation time in nanoseconds
Implementations§
Trait Implementations§
Source§impl Clone for LimitOrder
impl Clone for LimitOrder
Source§fn clone(&self) -> LimitOrder
fn clone(&self) -> LimitOrder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LimitOrder
impl RefUnwindSafe for LimitOrder
impl Send for LimitOrder
impl Sync for LimitOrder
impl Unpin for LimitOrder
impl UnwindSafe for LimitOrder
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