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_rejected;
26pub mod canceled;
27pub mod denied;
28pub mod emulated;
29pub mod expired;
30pub mod fill_voided;
31pub mod filled;
32pub mod initialized;
33pub mod modify_rejected;
34pub mod pending_cancel;
35pub mod pending_update;
36pub mod rejected;
37pub mod released;
38pub mod submitted;
39pub mod triggered;
40pub mod updated;
41
42pub use accepted::OrderAcceptedSpec;
43pub use cancel_rejected::OrderCancelRejectedSpec;
44pub use canceled::OrderCanceledSpec;
45pub use denied::OrderDeniedSpec;
46pub use emulated::OrderEmulatedSpec;
47pub use expired::OrderExpiredSpec;
48pub use fill_voided::OrderFillVoidedSpec;
49pub use filled::OrderFilledSpec;
50pub use initialized::OrderInitializedSpec;
51pub use modify_rejected::OrderModifyRejectedSpec;
52pub use pending_cancel::OrderPendingCancelSpec;
53pub use pending_update::OrderPendingUpdateSpec;
54pub use rejected::OrderRejectedSpec;
55pub use released::OrderReleasedSpec;
56pub use submitted::OrderSubmittedSpec;
57pub use triggered::OrderTriggeredSpec;
58pub use updated::OrderUpdatedSpec;