Skip to main content

refix_fix44/generated/
mod.rs

1// @generated by refix codegen from FIX44.xml. Do not edit.
2#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{Dialect, RawMessage, Tag};
5
6mod components;
7mod enums;
8mod messages;
9
10#[allow(unused_imports)]
11pub use self::{components::*, enums::*, messages::*};
12
13/// The dialect of this dictionary.
14pub const DIALECT: Dialect<'static> = Dialect::new().with_extra_length_tags(&[
15    Tag(90), Tag(93), Tag(95), Tag(212), Tag(348), Tag(350), Tag(352), Tag(354), Tag(356), Tag(358),
16    Tag(360), Tag(362), Tag(364), Tag(445), Tag(618), Tag(621),
17]);
18
19/// A message read as the type its MsgType names.
20pub enum Message {
21    Heartbeat(Heartbeat),
22    TestRequest(TestRequest),
23    ResendRequest(ResendRequest),
24    Reject(Reject),
25    SequenceReset(SequenceReset),
26    Logout(Logout),
27    IOI(IOI),
28    Advertisement(Advertisement),
29    ExecutionReport(ExecutionReport),
30    OrderCancelReject(OrderCancelReject),
31    Logon(Logon),
32    News(News),
33    Email(Email),
34    NewOrderSingle(NewOrderSingle),
35    NewOrderList(NewOrderList),
36    OrderCancelRequest(OrderCancelRequest),
37    OrderCancelReplaceRequest(OrderCancelReplaceRequest),
38    OrderStatusRequest(OrderStatusRequest),
39    AllocationInstruction(AllocationInstruction),
40    ListCancelRequest(ListCancelRequest),
41    ListExecute(ListExecute),
42    ListStatusRequest(ListStatusRequest),
43    ListStatus(ListStatus),
44    AllocationInstructionAck(AllocationInstructionAck),
45    DontKnowTrade(DontKnowTrade),
46    QuoteRequest(QuoteRequest),
47    Quote(Quote),
48    SettlementInstructions(SettlementInstructions),
49    MarketDataRequest(MarketDataRequest),
50    MarketDataSnapshotFullRefresh(MarketDataSnapshotFullRefresh),
51    MarketDataIncrementalRefresh(MarketDataIncrementalRefresh),
52    MarketDataRequestReject(MarketDataRequestReject),
53    QuoteCancel(QuoteCancel),
54    QuoteStatusRequest(QuoteStatusRequest),
55    MassQuoteAcknowledgement(MassQuoteAcknowledgement),
56    SecurityDefinitionRequest(SecurityDefinitionRequest),
57    SecurityDefinition(SecurityDefinition),
58    SecurityStatusRequest(SecurityStatusRequest),
59    SecurityStatus(SecurityStatus),
60    TradingSessionStatusRequest(TradingSessionStatusRequest),
61    TradingSessionStatus(TradingSessionStatus),
62    MassQuote(MassQuote),
63    BusinessMessageReject(BusinessMessageReject),
64    BidRequest(BidRequest),
65    BidResponse(BidResponse),
66    ListStrikePrice(ListStrikePrice),
67    XMLnonFIX(XMLnonFIX),
68    RegistrationInstructions(RegistrationInstructions),
69    RegistrationInstructionsResponse(RegistrationInstructionsResponse),
70    OrderMassCancelRequest(OrderMassCancelRequest),
71    OrderMassCancelReport(OrderMassCancelReport),
72    NewOrderCross(NewOrderCross),
73    CrossOrderCancelReplaceRequest(CrossOrderCancelReplaceRequest),
74    CrossOrderCancelRequest(CrossOrderCancelRequest),
75    SecurityTypeRequest(SecurityTypeRequest),
76    SecurityTypes(SecurityTypes),
77    SecurityListRequest(SecurityListRequest),
78    SecurityList(SecurityList),
79    DerivativeSecurityListRequest(DerivativeSecurityListRequest),
80    DerivativeSecurityList(DerivativeSecurityList),
81    NewOrderMultileg(NewOrderMultileg),
82    MultilegOrderCancelReplace(MultilegOrderCancelReplace),
83    TradeCaptureReportRequest(TradeCaptureReportRequest),
84    TradeCaptureReport(TradeCaptureReport),
85    OrderMassStatusRequest(OrderMassStatusRequest),
86    QuoteRequestReject(QuoteRequestReject),
87    RFQRequest(RFQRequest),
88    QuoteStatusReport(QuoteStatusReport),
89    QuoteResponse(QuoteResponse),
90    Confirmation(Confirmation),
91    PositionMaintenanceRequest(PositionMaintenanceRequest),
92    PositionMaintenanceReport(PositionMaintenanceReport),
93    RequestForPositions(RequestForPositions),
94    RequestForPositionsAck(RequestForPositionsAck),
95    PositionReport(PositionReport),
96    TradeCaptureReportRequestAck(TradeCaptureReportRequestAck),
97    TradeCaptureReportAck(TradeCaptureReportAck),
98    AllocationReport(AllocationReport),
99    AllocationReportAck(AllocationReportAck),
100    ConfirmationAck(ConfirmationAck),
101    SettlementInstructionRequest(SettlementInstructionRequest),
102    AssignmentReport(AssignmentReport),
103    CollateralRequest(CollateralRequest),
104    CollateralAssignment(CollateralAssignment),
105    CollateralResponse(CollateralResponse),
106    CollateralReport(CollateralReport),
107    CollateralInquiry(CollateralInquiry),
108    NetworkCounterpartySystemStatusRequest(NetworkCounterpartySystemStatusRequest),
109    NetworkCounterpartySystemStatusResponse(NetworkCounterpartySystemStatusResponse),
110    UserRequest(UserRequest),
111    UserResponse(UserResponse),
112    CollateralInquiryAck(CollateralInquiryAck),
113    ConfirmationRequest(ConfirmationRequest),
114    Unrecognized(RawMessage),
115}
116
117impl Message {
118    pub fn from_raw(raw: RawMessage) -> Self {
119        match raw.get(Tag(35)) {
120            Some(Heartbeat::MSG_TYPE) => Self::Heartbeat(Heartbeat::from_raw(raw)),
121            Some(TestRequest::MSG_TYPE) => Self::TestRequest(TestRequest::from_raw(raw)),
122            Some(ResendRequest::MSG_TYPE) => Self::ResendRequest(ResendRequest::from_raw(raw)),
123            Some(Reject::MSG_TYPE) => Self::Reject(Reject::from_raw(raw)),
124            Some(SequenceReset::MSG_TYPE) => Self::SequenceReset(SequenceReset::from_raw(raw)),
125            Some(Logout::MSG_TYPE) => Self::Logout(Logout::from_raw(raw)),
126            Some(IOI::MSG_TYPE) => Self::IOI(IOI::from_raw(raw)),
127            Some(Advertisement::MSG_TYPE) => Self::Advertisement(Advertisement::from_raw(raw)),
128            Some(ExecutionReport::MSG_TYPE) => Self::ExecutionReport(ExecutionReport::from_raw(raw)),
129            Some(OrderCancelReject::MSG_TYPE) => Self::OrderCancelReject(OrderCancelReject::from_raw(raw)),
130            Some(Logon::MSG_TYPE) => Self::Logon(Logon::from_raw(raw)),
131            Some(News::MSG_TYPE) => Self::News(News::from_raw(raw)),
132            Some(Email::MSG_TYPE) => Self::Email(Email::from_raw(raw)),
133            Some(NewOrderSingle::MSG_TYPE) => Self::NewOrderSingle(NewOrderSingle::from_raw(raw)),
134            Some(NewOrderList::MSG_TYPE) => Self::NewOrderList(NewOrderList::from_raw(raw)),
135            Some(OrderCancelRequest::MSG_TYPE) => Self::OrderCancelRequest(OrderCancelRequest::from_raw(raw)),
136            Some(OrderCancelReplaceRequest::MSG_TYPE) => Self::OrderCancelReplaceRequest(OrderCancelReplaceRequest::from_raw(raw)),
137            Some(OrderStatusRequest::MSG_TYPE) => Self::OrderStatusRequest(OrderStatusRequest::from_raw(raw)),
138            Some(AllocationInstruction::MSG_TYPE) => Self::AllocationInstruction(AllocationInstruction::from_raw(raw)),
139            Some(ListCancelRequest::MSG_TYPE) => Self::ListCancelRequest(ListCancelRequest::from_raw(raw)),
140            Some(ListExecute::MSG_TYPE) => Self::ListExecute(ListExecute::from_raw(raw)),
141            Some(ListStatusRequest::MSG_TYPE) => Self::ListStatusRequest(ListStatusRequest::from_raw(raw)),
142            Some(ListStatus::MSG_TYPE) => Self::ListStatus(ListStatus::from_raw(raw)),
143            Some(AllocationInstructionAck::MSG_TYPE) => Self::AllocationInstructionAck(AllocationInstructionAck::from_raw(raw)),
144            Some(DontKnowTrade::MSG_TYPE) => Self::DontKnowTrade(DontKnowTrade::from_raw(raw)),
145            Some(QuoteRequest::MSG_TYPE) => Self::QuoteRequest(QuoteRequest::from_raw(raw)),
146            Some(Quote::MSG_TYPE) => Self::Quote(Quote::from_raw(raw)),
147            Some(SettlementInstructions::MSG_TYPE) => Self::SettlementInstructions(SettlementInstructions::from_raw(raw)),
148            Some(MarketDataRequest::MSG_TYPE) => Self::MarketDataRequest(MarketDataRequest::from_raw(raw)),
149            Some(MarketDataSnapshotFullRefresh::MSG_TYPE) => Self::MarketDataSnapshotFullRefresh(MarketDataSnapshotFullRefresh::from_raw(raw)),
150            Some(MarketDataIncrementalRefresh::MSG_TYPE) => Self::MarketDataIncrementalRefresh(MarketDataIncrementalRefresh::from_raw(raw)),
151            Some(MarketDataRequestReject::MSG_TYPE) => Self::MarketDataRequestReject(MarketDataRequestReject::from_raw(raw)),
152            Some(QuoteCancel::MSG_TYPE) => Self::QuoteCancel(QuoteCancel::from_raw(raw)),
153            Some(QuoteStatusRequest::MSG_TYPE) => Self::QuoteStatusRequest(QuoteStatusRequest::from_raw(raw)),
154            Some(MassQuoteAcknowledgement::MSG_TYPE) => Self::MassQuoteAcknowledgement(MassQuoteAcknowledgement::from_raw(raw)),
155            Some(SecurityDefinitionRequest::MSG_TYPE) => Self::SecurityDefinitionRequest(SecurityDefinitionRequest::from_raw(raw)),
156            Some(SecurityDefinition::MSG_TYPE) => Self::SecurityDefinition(SecurityDefinition::from_raw(raw)),
157            Some(SecurityStatusRequest::MSG_TYPE) => Self::SecurityStatusRequest(SecurityStatusRequest::from_raw(raw)),
158            Some(SecurityStatus::MSG_TYPE) => Self::SecurityStatus(SecurityStatus::from_raw(raw)),
159            Some(TradingSessionStatusRequest::MSG_TYPE) => Self::TradingSessionStatusRequest(TradingSessionStatusRequest::from_raw(raw)),
160            Some(TradingSessionStatus::MSG_TYPE) => Self::TradingSessionStatus(TradingSessionStatus::from_raw(raw)),
161            Some(MassQuote::MSG_TYPE) => Self::MassQuote(MassQuote::from_raw(raw)),
162            Some(BusinessMessageReject::MSG_TYPE) => Self::BusinessMessageReject(BusinessMessageReject::from_raw(raw)),
163            Some(BidRequest::MSG_TYPE) => Self::BidRequest(BidRequest::from_raw(raw)),
164            Some(BidResponse::MSG_TYPE) => Self::BidResponse(BidResponse::from_raw(raw)),
165            Some(ListStrikePrice::MSG_TYPE) => Self::ListStrikePrice(ListStrikePrice::from_raw(raw)),
166            Some(XMLnonFIX::MSG_TYPE) => Self::XMLnonFIX(XMLnonFIX::from_raw(raw)),
167            Some(RegistrationInstructions::MSG_TYPE) => Self::RegistrationInstructions(RegistrationInstructions::from_raw(raw)),
168            Some(RegistrationInstructionsResponse::MSG_TYPE) => Self::RegistrationInstructionsResponse(RegistrationInstructionsResponse::from_raw(raw)),
169            Some(OrderMassCancelRequest::MSG_TYPE) => Self::OrderMassCancelRequest(OrderMassCancelRequest::from_raw(raw)),
170            Some(OrderMassCancelReport::MSG_TYPE) => Self::OrderMassCancelReport(OrderMassCancelReport::from_raw(raw)),
171            Some(NewOrderCross::MSG_TYPE) => Self::NewOrderCross(NewOrderCross::from_raw(raw)),
172            Some(CrossOrderCancelReplaceRequest::MSG_TYPE) => Self::CrossOrderCancelReplaceRequest(CrossOrderCancelReplaceRequest::from_raw(raw)),
173            Some(CrossOrderCancelRequest::MSG_TYPE) => Self::CrossOrderCancelRequest(CrossOrderCancelRequest::from_raw(raw)),
174            Some(SecurityTypeRequest::MSG_TYPE) => Self::SecurityTypeRequest(SecurityTypeRequest::from_raw(raw)),
175            Some(SecurityTypes::MSG_TYPE) => Self::SecurityTypes(SecurityTypes::from_raw(raw)),
176            Some(SecurityListRequest::MSG_TYPE) => Self::SecurityListRequest(SecurityListRequest::from_raw(raw)),
177            Some(SecurityList::MSG_TYPE) => Self::SecurityList(SecurityList::from_raw(raw)),
178            Some(DerivativeSecurityListRequest::MSG_TYPE) => Self::DerivativeSecurityListRequest(DerivativeSecurityListRequest::from_raw(raw)),
179            Some(DerivativeSecurityList::MSG_TYPE) => Self::DerivativeSecurityList(DerivativeSecurityList::from_raw(raw)),
180            Some(NewOrderMultileg::MSG_TYPE) => Self::NewOrderMultileg(NewOrderMultileg::from_raw(raw)),
181            Some(MultilegOrderCancelReplace::MSG_TYPE) => Self::MultilegOrderCancelReplace(MultilegOrderCancelReplace::from_raw(raw)),
182            Some(TradeCaptureReportRequest::MSG_TYPE) => Self::TradeCaptureReportRequest(TradeCaptureReportRequest::from_raw(raw)),
183            Some(TradeCaptureReport::MSG_TYPE) => Self::TradeCaptureReport(TradeCaptureReport::from_raw(raw)),
184            Some(OrderMassStatusRequest::MSG_TYPE) => Self::OrderMassStatusRequest(OrderMassStatusRequest::from_raw(raw)),
185            Some(QuoteRequestReject::MSG_TYPE) => Self::QuoteRequestReject(QuoteRequestReject::from_raw(raw)),
186            Some(RFQRequest::MSG_TYPE) => Self::RFQRequest(RFQRequest::from_raw(raw)),
187            Some(QuoteStatusReport::MSG_TYPE) => Self::QuoteStatusReport(QuoteStatusReport::from_raw(raw)),
188            Some(QuoteResponse::MSG_TYPE) => Self::QuoteResponse(QuoteResponse::from_raw(raw)),
189            Some(Confirmation::MSG_TYPE) => Self::Confirmation(Confirmation::from_raw(raw)),
190            Some(PositionMaintenanceRequest::MSG_TYPE) => Self::PositionMaintenanceRequest(PositionMaintenanceRequest::from_raw(raw)),
191            Some(PositionMaintenanceReport::MSG_TYPE) => Self::PositionMaintenanceReport(PositionMaintenanceReport::from_raw(raw)),
192            Some(RequestForPositions::MSG_TYPE) => Self::RequestForPositions(RequestForPositions::from_raw(raw)),
193            Some(RequestForPositionsAck::MSG_TYPE) => Self::RequestForPositionsAck(RequestForPositionsAck::from_raw(raw)),
194            Some(PositionReport::MSG_TYPE) => Self::PositionReport(PositionReport::from_raw(raw)),
195            Some(TradeCaptureReportRequestAck::MSG_TYPE) => Self::TradeCaptureReportRequestAck(TradeCaptureReportRequestAck::from_raw(raw)),
196            Some(TradeCaptureReportAck::MSG_TYPE) => Self::TradeCaptureReportAck(TradeCaptureReportAck::from_raw(raw)),
197            Some(AllocationReport::MSG_TYPE) => Self::AllocationReport(AllocationReport::from_raw(raw)),
198            Some(AllocationReportAck::MSG_TYPE) => Self::AllocationReportAck(AllocationReportAck::from_raw(raw)),
199            Some(ConfirmationAck::MSG_TYPE) => Self::ConfirmationAck(ConfirmationAck::from_raw(raw)),
200            Some(SettlementInstructionRequest::MSG_TYPE) => Self::SettlementInstructionRequest(SettlementInstructionRequest::from_raw(raw)),
201            Some(AssignmentReport::MSG_TYPE) => Self::AssignmentReport(AssignmentReport::from_raw(raw)),
202            Some(CollateralRequest::MSG_TYPE) => Self::CollateralRequest(CollateralRequest::from_raw(raw)),
203            Some(CollateralAssignment::MSG_TYPE) => Self::CollateralAssignment(CollateralAssignment::from_raw(raw)),
204            Some(CollateralResponse::MSG_TYPE) => Self::CollateralResponse(CollateralResponse::from_raw(raw)),
205            Some(CollateralReport::MSG_TYPE) => Self::CollateralReport(CollateralReport::from_raw(raw)),
206            Some(CollateralInquiry::MSG_TYPE) => Self::CollateralInquiry(CollateralInquiry::from_raw(raw)),
207            Some(NetworkCounterpartySystemStatusRequest::MSG_TYPE) => Self::NetworkCounterpartySystemStatusRequest(NetworkCounterpartySystemStatusRequest::from_raw(raw)),
208            Some(NetworkCounterpartySystemStatusResponse::MSG_TYPE) => Self::NetworkCounterpartySystemStatusResponse(NetworkCounterpartySystemStatusResponse::from_raw(raw)),
209            Some(UserRequest::MSG_TYPE) => Self::UserRequest(UserRequest::from_raw(raw)),
210            Some(UserResponse::MSG_TYPE) => Self::UserResponse(UserResponse::from_raw(raw)),
211            Some(CollateralInquiryAck::MSG_TYPE) => Self::CollateralInquiryAck(CollateralInquiryAck::from_raw(raw)),
212            Some(ConfirmationRequest::MSG_TYPE) => Self::ConfirmationRequest(ConfirmationRequest::from_raw(raw)),
213            _ => Self::Unrecognized(raw),
214        }
215    }
216}
217
218impl std::fmt::Debug for Message {
219    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
220        match self {
221            Self::Heartbeat(message) => std::fmt::Debug::fmt(message, f),
222            Self::TestRequest(message) => std::fmt::Debug::fmt(message, f),
223            Self::ResendRequest(message) => std::fmt::Debug::fmt(message, f),
224            Self::Reject(message) => std::fmt::Debug::fmt(message, f),
225            Self::SequenceReset(message) => std::fmt::Debug::fmt(message, f),
226            Self::Logout(message) => std::fmt::Debug::fmt(message, f),
227            Self::IOI(message) => std::fmt::Debug::fmt(message, f),
228            Self::Advertisement(message) => std::fmt::Debug::fmt(message, f),
229            Self::ExecutionReport(message) => std::fmt::Debug::fmt(message, f),
230            Self::OrderCancelReject(message) => std::fmt::Debug::fmt(message, f),
231            Self::Logon(message) => std::fmt::Debug::fmt(message, f),
232            Self::News(message) => std::fmt::Debug::fmt(message, f),
233            Self::Email(message) => std::fmt::Debug::fmt(message, f),
234            Self::NewOrderSingle(message) => std::fmt::Debug::fmt(message, f),
235            Self::NewOrderList(message) => std::fmt::Debug::fmt(message, f),
236            Self::OrderCancelRequest(message) => std::fmt::Debug::fmt(message, f),
237            Self::OrderCancelReplaceRequest(message) => std::fmt::Debug::fmt(message, f),
238            Self::OrderStatusRequest(message) => std::fmt::Debug::fmt(message, f),
239            Self::AllocationInstruction(message) => std::fmt::Debug::fmt(message, f),
240            Self::ListCancelRequest(message) => std::fmt::Debug::fmt(message, f),
241            Self::ListExecute(message) => std::fmt::Debug::fmt(message, f),
242            Self::ListStatusRequest(message) => std::fmt::Debug::fmt(message, f),
243            Self::ListStatus(message) => std::fmt::Debug::fmt(message, f),
244            Self::AllocationInstructionAck(message) => std::fmt::Debug::fmt(message, f),
245            Self::DontKnowTrade(message) => std::fmt::Debug::fmt(message, f),
246            Self::QuoteRequest(message) => std::fmt::Debug::fmt(message, f),
247            Self::Quote(message) => std::fmt::Debug::fmt(message, f),
248            Self::SettlementInstructions(message) => std::fmt::Debug::fmt(message, f),
249            Self::MarketDataRequest(message) => std::fmt::Debug::fmt(message, f),
250            Self::MarketDataSnapshotFullRefresh(message) => std::fmt::Debug::fmt(message, f),
251            Self::MarketDataIncrementalRefresh(message) => std::fmt::Debug::fmt(message, f),
252            Self::MarketDataRequestReject(message) => std::fmt::Debug::fmt(message, f),
253            Self::QuoteCancel(message) => std::fmt::Debug::fmt(message, f),
254            Self::QuoteStatusRequest(message) => std::fmt::Debug::fmt(message, f),
255            Self::MassQuoteAcknowledgement(message) => std::fmt::Debug::fmt(message, f),
256            Self::SecurityDefinitionRequest(message) => std::fmt::Debug::fmt(message, f),
257            Self::SecurityDefinition(message) => std::fmt::Debug::fmt(message, f),
258            Self::SecurityStatusRequest(message) => std::fmt::Debug::fmt(message, f),
259            Self::SecurityStatus(message) => std::fmt::Debug::fmt(message, f),
260            Self::TradingSessionStatusRequest(message) => std::fmt::Debug::fmt(message, f),
261            Self::TradingSessionStatus(message) => std::fmt::Debug::fmt(message, f),
262            Self::MassQuote(message) => std::fmt::Debug::fmt(message, f),
263            Self::BusinessMessageReject(message) => std::fmt::Debug::fmt(message, f),
264            Self::BidRequest(message) => std::fmt::Debug::fmt(message, f),
265            Self::BidResponse(message) => std::fmt::Debug::fmt(message, f),
266            Self::ListStrikePrice(message) => std::fmt::Debug::fmt(message, f),
267            Self::XMLnonFIX(message) => std::fmt::Debug::fmt(message, f),
268            Self::RegistrationInstructions(message) => std::fmt::Debug::fmt(message, f),
269            Self::RegistrationInstructionsResponse(message) => std::fmt::Debug::fmt(message, f),
270            Self::OrderMassCancelRequest(message) => std::fmt::Debug::fmt(message, f),
271            Self::OrderMassCancelReport(message) => std::fmt::Debug::fmt(message, f),
272            Self::NewOrderCross(message) => std::fmt::Debug::fmt(message, f),
273            Self::CrossOrderCancelReplaceRequest(message) => std::fmt::Debug::fmt(message, f),
274            Self::CrossOrderCancelRequest(message) => std::fmt::Debug::fmt(message, f),
275            Self::SecurityTypeRequest(message) => std::fmt::Debug::fmt(message, f),
276            Self::SecurityTypes(message) => std::fmt::Debug::fmt(message, f),
277            Self::SecurityListRequest(message) => std::fmt::Debug::fmt(message, f),
278            Self::SecurityList(message) => std::fmt::Debug::fmt(message, f),
279            Self::DerivativeSecurityListRequest(message) => std::fmt::Debug::fmt(message, f),
280            Self::DerivativeSecurityList(message) => std::fmt::Debug::fmt(message, f),
281            Self::NewOrderMultileg(message) => std::fmt::Debug::fmt(message, f),
282            Self::MultilegOrderCancelReplace(message) => std::fmt::Debug::fmt(message, f),
283            Self::TradeCaptureReportRequest(message) => std::fmt::Debug::fmt(message, f),
284            Self::TradeCaptureReport(message) => std::fmt::Debug::fmt(message, f),
285            Self::OrderMassStatusRequest(message) => std::fmt::Debug::fmt(message, f),
286            Self::QuoteRequestReject(message) => std::fmt::Debug::fmt(message, f),
287            Self::RFQRequest(message) => std::fmt::Debug::fmt(message, f),
288            Self::QuoteStatusReport(message) => std::fmt::Debug::fmt(message, f),
289            Self::QuoteResponse(message) => std::fmt::Debug::fmt(message, f),
290            Self::Confirmation(message) => std::fmt::Debug::fmt(message, f),
291            Self::PositionMaintenanceRequest(message) => std::fmt::Debug::fmt(message, f),
292            Self::PositionMaintenanceReport(message) => std::fmt::Debug::fmt(message, f),
293            Self::RequestForPositions(message) => std::fmt::Debug::fmt(message, f),
294            Self::RequestForPositionsAck(message) => std::fmt::Debug::fmt(message, f),
295            Self::PositionReport(message) => std::fmt::Debug::fmt(message, f),
296            Self::TradeCaptureReportRequestAck(message) => std::fmt::Debug::fmt(message, f),
297            Self::TradeCaptureReportAck(message) => std::fmt::Debug::fmt(message, f),
298            Self::AllocationReport(message) => std::fmt::Debug::fmt(message, f),
299            Self::AllocationReportAck(message) => std::fmt::Debug::fmt(message, f),
300            Self::ConfirmationAck(message) => std::fmt::Debug::fmt(message, f),
301            Self::SettlementInstructionRequest(message) => std::fmt::Debug::fmt(message, f),
302            Self::AssignmentReport(message) => std::fmt::Debug::fmt(message, f),
303            Self::CollateralRequest(message) => std::fmt::Debug::fmt(message, f),
304            Self::CollateralAssignment(message) => std::fmt::Debug::fmt(message, f),
305            Self::CollateralResponse(message) => std::fmt::Debug::fmt(message, f),
306            Self::CollateralReport(message) => std::fmt::Debug::fmt(message, f),
307            Self::CollateralInquiry(message) => std::fmt::Debug::fmt(message, f),
308            Self::NetworkCounterpartySystemStatusRequest(message) => std::fmt::Debug::fmt(message, f),
309            Self::NetworkCounterpartySystemStatusResponse(message) => std::fmt::Debug::fmt(message, f),
310            Self::UserRequest(message) => std::fmt::Debug::fmt(message, f),
311            Self::UserResponse(message) => std::fmt::Debug::fmt(message, f),
312            Self::CollateralInquiryAck(message) => std::fmt::Debug::fmt(message, f),
313            Self::ConfirmationRequest(message) => std::fmt::Debug::fmt(message, f),
314            Self::Unrecognized(raw) => write!(f, "Unrecognized({raw})"),
315        }
316    }
317}
318
319impl std::fmt::Display for Message {
320    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
321        match self {
322            Self::Heartbeat(message) => std::fmt::Display::fmt(message, f),
323            Self::TestRequest(message) => std::fmt::Display::fmt(message, f),
324            Self::ResendRequest(message) => std::fmt::Display::fmt(message, f),
325            Self::Reject(message) => std::fmt::Display::fmt(message, f),
326            Self::SequenceReset(message) => std::fmt::Display::fmt(message, f),
327            Self::Logout(message) => std::fmt::Display::fmt(message, f),
328            Self::IOI(message) => std::fmt::Display::fmt(message, f),
329            Self::Advertisement(message) => std::fmt::Display::fmt(message, f),
330            Self::ExecutionReport(message) => std::fmt::Display::fmt(message, f),
331            Self::OrderCancelReject(message) => std::fmt::Display::fmt(message, f),
332            Self::Logon(message) => std::fmt::Display::fmt(message, f),
333            Self::News(message) => std::fmt::Display::fmt(message, f),
334            Self::Email(message) => std::fmt::Display::fmt(message, f),
335            Self::NewOrderSingle(message) => std::fmt::Display::fmt(message, f),
336            Self::NewOrderList(message) => std::fmt::Display::fmt(message, f),
337            Self::OrderCancelRequest(message) => std::fmt::Display::fmt(message, f),
338            Self::OrderCancelReplaceRequest(message) => std::fmt::Display::fmt(message, f),
339            Self::OrderStatusRequest(message) => std::fmt::Display::fmt(message, f),
340            Self::AllocationInstruction(message) => std::fmt::Display::fmt(message, f),
341            Self::ListCancelRequest(message) => std::fmt::Display::fmt(message, f),
342            Self::ListExecute(message) => std::fmt::Display::fmt(message, f),
343            Self::ListStatusRequest(message) => std::fmt::Display::fmt(message, f),
344            Self::ListStatus(message) => std::fmt::Display::fmt(message, f),
345            Self::AllocationInstructionAck(message) => std::fmt::Display::fmt(message, f),
346            Self::DontKnowTrade(message) => std::fmt::Display::fmt(message, f),
347            Self::QuoteRequest(message) => std::fmt::Display::fmt(message, f),
348            Self::Quote(message) => std::fmt::Display::fmt(message, f),
349            Self::SettlementInstructions(message) => std::fmt::Display::fmt(message, f),
350            Self::MarketDataRequest(message) => std::fmt::Display::fmt(message, f),
351            Self::MarketDataSnapshotFullRefresh(message) => std::fmt::Display::fmt(message, f),
352            Self::MarketDataIncrementalRefresh(message) => std::fmt::Display::fmt(message, f),
353            Self::MarketDataRequestReject(message) => std::fmt::Display::fmt(message, f),
354            Self::QuoteCancel(message) => std::fmt::Display::fmt(message, f),
355            Self::QuoteStatusRequest(message) => std::fmt::Display::fmt(message, f),
356            Self::MassQuoteAcknowledgement(message) => std::fmt::Display::fmt(message, f),
357            Self::SecurityDefinitionRequest(message) => std::fmt::Display::fmt(message, f),
358            Self::SecurityDefinition(message) => std::fmt::Display::fmt(message, f),
359            Self::SecurityStatusRequest(message) => std::fmt::Display::fmt(message, f),
360            Self::SecurityStatus(message) => std::fmt::Display::fmt(message, f),
361            Self::TradingSessionStatusRequest(message) => std::fmt::Display::fmt(message, f),
362            Self::TradingSessionStatus(message) => std::fmt::Display::fmt(message, f),
363            Self::MassQuote(message) => std::fmt::Display::fmt(message, f),
364            Self::BusinessMessageReject(message) => std::fmt::Display::fmt(message, f),
365            Self::BidRequest(message) => std::fmt::Display::fmt(message, f),
366            Self::BidResponse(message) => std::fmt::Display::fmt(message, f),
367            Self::ListStrikePrice(message) => std::fmt::Display::fmt(message, f),
368            Self::XMLnonFIX(message) => std::fmt::Display::fmt(message, f),
369            Self::RegistrationInstructions(message) => std::fmt::Display::fmt(message, f),
370            Self::RegistrationInstructionsResponse(message) => std::fmt::Display::fmt(message, f),
371            Self::OrderMassCancelRequest(message) => std::fmt::Display::fmt(message, f),
372            Self::OrderMassCancelReport(message) => std::fmt::Display::fmt(message, f),
373            Self::NewOrderCross(message) => std::fmt::Display::fmt(message, f),
374            Self::CrossOrderCancelReplaceRequest(message) => std::fmt::Display::fmt(message, f),
375            Self::CrossOrderCancelRequest(message) => std::fmt::Display::fmt(message, f),
376            Self::SecurityTypeRequest(message) => std::fmt::Display::fmt(message, f),
377            Self::SecurityTypes(message) => std::fmt::Display::fmt(message, f),
378            Self::SecurityListRequest(message) => std::fmt::Display::fmt(message, f),
379            Self::SecurityList(message) => std::fmt::Display::fmt(message, f),
380            Self::DerivativeSecurityListRequest(message) => std::fmt::Display::fmt(message, f),
381            Self::DerivativeSecurityList(message) => std::fmt::Display::fmt(message, f),
382            Self::NewOrderMultileg(message) => std::fmt::Display::fmt(message, f),
383            Self::MultilegOrderCancelReplace(message) => std::fmt::Display::fmt(message, f),
384            Self::TradeCaptureReportRequest(message) => std::fmt::Display::fmt(message, f),
385            Self::TradeCaptureReport(message) => std::fmt::Display::fmt(message, f),
386            Self::OrderMassStatusRequest(message) => std::fmt::Display::fmt(message, f),
387            Self::QuoteRequestReject(message) => std::fmt::Display::fmt(message, f),
388            Self::RFQRequest(message) => std::fmt::Display::fmt(message, f),
389            Self::QuoteStatusReport(message) => std::fmt::Display::fmt(message, f),
390            Self::QuoteResponse(message) => std::fmt::Display::fmt(message, f),
391            Self::Confirmation(message) => std::fmt::Display::fmt(message, f),
392            Self::PositionMaintenanceRequest(message) => std::fmt::Display::fmt(message, f),
393            Self::PositionMaintenanceReport(message) => std::fmt::Display::fmt(message, f),
394            Self::RequestForPositions(message) => std::fmt::Display::fmt(message, f),
395            Self::RequestForPositionsAck(message) => std::fmt::Display::fmt(message, f),
396            Self::PositionReport(message) => std::fmt::Display::fmt(message, f),
397            Self::TradeCaptureReportRequestAck(message) => std::fmt::Display::fmt(message, f),
398            Self::TradeCaptureReportAck(message) => std::fmt::Display::fmt(message, f),
399            Self::AllocationReport(message) => std::fmt::Display::fmt(message, f),
400            Self::AllocationReportAck(message) => std::fmt::Display::fmt(message, f),
401            Self::ConfirmationAck(message) => std::fmt::Display::fmt(message, f),
402            Self::SettlementInstructionRequest(message) => std::fmt::Display::fmt(message, f),
403            Self::AssignmentReport(message) => std::fmt::Display::fmt(message, f),
404            Self::CollateralRequest(message) => std::fmt::Display::fmt(message, f),
405            Self::CollateralAssignment(message) => std::fmt::Display::fmt(message, f),
406            Self::CollateralResponse(message) => std::fmt::Display::fmt(message, f),
407            Self::CollateralReport(message) => std::fmt::Display::fmt(message, f),
408            Self::CollateralInquiry(message) => std::fmt::Display::fmt(message, f),
409            Self::NetworkCounterpartySystemStatusRequest(message) => std::fmt::Display::fmt(message, f),
410            Self::NetworkCounterpartySystemStatusResponse(message) => std::fmt::Display::fmt(message, f),
411            Self::UserRequest(message) => std::fmt::Display::fmt(message, f),
412            Self::UserResponse(message) => std::fmt::Display::fmt(message, f),
413            Self::CollateralInquiryAck(message) => std::fmt::Display::fmt(message, f),
414            Self::ConfirmationRequest(message) => std::fmt::Display::fmt(message, f),
415            Self::Unrecognized(raw) => std::fmt::Display::fmt(raw, f),
416        }
417    }
418}
419
420/// Builds the tag lists that group reads share.
421///
422/// Each list is otherwise built by the first read that needs it. Call this
423/// once at startup to keep that work out of the first messages.
424pub fn warm_up() {
425    Header::envelope_tags().get();
426    Header::known_tags().get();
427    Trailer::known_tags().get();
428    Instrument::known_tags().get();
429    FinancingDetails::known_tags().get();
430    UnderlyingInstrument::known_tags().get();
431    OrderQtyData::known_tags().get();
432    InstrumentLeg::known_tags().get();
433    SpreadOrBenchmarkCurveData::known_tags().get();
434    YieldData::known_tags().get();
435    PegInstructions::known_tags().get();
436    DiscretionInstructions::known_tags().get();
437    CommissionData::known_tags().get();
438    InstrumentExtension::known_tags().get();
439    SettlInstructionsData::known_tags().get();
440    LegBenchmarkCurveData::known_tags().get();
441    HeaderHops::known_tags().get();
442    SecAltIDGrp::known_tags().get();
443    EvntGrp::known_tags().get();
444    UndInstrmtGrp::known_tags().get();
445    UndSecAltIDGrp::known_tags().get();
446    UnderlyingStipulations::known_tags().get();
447    Stipulations::known_tags().get();
448    InstrmtLegIOIGrp::known_tags().get();
449    LegSecAltIDGrp::known_tags().get();
450    LegStipulations::known_tags().get();
451    IOIQualGrp::known_tags().get();
452    RoutingGrp::known_tags().get();
453    InstrmtLegGrp::known_tags().get();
454    Parties::known_tags().get();
455    PtysSubGrp::known_tags().get();
456    ContraGrp::known_tags().get();
457    ContAmtGrp::known_tags().get();
458    InstrmtLegExecGrp::known_tags().get();
459    NestedParties::known_tags().get();
460    NstdPtysSubGrp::known_tags().get();
461    MiscFeesGrp::known_tags().get();
462    LogonMsgTypes::known_tags().get();
463    InstrmtGrp::known_tags().get();
464    LinesOfTextGrp::known_tags().get();
465    PreAllocGrp::known_tags().get();
466    TrdgSesGrp::known_tags().get();
467    ListOrdGrp::known_tags().get();
468    OrdAllocGrp::known_tags().get();
469    NestedParties2::known_tags().get();
470    NstdPtys2SubGrp::known_tags().get();
471    ExecAllocGrp::known_tags().get();
472    AttrbGrp::known_tags().get();
473    AllocGrp::known_tags().get();
474    ClrInstGrp::known_tags().get();
475    DlvyInstGrp::known_tags().get();
476    SettlParties::known_tags().get();
477    SettlPtysSubGrp::known_tags().get();
478    OrdListStatGrp::known_tags().get();
479    AllocAckGrp::known_tags().get();
480    QuotReqGrp::known_tags().get();
481    QuotReqLegsGrp::known_tags().get();
482    QuotQualGrp::known_tags().get();
483    LegQuotGrp::known_tags().get();
484    SettlInstGrp::known_tags().get();
485    MDReqGrp::known_tags().get();
486    InstrmtMDReqGrp::known_tags().get();
487    MDFullGrp::known_tags().get();
488    MDIncGrp::known_tags().get();
489    MDRjctGrp::known_tags().get();
490    QuotCxlEntriesGrp::known_tags().get();
491    QuotSetAckGrp::known_tags().get();
492    QuotEntryAckGrp::known_tags().get();
493    QuotSetGrp::known_tags().get();
494    QuotEntryGrp::known_tags().get();
495    BidDescReqGrp::known_tags().get();
496    BidCompReqGrp::known_tags().get();
497    BidCompRspGrp::known_tags().get();
498    InstrmtStrkPxGrp::known_tags().get();
499    UndInstrmtStrkPxGrp::known_tags().get();
500    RgstDtlsGrp::known_tags().get();
501    RgstDistInstGrp::known_tags().get();
502    AffectedOrdGrp::known_tags().get();
503    SideCrossOrdModGrp::known_tags().get();
504    SideCrossOrdCxlGrp::known_tags().get();
505    SecTypesGrp::known_tags().get();
506    SecListGrp::known_tags().get();
507    InstrmtLegSecListGrp::known_tags().get();
508    RelSymDerivSecGrp::known_tags().get();
509    PreAllocMlegGrp::known_tags().get();
510    NestedParties3::known_tags().get();
511    NstdPtys3SubGrp::known_tags().get();
512    LegOrdGrp::known_tags().get();
513    LegPreAllocGrp::known_tags().get();
514    TrdCapDtGrp::known_tags().get();
515    PositionAmountData::known_tags().get();
516    TrdInstrmtLegGrp::known_tags().get();
517    TrdRegTimestamps::known_tags().get();
518    TrdCapRptSideGrp::known_tags().get();
519    TrdAllocGrp::known_tags().get();
520    QuotReqRjctGrp::known_tags().get();
521    RFQReqGrp::known_tags().get();
522    LegQuotStatGrp::known_tags().get();
523    CpctyConfGrp::known_tags().get();
524    PositionQty::known_tags().get();
525    PosUndInstrmtGrp::known_tags().get();
526    ExecCollGrp::known_tags().get();
527    TrdCollGrp::known_tags().get();
528    UndInstrmtCollGrp::known_tags().get();
529    CollInqQualGrp::known_tags().get();
530    CompIDReqGrp::known_tags().get();
531    CompIDStatGrp::known_tags().get();
532    Heartbeat::known_tags().get();
533    TestRequest::known_tags().get();
534    ResendRequest::known_tags().get();
535    Reject::known_tags().get();
536    SequenceReset::known_tags().get();
537    Logout::known_tags().get();
538    IOI::known_tags().get();
539    Advertisement::known_tags().get();
540    ExecutionReport::known_tags().get();
541    OrderCancelReject::known_tags().get();
542    Logon::known_tags().get();
543    News::known_tags().get();
544    Email::known_tags().get();
545    NewOrderSingle::known_tags().get();
546    NewOrderList::known_tags().get();
547    OrderCancelRequest::known_tags().get();
548    OrderCancelReplaceRequest::known_tags().get();
549    OrderStatusRequest::known_tags().get();
550    AllocationInstruction::known_tags().get();
551    ListCancelRequest::known_tags().get();
552    ListExecute::known_tags().get();
553    ListStatusRequest::known_tags().get();
554    ListStatus::known_tags().get();
555    AllocationInstructionAck::known_tags().get();
556    DontKnowTrade::known_tags().get();
557    QuoteRequest::known_tags().get();
558    Quote::known_tags().get();
559    SettlementInstructions::known_tags().get();
560    MarketDataRequest::known_tags().get();
561    MarketDataSnapshotFullRefresh::known_tags().get();
562    MarketDataIncrementalRefresh::known_tags().get();
563    MarketDataRequestReject::known_tags().get();
564    QuoteCancel::known_tags().get();
565    QuoteStatusRequest::known_tags().get();
566    MassQuoteAcknowledgement::known_tags().get();
567    SecurityDefinitionRequest::known_tags().get();
568    SecurityDefinition::known_tags().get();
569    SecurityStatusRequest::known_tags().get();
570    SecurityStatus::known_tags().get();
571    TradingSessionStatusRequest::known_tags().get();
572    TradingSessionStatus::known_tags().get();
573    MassQuote::known_tags().get();
574    BusinessMessageReject::known_tags().get();
575    BidRequest::known_tags().get();
576    BidResponse::known_tags().get();
577    ListStrikePrice::known_tags().get();
578    XMLnonFIX::known_tags().get();
579    RegistrationInstructions::known_tags().get();
580    RegistrationInstructionsResponse::known_tags().get();
581    OrderMassCancelRequest::known_tags().get();
582    OrderMassCancelReport::known_tags().get();
583    NewOrderCross::known_tags().get();
584    CrossOrderCancelReplaceRequest::known_tags().get();
585    CrossOrderCancelRequest::known_tags().get();
586    SecurityTypeRequest::known_tags().get();
587    SecurityTypes::known_tags().get();
588    SecurityListRequest::known_tags().get();
589    SecurityList::known_tags().get();
590    DerivativeSecurityListRequest::known_tags().get();
591    DerivativeSecurityList::known_tags().get();
592    NewOrderMultileg::known_tags().get();
593    MultilegOrderCancelReplace::known_tags().get();
594    TradeCaptureReportRequest::known_tags().get();
595    TradeCaptureReport::known_tags().get();
596    OrderMassStatusRequest::known_tags().get();
597    QuoteRequestReject::known_tags().get();
598    RFQRequest::known_tags().get();
599    QuoteStatusReport::known_tags().get();
600    QuoteResponse::known_tags().get();
601    Confirmation::known_tags().get();
602    PositionMaintenanceRequest::known_tags().get();
603    PositionMaintenanceReport::known_tags().get();
604    RequestForPositions::known_tags().get();
605    RequestForPositionsAck::known_tags().get();
606    PositionReport::known_tags().get();
607    TradeCaptureReportRequestAck::known_tags().get();
608    TradeCaptureReportAck::known_tags().get();
609    AllocationReport::known_tags().get();
610    AllocationReportAck::known_tags().get();
611    ConfirmationAck::known_tags().get();
612    SettlementInstructionRequest::known_tags().get();
613    AssignmentReport::known_tags().get();
614    CollateralRequest::known_tags().get();
615    CollateralAssignment::known_tags().get();
616    CollateralResponse::known_tags().get();
617    CollateralReport::known_tags().get();
618    CollateralInquiry::known_tags().get();
619    NetworkCounterpartySystemStatusRequest::known_tags().get();
620    NetworkCounterpartySystemStatusResponse::known_tags().get();
621    UserRequest::known_tags().get();
622    UserResponse::known_tags().get();
623    CollateralInquiryAck::known_tags().get();
624    ConfirmationRequest::known_tags().get();
625}