pub enum ExecutionEvent {
VenueAccepted {
order: CanonicalOrderSnapshot,
},
VenueRejected {
category: RejectionCategory,
message: BoundedText,
venue_order_ref: Option<VenueOrderRef>,
},
OrderPartiallyFilled {
fill: CanonicalFill,
order: CanonicalOrderSnapshot,
},
OrderFilled {
fill: CanonicalFill,
order: CanonicalOrderSnapshot,
},
OrderCancelled {
venue_order_ref: VenueOrderRef,
order: Option<CanonicalOrderSnapshot>,
reason: Option<BoundedText>,
},
OrderExpired {
venue_order_ref: VenueOrderRef,
order: Option<CanonicalOrderSnapshot>,
},
ProtectionChanged {
venue_position_ref: VenuePositionRef,
protection: CanonicalProtection,
},
TargetsChanged {
venue_position_ref: VenuePositionRef,
targets: Vec<CanonicalTarget>,
},
PositionChanged {
position: CanonicalPositionSnapshot,
fill: Option<CanonicalFill>,
},
PositionClosed {
close: CanonicalClose,
},
Reconciled {
source: ReconciliationSource,
order: Option<CanonicalOrderSnapshot>,
position: Option<CanonicalPositionSnapshot>,
note: Option<BoundedText>,
},
}Variants§
VenueAccepted
Fields
§
order: CanonicalOrderSnapshotVenueRejected
OrderPartiallyFilled
OrderFilled
OrderCancelled
Fields
§
venue_order_ref: VenueOrderRef§
order: Option<CanonicalOrderSnapshot>§
reason: Option<BoundedText>OrderExpired
ProtectionChanged
TargetsChanged
PositionChanged
PositionClosed
Fields
§
close: CanonicalCloseReconciled
Fields
§
source: ReconciliationSource§
order: Option<CanonicalOrderSnapshot>§
position: Option<CanonicalPositionSnapshot>§
note: Option<BoundedText>Implementations§
Source§impl ExecutionEvent
impl ExecutionEvent
pub fn validate(&self) -> Result<(), ExecutionEventError>
Trait Implementations§
Source§impl Clone for ExecutionEvent
impl Clone for ExecutionEvent
Source§fn clone(&self) -> ExecutionEvent
fn clone(&self) -> ExecutionEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExecutionEvent
impl Debug for ExecutionEvent
Source§impl<'de> Deserialize<'de> for ExecutionEvent
impl<'de> Deserialize<'de> for ExecutionEvent
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
impl Eq for ExecutionEvent
Source§impl PartialEq for ExecutionEvent
impl PartialEq for ExecutionEvent
Source§impl Serialize for ExecutionEvent
impl Serialize for ExecutionEvent
impl StructuralPartialEq for ExecutionEvent
Auto Trait Implementations§
impl Freeze for ExecutionEvent
impl RefUnwindSafe for ExecutionEvent
impl Send for ExecutionEvent
impl Sync for ExecutionEvent
impl Unpin for ExecutionEvent
impl UnsafeUnpin for ExecutionEvent
impl UnwindSafe for ExecutionEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.