matchcore/command/cancel.rs
1use crate::{OrderId, OrderKind};
2
3/// Represents a command to cancel an existing order
4#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
5#[derive(Debug, Clone, Copy, PartialEq, Eq)]
6pub struct CancelCmd {
7 /// The ID of the order to cancel
8 pub order_id: OrderId,
9 /// The type of the order to cancel
10 pub order_kind: OrderKind,
11}