pub struct OrderCancelDeniedSpec {
pub trader_id: TraderId,
pub strategy_id: StrategyId,
pub instrument_id: InstrumentId,
pub client_order_id: ClientOrderId,
pub reason: Ustr,
pub event_id: UUID4,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
pub venue_order_id: Option<VenueOrderId>,
pub account_id: Option<AccountId>,
pub causation_id: Option<UUID4>,
}Expand description
Test-only fluent spec for OrderCancelDenied.
All fields carry sensible defaults so callers only set what differs.
build() constructs the event through OrderCancelDenied::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§reason: Ustr§event_id: UUID4§ts_event: UnixNanos§ts_init: UnixNanos§venue_order_id: Option<VenueOrderId>§account_id: Option<AccountId>§causation_id: Option<UUID4>Implementations§
Source§impl OrderCancelDeniedSpec
impl OrderCancelDeniedSpec
Sourcepub fn builder() -> OrderCancelDeniedSpecBuilder
pub fn builder() -> OrderCancelDeniedSpecBuilder
Create an instance of OrderCancelDeniedSpec using the builder syntax
Trait Implementations§
Source§impl Clone for OrderCancelDeniedSpec
impl Clone for OrderCancelDeniedSpec
Auto Trait Implementations§
impl Freeze for OrderCancelDeniedSpec
impl RefUnwindSafe for OrderCancelDeniedSpec
impl Send for OrderCancelDeniedSpec
impl Sync for OrderCancelDeniedSpec
impl Unpin for OrderCancelDeniedSpec
impl UnsafeUnpin for OrderCancelDeniedSpec
impl UnwindSafe for OrderCancelDeniedSpec
Blanket Implementations§
impl<T> Allocation for T
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