pub enum OrderUpdate {
UpdatePrice {
order_id: OrderId,
new_price: u64,
},
UpdateQuantity {
order_id: OrderId,
new_quantity: u64,
},
UpdatePriceAndQuantity {
order_id: OrderId,
new_price: u64,
new_quantity: u64,
},
Cancel {
order_id: OrderId,
},
Replace {
order_id: OrderId,
price: u64,
quantity: u64,
side: Side,
},
}Expand description
Represents a request to update an existing order
Variants§
UpdatePrice
Update the price of an order
UpdateQuantity
Update the quantity of an order
UpdatePriceAndQuantity
Update both price and quantity of an order
Fields
Cancel
Cancel an order
Replace
Replace an order entirely with a new one
Trait Implementations§
Source§impl Clone for OrderUpdate
impl Clone for OrderUpdate
Source§fn clone(&self) -> OrderUpdate
fn clone(&self) -> OrderUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderUpdate
impl Debug for OrderUpdate
Source§impl<'de> Deserialize<'de> for OrderUpdate
impl<'de> Deserialize<'de> for OrderUpdate
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
Source§impl Display for OrderUpdate
impl Display for OrderUpdate
Source§impl FromStr for OrderUpdate
impl FromStr for OrderUpdate
Source§impl Serialize for OrderUpdate
impl Serialize for OrderUpdate
impl Copy for OrderUpdate
Auto Trait Implementations§
impl Freeze for OrderUpdate
impl RefUnwindSafe for OrderUpdate
impl Send for OrderUpdate
impl Sync for OrderUpdate
impl Unpin for OrderUpdate
impl UnwindSafe for OrderUpdate
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