Skip to main content

nautilus_model/events/order/spec/
mod.rs

1// -------------------------------------------------------------------------------------------------
2//  Copyright (C) 2015-2026 Nautech Systems Pty Ltd. All rights reserved.
3//  https://nautechsystems.io
4//
5//  Licensed under the GNU Lesser General Public License Version 3.0 (the "License");
6//  You may not use this file except in compliance with the License.
7//  You may obtain a copy of the License at https://www.gnu.org/licenses/lgpl-3.0.en.html
8//
9//  Unless required by applicable law or agreed to in writing, software
10//  distributed under the License is distributed on an "AS IS" BASIS,
11//  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//  See the License for the specific language governing permissions and
13//  limitations under the License.
14// -------------------------------------------------------------------------------------------------
15
16//! Test-only fluent builders for order event types.
17//!
18//! Each spec mirrors the fields of a production event with sensible defaults, derives
19//! [`bon::Builder`], and exposes a `build()` method that funnels through the production
20//! constructor so any invariant checks still run on the constructed value.
21//!
22//! Specs are gated behind the `test-support` feature and must not be referenced from production code.
23
24pub mod accepted;
25pub mod cancel_denied;
26pub mod cancel_rejected;
27pub mod canceled;
28pub mod denied;
29pub mod emulated;
30pub mod expired;
31pub mod fill_voided;
32pub mod filled;
33pub mod initialized;
34pub mod modify_denied;
35pub mod modify_rejected;
36pub mod pending_cancel;
37pub mod pending_update;
38pub mod rejected;
39pub mod released;
40pub mod submitted;
41pub mod triggered;
42pub mod updated;
43
44pub use accepted::OrderAcceptedSpec;
45pub use cancel_denied::OrderCancelDeniedSpec;
46pub use cancel_rejected::OrderCancelRejectedSpec;
47pub use canceled::OrderCanceledSpec;
48pub use denied::OrderDeniedSpec;
49pub use emulated::OrderEmulatedSpec;
50pub use expired::OrderExpiredSpec;
51pub use fill_voided::OrderFillVoidedSpec;
52pub use filled::OrderFilledSpec;
53pub use initialized::OrderInitializedSpec;
54pub use modify_denied::OrderModifyDeniedSpec;
55pub use modify_rejected::OrderModifyRejectedSpec;
56pub use pending_cancel::OrderPendingCancelSpec;
57pub use pending_update::OrderPendingUpdateSpec;
58pub use rejected::OrderRejectedSpec;
59pub use released::OrderReleasedSpec;
60pub use submitted::OrderSubmittedSpec;
61pub use triggered::OrderTriggeredSpec;
62pub use updated::OrderUpdatedSpec;