#[non_exhaustive]pub struct Execution {
pub account: AccountId,
pub kind: ExecutionType,
pub order: Option<Order>,
pub position: Option<Position>,
pub deal: Option<Deal>,
pub cash_flow: Option<CashFlow>,
pub error_code: Option<ErrorCode>,
pub server_event: bool,
}Expand description
One execution event: what happened, and the order, position and deal it happened to.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.account: AccountIdAccount the event belongs to.
kind: ExecutionTypeWhat happened.
order: Option<Order>Order the event is about, as it is after the event.
position: Option<Position>Position the event is about, as it is after the event.
deal: Option<Deal>Deal the event reports.
cash_flow: Option<CashFlow>Deposit, withdrawal or other change of the balance outside of trading the event reports.
error_code: Option<ErrorCode>Reason the server gives when it refuses an order.
server_event: boolTells whether the server acted by itself, as when a stop loss is hit, and not on a request of a client.
Trait Implementations§
impl Eq for Execution
impl StructuralPartialEq for Execution
Source§impl TryFrom<ProtoOaExecutionEvent> for Execution
impl TryFrom<ProtoOaExecutionEvent> for Execution
Source§type Error = ValueError
type Error = ValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for Execution
impl Freeze for Execution
impl Move 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