#[non_exhaustive]pub enum TradeEvent {
Execution(Box<Execution>),
OrderError(OrderError),
}Expand description
One event of the trading of an account.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Execution(Box<Execution>)
Something happened to an order, a position or the money of the account; the
Execution::kind tells what.
OrderError(OrderError)
The server refused a request that trades.
Implementations§
Trait Implementations§
Source§impl Clone for TradeEvent
impl Clone for TradeEvent
Source§impl Debug for TradeEvent
impl Debug for TradeEvent
impl Eq for TradeEvent
Source§impl Hash for TradeEvent
impl Hash for TradeEvent
Source§impl PartialEq for TradeEvent
impl PartialEq for TradeEvent
impl StructuralPartialEq for TradeEvent
Auto Trait Implementations§
impl Forget for TradeEvent
impl Freeze for TradeEvent
impl Move for TradeEvent
impl RefUnwindSafe for TradeEvent
impl Send for TradeEvent
impl Sync for TradeEvent
impl Unpin for TradeEvent
impl UnsafeUnpin for TradeEvent
impl UnwindSafe for TradeEvent
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