Skip to main content

refix_fix42/generated/messages/
new_order_list.rs

1// @generated by refix codegen from FIX42.xml. Do not edit.
2#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{
5    Date, Decimal, GroupTable, Instances, InvalidValue, LazyKnownTags, MonthYear, MultipleValues,
6    RawMessage, Tag, UtcTimestamp,
7};
8
9use super::super::components::{Header, Trailer};
10use super::super::enums::{
11    CommType, CoveredOrUncovered, CustomerOrFirm, DiscretionInst, ExecInst, GTBookingInst,
12    HandlInst, IDSource, ListExecInstType, OpenClose, OrdType, ProcessCode, ProgRptReqs, PutOrCall,
13    Rule80A, SecurityType, SettlInstMode, SettlmntTyp, Side, TimeInForce,
14};
15
16/// The `NewOrderList` (35=E) message.
17pub struct NewOrderList(RawMessage);
18
19impl NewOrderList {
20    pub const MSG_TYPE: &[u8] = b"E";
21
22    pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
23        static TAGS: LazyKnownTags = LazyKnownTags::new(
24            &[
25                Tag(66), Tag(390), Tag(391), Tag(414), Tag(394), Tag(415), Tag(433), Tag(69),
26                Tag(352), Tag(353), Tag(68), Tag(73),
27            ],
28            &[Header::known_tags(), Trailer::known_tags(), NewOrderListOrders::known_tags()],
29        );
30        &TAGS
31    }
32
33    pub fn from_raw(raw: RawMessage) -> Self {
34        Self(raw)
35    }
36
37    pub fn raw(&self) -> &RawMessage {
38        &self.0
39    }
40
41    pub fn header(&self) -> Header<'_> {
42        Header(self.0.scope())
43    }
44
45    pub fn trailer(&self) -> Trailer<'_> {
46        Trailer(self.0.scope())
47    }
48
49    /// The `ListID` (66) field.
50    #[doc(alias = "ListID")]
51    pub fn list_id(&self) -> Result<Option<&str>, InvalidValue> {
52        self.0.get_str(Tag(66))
53    }
54
55    /// The `BidID` (390) field.
56    #[doc(alias = "BidID")]
57    pub fn bid_id(&self) -> Result<Option<&str>, InvalidValue> {
58        self.0.get_str(Tag(390))
59    }
60
61    /// The `ClientBidID` (391) field.
62    #[doc(alias = "ClientBidID")]
63    pub fn client_bid_id(&self) -> Result<Option<&str>, InvalidValue> {
64        self.0.get_str(Tag(391))
65    }
66
67    /// The `ProgRptReqs` (414) field.
68    #[doc(alias = "ProgRptReqs")]
69    pub fn prog_rpt_reqs(&self) -> Result<Option<ProgRptReqs>, InvalidValue> {
70        Ok(self.0.get_int(Tag(414))?.map(ProgRptReqs::from_value))
71    }
72
73    /// The `BidType` (394) field.
74    #[doc(alias = "BidType")]
75    pub fn bid_type(&self) -> Result<Option<i64>, InvalidValue> {
76        self.0.get_int(Tag(394))
77    }
78
79    /// The `ProgPeriodInterval` (415) field.
80    #[doc(alias = "ProgPeriodInterval")]
81    pub fn prog_period_interval(&self) -> Result<Option<i64>, InvalidValue> {
82        self.0.get_int(Tag(415))
83    }
84
85    /// The `ListExecInstType` (433) field.
86    #[doc(alias = "ListExecInstType")]
87    pub fn list_exec_inst_type(&self) -> Result<Option<ListExecInstType<'_>>, InvalidValue> {
88        Ok(self.0.get_str(Tag(433))?.map(ListExecInstType::from_value))
89    }
90
91    /// The `ListExecInst` (69) field.
92    #[doc(alias = "ListExecInst")]
93    pub fn list_exec_inst(&self) -> Result<Option<&str>, InvalidValue> {
94        self.0.get_str(Tag(69))
95    }
96
97    /// The `EncodedListExecInstLen` (352) field.
98    #[doc(alias = "EncodedListExecInstLen")]
99    pub fn encoded_list_exec_inst_len(&self) -> Result<Option<i64>, InvalidValue> {
100        self.0.get_int(Tag(352))
101    }
102
103    /// The `EncodedListExecInst` (353) field.
104    #[doc(alias = "EncodedListExecInst")]
105    pub fn encoded_list_exec_inst(&self) -> Option<&[u8]> {
106        self.0.get(Tag(353))
107    }
108
109    /// The `TotNoOrders` (68) field.
110    #[doc(alias = "TotNoOrders")]
111    pub fn tot_no_orders(&self) -> Result<Option<i64>, InvalidValue> {
112        self.0.get_int(Tag(68))
113    }
114
115    /// The instances of the `NoOrders` (73) group.
116    #[doc(alias = "NoOrders")]
117    pub fn orders(&self) -> Result<Instances<'_, NewOrderListOrders<'_>>, InvalidValue> {
118        self.0.get_group(&NewOrderListOrders::TABLE, &Self::known_tags().get()).map(Instances::from)
119    }
120}
121
122impl std::fmt::Debug for NewOrderList {
123    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
124        write!(f, "NewOrderList({})", self.0)
125    }
126}
127
128impl std::fmt::Display for NewOrderList {
129    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
130        std::fmt::Display::fmt(&self.0, f)
131    }
132}
133
134/// An instance of the `NoOrders` (73) group.
135#[derive(Clone, Copy)]
136pub struct NewOrderListOrders<'a>(refix_message::Scope<'a>);
137
138impl<'a> From<refix_message::Scope<'a>> for NewOrderListOrders<'a> {
139    fn from(scope: refix_message::Scope<'a>) -> Self {
140        Self(scope)
141    }
142}
143
144impl<'a> NewOrderListOrders<'a> {
145    pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
146        Tag(73),
147        Tag(11),
148        &[
149            Tag(1), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21), Tag(22), Tag(23), Tag(38),
150            Tag(40), Tag(44), Tag(47), Tag(48), Tag(54), Tag(55), Tag(58), Tag(59), Tag(60),
151            Tag(63), Tag(64), Tag(65), Tag(67), Tag(76), Tag(77), Tag(78), Tag(81), Tag(99),
152            Tag(100), Tag(106), Tag(107), Tag(109), Tag(110), Tag(111), Tag(114), Tag(117),
153            Tag(120), Tag(121), Tag(126), Tag(140), Tag(152), Tag(160), Tag(167), Tag(168),
154            Tag(192), Tag(193), Tag(200), Tag(201), Tag(202), Tag(203), Tag(204), Tag(205),
155            Tag(206), Tag(207), Tag(210), Tag(211), Tag(223), Tag(231), Tag(348), Tag(349),
156            Tag(350), Tag(351), Tag(354), Tag(355), Tag(376), Tag(377), Tag(386), Tag(388),
157            Tag(389), Tag(401), Tag(427), Tag(432), Tag(439), Tag(440),
158        ],
159        &[NewOrderListOrdersAllocs::TABLE, NewOrderListOrdersTradingSessions::TABLE],
160    );
161
162    pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
163        static TAGS: LazyKnownTags = LazyKnownTags::new(
164            &[
165                Tag(11), Tag(67), Tag(160), Tag(109), Tag(76), Tag(1), Tag(78), Tag(63), Tag(64),
166                Tag(21), Tag(18), Tag(110), Tag(111), Tag(100), Tag(386), Tag(81), Tag(55), Tag(65),
167                Tag(48), Tag(22), Tag(167), Tag(200), Tag(205), Tag(201), Tag(202), Tag(206),
168                Tag(231), Tag(223), Tag(207), Tag(106), Tag(348), Tag(349), Tag(107), Tag(350),
169                Tag(351), Tag(140), Tag(54), Tag(401), Tag(114), Tag(60), Tag(38), Tag(152),
170                Tag(40), Tag(44), Tag(99), Tag(15), Tag(376), Tag(377), Tag(23), Tag(117), Tag(59),
171                Tag(168), Tag(432), Tag(126), Tag(427), Tag(12), Tag(13), Tag(47), Tag(121),
172                Tag(120), Tag(58), Tag(354), Tag(355), Tag(193), Tag(192), Tag(77), Tag(203),
173                Tag(204), Tag(210), Tag(211), Tag(388), Tag(389), Tag(439), Tag(440),
174            ],
175            &[
176                NewOrderListOrdersAllocs::known_tags(),
177                NewOrderListOrdersTradingSessions::known_tags(),
178            ],
179        );
180        &TAGS
181    }
182
183    pub fn raw(&self) -> refix_message::Scope<'a> {
184        self.0
185    }
186
187    /// The `ClOrdID` (11) field.
188    #[doc(alias = "ClOrdID")]
189    pub fn cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
190        self.0.get_str(Tag(11))
191    }
192
193    /// The `ListSeqNo` (67) field.
194    #[doc(alias = "ListSeqNo")]
195    pub fn list_seq_no(&self) -> Result<Option<i64>, InvalidValue> {
196        self.0.get_int(Tag(67))
197    }
198
199    /// The `SettlInstMode` (160) field.
200    #[doc(alias = "SettlInstMode")]
201    pub fn settl_inst_mode(&self) -> Result<Option<SettlInstMode<'a>>, InvalidValue> {
202        Ok(self.0.get_str(Tag(160))?.map(SettlInstMode::from_value))
203    }
204
205    /// The `ClientID` (109) field.
206    #[doc(alias = "ClientID")]
207    pub fn client_id(&self) -> Result<Option<&'a str>, InvalidValue> {
208        self.0.get_str(Tag(109))
209    }
210
211    /// The `ExecBroker` (76) field.
212    #[doc(alias = "ExecBroker")]
213    pub fn exec_broker(&self) -> Result<Option<&'a str>, InvalidValue> {
214        self.0.get_str(Tag(76))
215    }
216
217    /// The `Account` (1) field.
218    #[doc(alias = "Account")]
219    pub fn account(&self) -> Result<Option<&'a str>, InvalidValue> {
220        self.0.get_str(Tag(1))
221    }
222
223    /// The instances of the `NoAllocs` (78) group.
224    #[doc(alias = "NoAllocs")]
225    pub fn allocs(&self) -> Result<Instances<'a, NewOrderListOrdersAllocs<'a>>, InvalidValue> {
226        self.0.get_group(&NewOrderListOrdersAllocs::TABLE, &Self::known_tags().get()).map(Instances::from)
227    }
228
229    /// The `SettlmntTyp` (63) field.
230    #[doc(alias = "SettlmntTyp")]
231    pub fn settlmnt_typ(&self) -> Result<Option<SettlmntTyp<'a>>, InvalidValue> {
232        Ok(self.0.get_str(Tag(63))?.map(SettlmntTyp::from_value))
233    }
234
235    /// The `FutSettDate` (64) field.
236    #[doc(alias = "FutSettDate")]
237    pub fn fut_sett_date(&self) -> Result<Option<Date>, InvalidValue> {
238        self.0.get_date(Tag(64))
239    }
240
241    /// The `HandlInst` (21) field.
242    #[doc(alias = "HandlInst")]
243    pub fn handl_inst(&self) -> Result<Option<HandlInst<'a>>, InvalidValue> {
244        Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
245    }
246
247    /// The `ExecInst` (18) field.
248    #[doc(alias = "ExecInst")]
249    pub fn exec_inst(&self) -> Result<Option<MultipleValues<'a, ExecInst<'a>>>, InvalidValue> {
250        self.0.get_multiple_values(Tag(18))
251    }
252
253    /// The `MinQty` (110) field.
254    #[doc(alias = "MinQty")]
255    pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
256        self.0.get_decimal(Tag(110))
257    }
258
259    /// The `MaxFloor` (111) field.
260    #[doc(alias = "MaxFloor")]
261    pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
262        self.0.get_decimal(Tag(111))
263    }
264
265    /// The `ExDestination` (100) field.
266    #[doc(alias = "ExDestination")]
267    pub fn ex_destination(&self) -> Result<Option<&'a str>, InvalidValue> {
268        self.0.get_str(Tag(100))
269    }
270
271    /// The instances of the `NoTradingSessions` (386) group.
272    #[doc(alias = "NoTradingSessions")]
273    pub fn trading_sessions(&self) -> Result<Instances<'a, NewOrderListOrdersTradingSessions<'a>>, InvalidValue> {
274        self.0.get_group(&NewOrderListOrdersTradingSessions::TABLE, &Self::known_tags().get()).map(Instances::from)
275    }
276
277    /// The `ProcessCode` (81) field.
278    #[doc(alias = "ProcessCode")]
279    pub fn process_code(&self) -> Result<Option<ProcessCode<'a>>, InvalidValue> {
280        Ok(self.0.get_str(Tag(81))?.map(ProcessCode::from_value))
281    }
282
283    /// The `Symbol` (55) field.
284    #[doc(alias = "Symbol")]
285    pub fn symbol(&self) -> Result<Option<&'a str>, InvalidValue> {
286        self.0.get_str(Tag(55))
287    }
288
289    /// The `SymbolSfx` (65) field.
290    #[doc(alias = "SymbolSfx")]
291    pub fn symbol_sfx(&self) -> Result<Option<&'a str>, InvalidValue> {
292        self.0.get_str(Tag(65))
293    }
294
295    /// The `SecurityID` (48) field.
296    #[doc(alias = "SecurityID")]
297    pub fn security_id(&self) -> Result<Option<&'a str>, InvalidValue> {
298        self.0.get_str(Tag(48))
299    }
300
301    /// The `IDSource` (22) field.
302    #[doc(alias = "IDSource")]
303    pub fn id_source(&self) -> Result<Option<IDSource<'a>>, InvalidValue> {
304        Ok(self.0.get_str(Tag(22))?.map(IDSource::from_value))
305    }
306
307    /// The `SecurityType` (167) field.
308    #[doc(alias = "SecurityType")]
309    pub fn security_type(&self) -> Result<Option<SecurityType<'a>>, InvalidValue> {
310        Ok(self.0.get_str(Tag(167))?.map(SecurityType::from_value))
311    }
312
313    /// The `MaturityMonthYear` (200) field.
314    #[doc(alias = "MaturityMonthYear")]
315    pub fn maturity_month_year(&self) -> Result<Option<MonthYear>, InvalidValue> {
316        self.0.get_month_year(Tag(200))
317    }
318
319    /// The `MaturityDay` (205) field.
320    #[doc(alias = "MaturityDay")]
321    pub fn maturity_day(&self) -> Result<Option<i64>, InvalidValue> {
322        self.0.get_int(Tag(205))
323    }
324
325    /// The `PutOrCall` (201) field.
326    #[doc(alias = "PutOrCall")]
327    pub fn put_or_call(&self) -> Result<Option<PutOrCall>, InvalidValue> {
328        Ok(self.0.get_int(Tag(201))?.map(PutOrCall::from_value))
329    }
330
331    /// The `StrikePrice` (202) field.
332    #[doc(alias = "StrikePrice")]
333    pub fn strike_price(&self) -> Result<Option<Decimal>, InvalidValue> {
334        self.0.get_decimal(Tag(202))
335    }
336
337    /// The `OptAttribute` (206) field.
338    #[doc(alias = "OptAttribute")]
339    pub fn opt_attribute(&self) -> Result<Option<&'a str>, InvalidValue> {
340        self.0.get_str(Tag(206))
341    }
342
343    /// The `ContractMultiplier` (231) field.
344    #[doc(alias = "ContractMultiplier")]
345    pub fn contract_multiplier(&self) -> Result<Option<Decimal>, InvalidValue> {
346        self.0.get_decimal(Tag(231))
347    }
348
349    /// The `CouponRate` (223) field.
350    #[doc(alias = "CouponRate")]
351    pub fn coupon_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
352        self.0.get_decimal(Tag(223))
353    }
354
355    /// The `SecurityExchange` (207) field.
356    #[doc(alias = "SecurityExchange")]
357    pub fn security_exchange(&self) -> Result<Option<&'a str>, InvalidValue> {
358        self.0.get_str(Tag(207))
359    }
360
361    /// The `Issuer` (106) field.
362    #[doc(alias = "Issuer")]
363    pub fn issuer(&self) -> Result<Option<&'a str>, InvalidValue> {
364        self.0.get_str(Tag(106))
365    }
366
367    /// The `EncodedIssuerLen` (348) field.
368    #[doc(alias = "EncodedIssuerLen")]
369    pub fn encoded_issuer_len(&self) -> Result<Option<i64>, InvalidValue> {
370        self.0.get_int(Tag(348))
371    }
372
373    /// The `EncodedIssuer` (349) field.
374    #[doc(alias = "EncodedIssuer")]
375    pub fn encoded_issuer(&self) -> Option<&'a [u8]> {
376        self.0.get(Tag(349))
377    }
378
379    /// The `SecurityDesc` (107) field.
380    #[doc(alias = "SecurityDesc")]
381    pub fn security_desc(&self) -> Result<Option<&'a str>, InvalidValue> {
382        self.0.get_str(Tag(107))
383    }
384
385    /// The `EncodedSecurityDescLen` (350) field.
386    #[doc(alias = "EncodedSecurityDescLen")]
387    pub fn encoded_security_desc_len(&self) -> Result<Option<i64>, InvalidValue> {
388        self.0.get_int(Tag(350))
389    }
390
391    /// The `EncodedSecurityDesc` (351) field.
392    #[doc(alias = "EncodedSecurityDesc")]
393    pub fn encoded_security_desc(&self) -> Option<&'a [u8]> {
394        self.0.get(Tag(351))
395    }
396
397    /// The `PrevClosePx` (140) field.
398    #[doc(alias = "PrevClosePx")]
399    pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue> {
400        self.0.get_decimal(Tag(140))
401    }
402
403    /// The `Side` (54) field.
404    #[doc(alias = "Side")]
405    pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
406        Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
407    }
408
409    /// The `SideValueInd` (401) field.
410    #[doc(alias = "SideValueInd")]
411    pub fn side_value_ind(&self) -> Result<Option<i64>, InvalidValue> {
412        self.0.get_int(Tag(401))
413    }
414
415    /// The `LocateReqd` (114) field.
416    #[doc(alias = "LocateReqd")]
417    pub fn locate_reqd(&self) -> Result<Option<bool>, InvalidValue> {
418        self.0.get_bool(Tag(114))
419    }
420
421    /// The `TransactTime` (60) field.
422    #[doc(alias = "TransactTime")]
423    pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
424        self.0.get_utc_timestamp(Tag(60))
425    }
426
427    /// The `OrderQty` (38) field.
428    #[doc(alias = "OrderQty")]
429    pub fn order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
430        self.0.get_decimal(Tag(38))
431    }
432
433    /// The `CashOrderQty` (152) field.
434    #[doc(alias = "CashOrderQty")]
435    pub fn cash_order_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
436        self.0.get_decimal(Tag(152))
437    }
438
439    /// The `OrdType` (40) field.
440    #[doc(alias = "OrdType")]
441    pub fn ord_type(&self) -> Result<Option<OrdType<'a>>, InvalidValue> {
442        Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
443    }
444
445    /// The `Price` (44) field.
446    #[doc(alias = "Price")]
447    pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
448        self.0.get_decimal(Tag(44))
449    }
450
451    /// The `StopPx` (99) field.
452    #[doc(alias = "StopPx")]
453    pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
454        self.0.get_decimal(Tag(99))
455    }
456
457    /// The `Currency` (15) field.
458    #[doc(alias = "Currency")]
459    pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
460        self.0.get_str(Tag(15))
461    }
462
463    /// The `ComplianceID` (376) field.
464    #[doc(alias = "ComplianceID")]
465    pub fn compliance_id(&self) -> Result<Option<&'a str>, InvalidValue> {
466        self.0.get_str(Tag(376))
467    }
468
469    /// The `SolicitedFlag` (377) field.
470    #[doc(alias = "SolicitedFlag")]
471    pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
472        self.0.get_bool(Tag(377))
473    }
474
475    /// The `IOIid` (23) field.
476    #[doc(alias = "IOIid")]
477    pub fn io_iid(&self) -> Result<Option<&'a str>, InvalidValue> {
478        self.0.get_str(Tag(23))
479    }
480
481    /// The `QuoteID` (117) field.
482    #[doc(alias = "QuoteID")]
483    pub fn quote_id(&self) -> Result<Option<&'a str>, InvalidValue> {
484        self.0.get_str(Tag(117))
485    }
486
487    /// The `TimeInForce` (59) field.
488    #[doc(alias = "TimeInForce")]
489    pub fn time_in_force(&self) -> Result<Option<TimeInForce<'a>>, InvalidValue> {
490        Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
491    }
492
493    /// The `EffectiveTime` (168) field.
494    #[doc(alias = "EffectiveTime")]
495    pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
496        self.0.get_utc_timestamp(Tag(168))
497    }
498
499    /// The `ExpireDate` (432) field.
500    #[doc(alias = "ExpireDate")]
501    pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
502        self.0.get_date(Tag(432))
503    }
504
505    /// The `ExpireTime` (126) field.
506    #[doc(alias = "ExpireTime")]
507    pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
508        self.0.get_utc_timestamp(Tag(126))
509    }
510
511    /// The `GTBookingInst` (427) field.
512    #[doc(alias = "GTBookingInst")]
513    pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
514        Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
515    }
516
517    /// The `Commission` (12) field.
518    #[doc(alias = "Commission")]
519    pub fn commission(&self) -> Result<Option<Decimal>, InvalidValue> {
520        self.0.get_decimal(Tag(12))
521    }
522
523    /// The `CommType` (13) field.
524    #[doc(alias = "CommType")]
525    pub fn comm_type(&self) -> Result<Option<CommType<'a>>, InvalidValue> {
526        Ok(self.0.get_str(Tag(13))?.map(CommType::from_value))
527    }
528
529    /// The `Rule80A` (47) field.
530    #[doc(alias = "Rule80A")]
531    pub fn rule80_a(&self) -> Result<Option<Rule80A<'a>>, InvalidValue> {
532        Ok(self.0.get_str(Tag(47))?.map(Rule80A::from_value))
533    }
534
535    /// The `ForexReq` (121) field.
536    #[doc(alias = "ForexReq")]
537    pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue> {
538        self.0.get_bool(Tag(121))
539    }
540
541    /// The `SettlCurrency` (120) field.
542    #[doc(alias = "SettlCurrency")]
543    pub fn settl_currency(&self) -> Result<Option<&'a str>, InvalidValue> {
544        self.0.get_str(Tag(120))
545    }
546
547    /// The `Text` (58) field.
548    #[doc(alias = "Text")]
549    pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
550        self.0.get_str(Tag(58))
551    }
552
553    /// The `EncodedTextLen` (354) field.
554    #[doc(alias = "EncodedTextLen")]
555    pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
556        self.0.get_int(Tag(354))
557    }
558
559    /// The `EncodedText` (355) field.
560    #[doc(alias = "EncodedText")]
561    pub fn encoded_text(&self) -> Option<&'a [u8]> {
562        self.0.get(Tag(355))
563    }
564
565    /// The `FutSettDate2` (193) field.
566    #[doc(alias = "FutSettDate2")]
567    pub fn fut_sett_date2(&self) -> Result<Option<Date>, InvalidValue> {
568        self.0.get_date(Tag(193))
569    }
570
571    /// The `OrderQty2` (192) field.
572    #[doc(alias = "OrderQty2")]
573    pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
574        self.0.get_decimal(Tag(192))
575    }
576
577    /// The `OpenClose` (77) field.
578    #[doc(alias = "OpenClose")]
579    pub fn open_close(&self) -> Result<Option<OpenClose<'a>>, InvalidValue> {
580        Ok(self.0.get_str(Tag(77))?.map(OpenClose::from_value))
581    }
582
583    /// The `CoveredOrUncovered` (203) field.
584    #[doc(alias = "CoveredOrUncovered")]
585    pub fn covered_or_uncovered(&self) -> Result<Option<CoveredOrUncovered>, InvalidValue> {
586        Ok(self.0.get_int(Tag(203))?.map(CoveredOrUncovered::from_value))
587    }
588
589    /// The `CustomerOrFirm` (204) field.
590    #[doc(alias = "CustomerOrFirm")]
591    pub fn customer_or_firm(&self) -> Result<Option<CustomerOrFirm>, InvalidValue> {
592        Ok(self.0.get_int(Tag(204))?.map(CustomerOrFirm::from_value))
593    }
594
595    /// The `MaxShow` (210) field.
596    #[doc(alias = "MaxShow")]
597    pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
598        self.0.get_decimal(Tag(210))
599    }
600
601    /// The `PegDifference` (211) field.
602    #[doc(alias = "PegDifference")]
603    pub fn peg_difference(&self) -> Result<Option<Decimal>, InvalidValue> {
604        self.0.get_decimal(Tag(211))
605    }
606
607    /// The `DiscretionInst` (388) field.
608    #[doc(alias = "DiscretionInst")]
609    pub fn discretion_inst(&self) -> Result<Option<DiscretionInst<'a>>, InvalidValue> {
610        Ok(self.0.get_str(Tag(388))?.map(DiscretionInst::from_value))
611    }
612
613    /// The `DiscretionOffset` (389) field.
614    #[doc(alias = "DiscretionOffset")]
615    pub fn discretion_offset(&self) -> Result<Option<Decimal>, InvalidValue> {
616        self.0.get_decimal(Tag(389))
617    }
618
619    /// The `ClearingFirm` (439) field.
620    #[doc(alias = "ClearingFirm")]
621    pub fn clearing_firm(&self) -> Result<Option<&'a str>, InvalidValue> {
622        self.0.get_str(Tag(439))
623    }
624
625    /// The `ClearingAccount` (440) field.
626    #[doc(alias = "ClearingAccount")]
627    pub fn clearing_account(&self) -> Result<Option<&'a str>, InvalidValue> {
628        self.0.get_str(Tag(440))
629    }
630}
631
632impl std::fmt::Debug for NewOrderListOrders<'_> {
633    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
634        write!(f, "NewOrderListOrders({})", self.0)
635    }
636}
637
638/// An instance of the `NoAllocs` (78) group.
639#[derive(Clone, Copy)]
640pub struct NewOrderListOrdersAllocs<'a>(refix_message::Scope<'a>);
641
642impl<'a> From<refix_message::Scope<'a>> for NewOrderListOrdersAllocs<'a> {
643    fn from(scope: refix_message::Scope<'a>) -> Self {
644        Self(scope)
645    }
646}
647
648impl<'a> NewOrderListOrdersAllocs<'a> {
649    pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
650        Tag(78),
651        Tag(79),
652        &[Tag(79), Tag(80)],
653        &[],
654    );
655
656    pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
657        static TAGS: LazyKnownTags = LazyKnownTags::new(&[Tag(79), Tag(80)], &[]);
658        &TAGS
659    }
660
661    pub fn raw(&self) -> refix_message::Scope<'a> {
662        self.0
663    }
664
665    /// The `AllocAccount` (79) field.
666    #[doc(alias = "AllocAccount")]
667    pub fn alloc_account(&self) -> Result<Option<&'a str>, InvalidValue> {
668        self.0.get_str(Tag(79))
669    }
670
671    /// The `AllocShares` (80) field.
672    #[doc(alias = "AllocShares")]
673    pub fn alloc_shares(&self) -> Result<Option<Decimal>, InvalidValue> {
674        self.0.get_decimal(Tag(80))
675    }
676}
677
678impl std::fmt::Debug for NewOrderListOrdersAllocs<'_> {
679    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
680        write!(f, "NewOrderListOrdersAllocs({})", self.0)
681    }
682}
683
684/// An instance of the `NoTradingSessions` (386) group.
685#[derive(Clone, Copy)]
686pub struct NewOrderListOrdersTradingSessions<'a>(refix_message::Scope<'a>);
687
688impl<'a> From<refix_message::Scope<'a>> for NewOrderListOrdersTradingSessions<'a> {
689    fn from(scope: refix_message::Scope<'a>) -> Self {
690        Self(scope)
691    }
692}
693
694impl<'a> NewOrderListOrdersTradingSessions<'a> {
695    pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
696        Tag(386),
697        Tag(336),
698        &[Tag(336)],
699        &[],
700    );
701
702    pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
703        static TAGS: LazyKnownTags = LazyKnownTags::new(&[Tag(336)], &[]);
704        &TAGS
705    }
706
707    pub fn raw(&self) -> refix_message::Scope<'a> {
708        self.0
709    }
710
711    /// The `TradingSessionID` (336) field.
712    #[doc(alias = "TradingSessionID")]
713    pub fn trading_session_id(&self) -> Result<Option<&'a str>, InvalidValue> {
714        self.0.get_str(Tag(336))
715    }
716}
717
718impl std::fmt::Debug for NewOrderListOrdersTradingSessions<'_> {
719    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
720        write!(f, "NewOrderListOrdersTradingSessions({})", self.0)
721    }
722}