pub struct OrderUpdatedSpec {Show 15 fields
pub trader_id: TraderId,
pub strategy_id: StrategyId,
pub instrument_id: InstrumentId,
pub client_order_id: ClientOrderId,
pub quantity: Quantity,
pub event_id: UUID4,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
pub reconciliation: bool,
pub venue_order_id: Option<VenueOrderId>,
pub account_id: Option<AccountId>,
pub price: Option<Price>,
pub trigger_price: Option<Price>,
pub protection_price: Option<Price>,
pub is_quote_quantity: bool,
}Expand description
Test-only fluent spec for OrderUpdated.
All fields carry sensible defaults so callers only set what differs.
build() constructs the event through OrderUpdated::new so any future invariants
added to the production constructor are exercised by tests built on this spec.
Fields§
§trader_id: TraderId§strategy_id: StrategyId§instrument_id: InstrumentId§client_order_id: ClientOrderId§quantity: Quantity§event_id: UUID4§ts_event: UnixNanos§ts_init: UnixNanos§reconciliation: bool§venue_order_id: Option<VenueOrderId>§account_id: Option<AccountId>§price: Option<Price>§trigger_price: Option<Price>§protection_price: Option<Price>§is_quote_quantity: boolImplementations§
Source§impl OrderUpdatedSpec
impl OrderUpdatedSpec
Sourcepub fn builder() -> OrderUpdatedSpecBuilder
pub fn builder() -> OrderUpdatedSpecBuilder
Create an instance of OrderUpdatedSpec using the builder syntax
Trait Implementations§
Source§impl Clone for OrderUpdatedSpec
impl Clone for OrderUpdatedSpec
Source§fn clone(&self) -> OrderUpdatedSpec
fn clone(&self) -> OrderUpdatedSpec
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 moreAuto Trait Implementations§
impl Freeze for OrderUpdatedSpec
impl RefUnwindSafe for OrderUpdatedSpec
impl Send for OrderUpdatedSpec
impl Sync for OrderUpdatedSpec
impl Unpin for OrderUpdatedSpec
impl UnsafeUnpin for OrderUpdatedSpec
impl UnwindSafe for OrderUpdatedSpec
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more