Skip to main content

Module spec

Module spec 

Source
Expand description

Test-only fluent builders for order event types.

Each spec mirrors the fields of a production event with sensible defaults, derives [bon::Builder], and exposes a build() method that funnels through the production constructor so any invariant checks still run on the constructed value.

Specs are gated behind the test-support feature and must not be referenced from production code.

Re-exports§

pub use accepted::OrderAcceptedSpec;
pub use cancel_rejected::OrderCancelRejectedSpec;
pub use canceled::OrderCanceledSpec;
pub use denied::OrderDeniedSpec;
pub use emulated::OrderEmulatedSpec;
pub use expired::OrderExpiredSpec;
pub use fill_voided::OrderFillVoidedSpec;
pub use filled::OrderFilledSpec;
pub use initialized::OrderInitializedSpec;
pub use modify_rejected::OrderModifyRejectedSpec;
pub use pending_cancel::OrderPendingCancelSpec;
pub use pending_update::OrderPendingUpdateSpec;
pub use rejected::OrderRejectedSpec;
pub use released::OrderReleasedSpec;
pub use submitted::OrderSubmittedSpec;
pub use triggered::OrderTriggeredSpec;
pub use updated::OrderUpdatedSpec;

Modules§

accepted
cancel_rejected
canceled
denied
emulated
expired
fill_voided
filled
initialized
modify_rejected
pending_cancel
pending_update
rejected
released
submitted
triggered
updated