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