pub struct OrderModifyDeniedSpec {
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 OrderModifyDenied.
All fields carry sensible defaults so callers only set what differs.
build() constructs the event through OrderModifyDenied::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 OrderModifyDeniedSpec
impl OrderModifyDeniedSpec
Sourcepub fn builder() -> OrderModifyDeniedSpecBuilder
pub fn builder() -> OrderModifyDeniedSpecBuilder
Create an instance of OrderModifyDeniedSpec using the builder syntax
Trait Implementations§
Source§impl Clone for OrderModifyDeniedSpec
impl Clone for OrderModifyDeniedSpec
Auto Trait Implementations§
impl Freeze for OrderModifyDeniedSpec
impl RefUnwindSafe for OrderModifyDeniedSpec
impl Send for OrderModifyDeniedSpec
impl Sync for OrderModifyDeniedSpec
impl Unpin for OrderModifyDeniedSpec
impl UnsafeUnpin for OrderModifyDeniedSpec
impl UnwindSafe for OrderModifyDeniedSpec
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