pub enum Execution {
FullExecution(OrderId),
PartialExecution(OrderId, Quantity),
FullCancel(OrderId),
PartialCancel(OrderId, Quantity),
}Expand description
Represents the result of a single order execution.
§Example
use clob_sync::prelude::{Execution, OrderId, Quantity};
let full_exec = Execution::FullExecution(OrderId::default());
let partial_exec = Execution::PartialExecution(OrderId::default(), Quantity::from(1u64));Variants§
FullExecution(OrderId)
Order was fully executed
PartialExecution(OrderId, Quantity)
Order was partially executed with remaining quantity
FullCancel(OrderId)
Order was fully cancelled
PartialCancel(OrderId, Quantity)
Order was partially cancelled with remaining quantity
Trait Implementations§
Source§impl From<&PartialFill> for Execution
impl From<&PartialFill> for Execution
Source§fn from(value: &PartialFill) -> Self
fn from(value: &PartialFill) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Execution
impl RefUnwindSafe for Execution
impl Send for Execution
impl Sync for Execution
impl Unpin for Execution
impl UnsafeUnpin for Execution
impl UnwindSafe for Execution
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