Skip to main content

refix_fix44/generated/components/
list_ord_grp.rs

1// @generated by refix codegen from FIX44.xml. Do not edit.
2#![cfg_attr(rustfmt, rustfmt::skip)]
3
4use refix_message::{
5    Date, Decimal, GroupTable, Instances, InvalidValue, LazyKnownTags, MultipleValues, Tag,
6    UtcTimestamp,
7};
8
9use super::super::enums::{
10    AccountType, AcctIDSource, BookingType, BookingUnit, CashMargin, ClearingFeeIndicator,
11    CoveredOrUncovered, CustOrderCapacity, DayBookingInst, ExecInst, GTBookingInst, HandlInst,
12    OrdType, OrderCapacity, OrderRestrictions, PositionEffect, PreallocMethod, PriceType,
13    ProcessCode, QtyType, SettlInstMode, SettlType, Side, SideValueInd, TargetStrategy, TimeInForce,
14};
15use super::{
16    CommissionData, DiscretionInstructions, EvntGrp, Instrument, OrderQtyData, Parties,
17    PegInstructions, PreAllocGrp, SecAltIDGrp, SpreadOrBenchmarkCurveData, Stipulations, TrdgSesGrp,
18    UndInstrmtGrp, YieldData,
19};
20
21/// An instance of the `NoOrders` (73) group.
22#[derive(Clone, Copy)]
23pub struct ListOrdGrp<'a>(refix_message::Scope<'a>);
24
25impl<'a> From<refix_message::Scope<'a>> for ListOrdGrp<'a> {
26    fn from(scope: refix_message::Scope<'a>) -> Self {
27        Self(scope)
28    }
29}
30
31impl<'a> ListOrdGrp<'a> {
32    pub(in super::super) const TABLE: GroupTable<'static> = GroupTable::new(
33        Tag(73),
34        Tag(11),
35        &[
36            Tag(1), Tag(11), Tag(12), Tag(13), Tag(15), Tag(18), Tag(21), Tag(22), Tag(23), Tag(38),
37            Tag(40), Tag(44), Tag(48), Tag(54), Tag(55), Tag(58), Tag(59), Tag(60), Tag(63),
38            Tag(64), Tag(65), Tag(67), Tag(70), Tag(75), Tag(77), Tag(78), Tag(81), Tag(99),
39            Tag(100), Tag(106), Tag(107), Tag(110), Tag(111), Tag(114), Tag(117), Tag(120),
40            Tag(121), Tag(126), Tag(140), Tag(152), Tag(160), Tag(167), Tag(168), Tag(192),
41            Tag(193), Tag(200), Tag(201), Tag(202), Tag(203), Tag(206), Tag(207), Tag(210),
42            Tag(211), Tag(218), Tag(220), Tag(221), Tag(222), Tag(223), Tag(224), Tag(225),
43            Tag(226), Tag(227), Tag(228), Tag(229), Tag(231), Tag(232), Tag(235), Tag(236),
44            Tag(239), Tag(240), Tag(255), Tag(348), Tag(349), Tag(350), Tag(351), Tag(354),
45            Tag(355), Tag(376), Tag(377), Tag(386), Tag(388), Tag(389), Tag(401), Tag(423),
46            Tag(427), Tag(432), Tag(453), Tag(454), Tag(460), Tag(461), Tag(468), Tag(469),
47            Tag(470), Tag(471), Tag(472), Tag(479), Tag(494), Tag(497), Tag(516), Tag(526),
48            Tag(528), Tag(529), Tag(541), Tag(543), Tag(544), Tag(581), Tag(582), Tag(583),
49            Tag(589), Tag(590), Tag(591), Tag(635), Tag(640), Tag(660), Tag(662), Tag(663),
50            Tag(667), Tag(691), Tag(696), Tag(697), Tag(698), Tag(699), Tag(701), Tag(711),
51            Tag(761), Tag(762), Tag(775), Tag(835), Tag(836), Tag(837), Tag(838), Tag(840),
52            Tag(841), Tag(842), Tag(843), Tag(844), Tag(846), Tag(847), Tag(848), Tag(849),
53            Tag(854), Tag(864), Tag(873), Tag(874), Tag(875), Tag(876), Tag(947),
54        ],
55        &[
56            Parties::TABLE, PreAllocGrp::TABLE, TrdgSesGrp::TABLE, SecAltIDGrp::TABLE,
57            EvntGrp::TABLE, UndInstrmtGrp::TABLE, Stipulations::TABLE,
58        ],
59    );
60
61    pub(in super::super) const fn known_tags() -> &'static LazyKnownTags {
62        static TAGS: LazyKnownTags = LazyKnownTags::new(
63            &[
64                Tag(11), Tag(526), Tag(67), Tag(583), Tag(160), Tag(453), Tag(229), Tag(75), Tag(1),
65                Tag(660), Tag(581), Tag(589), Tag(590), Tag(70), Tag(591), Tag(78), Tag(63),
66                Tag(64), Tag(544), Tag(635), Tag(21), Tag(18), Tag(110), Tag(111), Tag(100),
67                Tag(386), Tag(81), Tag(711), Tag(140), Tag(54), Tag(401), Tag(114), Tag(60),
68                Tag(232), Tag(854), Tag(40), Tag(423), Tag(44), Tag(99), Tag(15), Tag(376),
69                Tag(377), Tag(23), Tag(117), Tag(59), Tag(168), Tag(432), Tag(126), Tag(427),
70                Tag(528), Tag(529), Tag(582), Tag(121), Tag(120), Tag(775), Tag(58), Tag(354),
71                Tag(355), Tag(193), Tag(192), Tag(640), Tag(77), Tag(203), Tag(210), Tag(847),
72                Tag(848), Tag(849), Tag(494),
73            ],
74            &[
75                Parties::known_tags(), PreAllocGrp::known_tags(), TrdgSesGrp::known_tags(),
76                Instrument::known_tags(), UndInstrmtGrp::known_tags(), Stipulations::known_tags(),
77                OrderQtyData::known_tags(), SpreadOrBenchmarkCurveData::known_tags(),
78                YieldData::known_tags(), CommissionData::known_tags(),
79                PegInstructions::known_tags(), DiscretionInstructions::known_tags(),
80            ],
81        );
82        &TAGS
83    }
84
85    pub fn raw(&self) -> refix_message::Scope<'a> {
86        self.0
87    }
88
89    /// The `ClOrdID` (11) field.
90    #[doc(alias = "ClOrdID")]
91    pub fn cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
92        self.0.get_str(Tag(11))
93    }
94
95    /// The `SecondaryClOrdID` (526) field.
96    #[doc(alias = "SecondaryClOrdID")]
97    pub fn secondary_cl_ord_id(&self) -> Result<Option<&'a str>, InvalidValue> {
98        self.0.get_str(Tag(526))
99    }
100
101    /// The `ListSeqNo` (67) field.
102    #[doc(alias = "ListSeqNo")]
103    pub fn list_seq_no(&self) -> Result<Option<i64>, InvalidValue> {
104        self.0.get_int(Tag(67))
105    }
106
107    /// The `ClOrdLinkID` (583) field.
108    #[doc(alias = "ClOrdLinkID")]
109    pub fn cl_ord_link_id(&self) -> Result<Option<&'a str>, InvalidValue> {
110        self.0.get_str(Tag(583))
111    }
112
113    /// The `SettlInstMode` (160) field.
114    #[doc(alias = "SettlInstMode")]
115    pub fn settl_inst_mode(&self) -> Result<Option<SettlInstMode<'a>>, InvalidValue> {
116        Ok(self.0.get_str(Tag(160))?.map(SettlInstMode::from_value))
117    }
118
119    /// The instances of the `NoPartyIDs` (453) group.
120    #[doc(alias = "NoPartyIDs")]
121    pub fn party_ids(&self) -> Result<Instances<'a, Parties<'a>>, InvalidValue> {
122        self.0.get_group(&Parties::TABLE, &Self::known_tags().get()).map(Instances::from)
123    }
124
125    /// The `TradeOriginationDate` (229) field.
126    #[doc(alias = "TradeOriginationDate")]
127    pub fn trade_origination_date(&self) -> Result<Option<Date>, InvalidValue> {
128        self.0.get_date(Tag(229))
129    }
130
131    /// The `TradeDate` (75) field.
132    #[doc(alias = "TradeDate")]
133    pub fn trade_date(&self) -> Result<Option<Date>, InvalidValue> {
134        self.0.get_date(Tag(75))
135    }
136
137    /// The `Account` (1) field.
138    #[doc(alias = "Account")]
139    pub fn account(&self) -> Result<Option<&'a str>, InvalidValue> {
140        self.0.get_str(Tag(1))
141    }
142
143    /// The `AcctIDSource` (660) field.
144    #[doc(alias = "AcctIDSource")]
145    pub fn acct_id_source(&self) -> Result<Option<AcctIDSource>, InvalidValue> {
146        Ok(self.0.get_int(Tag(660))?.map(AcctIDSource::from_value))
147    }
148
149    /// The `AccountType` (581) field.
150    #[doc(alias = "AccountType")]
151    pub fn account_type(&self) -> Result<Option<AccountType>, InvalidValue> {
152        Ok(self.0.get_int(Tag(581))?.map(AccountType::from_value))
153    }
154
155    /// The `DayBookingInst` (589) field.
156    #[doc(alias = "DayBookingInst")]
157    pub fn day_booking_inst(&self) -> Result<Option<DayBookingInst<'a>>, InvalidValue> {
158        Ok(self.0.get_str(Tag(589))?.map(DayBookingInst::from_value))
159    }
160
161    /// The `BookingUnit` (590) field.
162    #[doc(alias = "BookingUnit")]
163    pub fn booking_unit(&self) -> Result<Option<BookingUnit<'a>>, InvalidValue> {
164        Ok(self.0.get_str(Tag(590))?.map(BookingUnit::from_value))
165    }
166
167    /// The `AllocID` (70) field.
168    #[doc(alias = "AllocID")]
169    pub fn alloc_id(&self) -> Result<Option<&'a str>, InvalidValue> {
170        self.0.get_str(Tag(70))
171    }
172
173    /// The `PreallocMethod` (591) field.
174    #[doc(alias = "PreallocMethod")]
175    pub fn prealloc_method(&self) -> Result<Option<PreallocMethod<'a>>, InvalidValue> {
176        Ok(self.0.get_str(Tag(591))?.map(PreallocMethod::from_value))
177    }
178
179    /// The instances of the `NoAllocs` (78) group.
180    #[doc(alias = "NoAllocs")]
181    pub fn allocs(&self) -> Result<Instances<'a, PreAllocGrp<'a>>, InvalidValue> {
182        self.0.get_group(&PreAllocGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
183    }
184
185    /// The `SettlType` (63) field.
186    #[doc(alias = "SettlType")]
187    pub fn settl_type(&self) -> Result<Option<SettlType<'a>>, InvalidValue> {
188        Ok(self.0.get_str(Tag(63))?.map(SettlType::from_value))
189    }
190
191    /// The `SettlDate` (64) field.
192    #[doc(alias = "SettlDate")]
193    pub fn settl_date(&self) -> Result<Option<Date>, InvalidValue> {
194        self.0.get_date(Tag(64))
195    }
196
197    /// The `CashMargin` (544) field.
198    #[doc(alias = "CashMargin")]
199    pub fn cash_margin(&self) -> Result<Option<CashMargin<'a>>, InvalidValue> {
200        Ok(self.0.get_str(Tag(544))?.map(CashMargin::from_value))
201    }
202
203    /// The `ClearingFeeIndicator` (635) field.
204    #[doc(alias = "ClearingFeeIndicator")]
205    pub fn clearing_fee_indicator(&self) -> Result<Option<ClearingFeeIndicator<'a>>, InvalidValue> {
206        Ok(self.0.get_str(Tag(635))?.map(ClearingFeeIndicator::from_value))
207    }
208
209    /// The `HandlInst` (21) field.
210    #[doc(alias = "HandlInst")]
211    pub fn handl_inst(&self) -> Result<Option<HandlInst<'a>>, InvalidValue> {
212        Ok(self.0.get_str(Tag(21))?.map(HandlInst::from_value))
213    }
214
215    /// The `ExecInst` (18) field.
216    #[doc(alias = "ExecInst")]
217    pub fn exec_inst(&self) -> Result<Option<MultipleValues<'a, ExecInst<'a>>>, InvalidValue> {
218        self.0.get_multiple_values(Tag(18))
219    }
220
221    /// The `MinQty` (110) field.
222    #[doc(alias = "MinQty")]
223    pub fn min_qty(&self) -> Result<Option<Decimal>, InvalidValue> {
224        self.0.get_decimal(Tag(110))
225    }
226
227    /// The `MaxFloor` (111) field.
228    #[doc(alias = "MaxFloor")]
229    pub fn max_floor(&self) -> Result<Option<Decimal>, InvalidValue> {
230        self.0.get_decimal(Tag(111))
231    }
232
233    /// The `ExDestination` (100) field.
234    #[doc(alias = "ExDestination")]
235    pub fn ex_destination(&self) -> Result<Option<&'a str>, InvalidValue> {
236        self.0.get_str(Tag(100))
237    }
238
239    /// The instances of the `NoTradingSessions` (386) group.
240    #[doc(alias = "NoTradingSessions")]
241    pub fn trading_sessions(&self) -> Result<Instances<'a, TrdgSesGrp<'a>>, InvalidValue> {
242        self.0.get_group(&TrdgSesGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
243    }
244
245    /// The `ProcessCode` (81) field.
246    #[doc(alias = "ProcessCode")]
247    pub fn process_code(&self) -> Result<Option<ProcessCode<'a>>, InvalidValue> {
248        Ok(self.0.get_str(Tag(81))?.map(ProcessCode::from_value))
249    }
250
251    /// The `Instrument` component.
252    pub fn instrument(&self) -> Instrument<'a> {
253        Instrument(self.0, Self::known_tags().get())
254    }
255
256    /// The instances of the `NoUnderlyings` (711) group.
257    #[doc(alias = "NoUnderlyings")]
258    pub fn underlyings(&self) -> Result<Instances<'a, UndInstrmtGrp<'a>>, InvalidValue> {
259        self.0.get_group(&UndInstrmtGrp::TABLE, &Self::known_tags().get()).map(Instances::from)
260    }
261
262    /// The `PrevClosePx` (140) field.
263    #[doc(alias = "PrevClosePx")]
264    pub fn prev_close_px(&self) -> Result<Option<Decimal>, InvalidValue> {
265        self.0.get_decimal(Tag(140))
266    }
267
268    /// The `Side` (54) field.
269    #[doc(alias = "Side")]
270    pub fn side(&self) -> Result<Option<Side<'a>>, InvalidValue> {
271        Ok(self.0.get_str(Tag(54))?.map(Side::from_value))
272    }
273
274    /// The `SideValueInd` (401) field.
275    #[doc(alias = "SideValueInd")]
276    pub fn side_value_ind(&self) -> Result<Option<SideValueInd>, InvalidValue> {
277        Ok(self.0.get_int(Tag(401))?.map(SideValueInd::from_value))
278    }
279
280    /// The `LocateReqd` (114) field.
281    #[doc(alias = "LocateReqd")]
282    pub fn locate_reqd(&self) -> Result<Option<bool>, InvalidValue> {
283        self.0.get_bool(Tag(114))
284    }
285
286    /// The `TransactTime` (60) field.
287    #[doc(alias = "TransactTime")]
288    pub fn transact_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
289        self.0.get_utc_timestamp(Tag(60))
290    }
291
292    /// The instances of the `NoStipulations` (232) group.
293    #[doc(alias = "NoStipulations")]
294    pub fn stipulations(&self) -> Result<Instances<'a, Stipulations<'a>>, InvalidValue> {
295        self.0.get_group(&Stipulations::TABLE, &Self::known_tags().get()).map(Instances::from)
296    }
297
298    /// The `QtyType` (854) field.
299    #[doc(alias = "QtyType")]
300    pub fn qty_type(&self) -> Result<Option<QtyType>, InvalidValue> {
301        Ok(self.0.get_int(Tag(854))?.map(QtyType::from_value))
302    }
303
304    /// The `OrderQtyData` component.
305    pub fn order_qty_data(&self) -> OrderQtyData<'a> {
306        OrderQtyData(self.0)
307    }
308
309    /// The `OrdType` (40) field.
310    #[doc(alias = "OrdType")]
311    pub fn ord_type(&self) -> Result<Option<OrdType<'a>>, InvalidValue> {
312        Ok(self.0.get_str(Tag(40))?.map(OrdType::from_value))
313    }
314
315    /// The `PriceType` (423) field.
316    #[doc(alias = "PriceType")]
317    pub fn price_type(&self) -> Result<Option<PriceType>, InvalidValue> {
318        Ok(self.0.get_int(Tag(423))?.map(PriceType::from_value))
319    }
320
321    /// The `Price` (44) field.
322    #[doc(alias = "Price")]
323    pub fn price(&self) -> Result<Option<Decimal>, InvalidValue> {
324        self.0.get_decimal(Tag(44))
325    }
326
327    /// The `StopPx` (99) field.
328    #[doc(alias = "StopPx")]
329    pub fn stop_px(&self) -> Result<Option<Decimal>, InvalidValue> {
330        self.0.get_decimal(Tag(99))
331    }
332
333    /// The `SpreadOrBenchmarkCurveData` component.
334    pub fn spread_or_benchmark_curve_data(&self) -> SpreadOrBenchmarkCurveData<'a> {
335        SpreadOrBenchmarkCurveData(self.0)
336    }
337
338    /// The `YieldData` component.
339    pub fn yield_data(&self) -> YieldData<'a> {
340        YieldData(self.0)
341    }
342
343    /// The `Currency` (15) field.
344    #[doc(alias = "Currency")]
345    pub fn currency(&self) -> Result<Option<&'a str>, InvalidValue> {
346        self.0.get_str(Tag(15))
347    }
348
349    /// The `ComplianceID` (376) field.
350    #[doc(alias = "ComplianceID")]
351    pub fn compliance_id(&self) -> Result<Option<&'a str>, InvalidValue> {
352        self.0.get_str(Tag(376))
353    }
354
355    /// The `SolicitedFlag` (377) field.
356    #[doc(alias = "SolicitedFlag")]
357    pub fn solicited_flag(&self) -> Result<Option<bool>, InvalidValue> {
358        self.0.get_bool(Tag(377))
359    }
360
361    /// The `IOIID` (23) field.
362    #[doc(alias = "IOIID")]
363    pub fn ioiid(&self) -> Result<Option<&'a str>, InvalidValue> {
364        self.0.get_str(Tag(23))
365    }
366
367    /// The `QuoteID` (117) field.
368    #[doc(alias = "QuoteID")]
369    pub fn quote_id(&self) -> Result<Option<&'a str>, InvalidValue> {
370        self.0.get_str(Tag(117))
371    }
372
373    /// The `TimeInForce` (59) field.
374    #[doc(alias = "TimeInForce")]
375    pub fn time_in_force(&self) -> Result<Option<TimeInForce<'a>>, InvalidValue> {
376        Ok(self.0.get_str(Tag(59))?.map(TimeInForce::from_value))
377    }
378
379    /// The `EffectiveTime` (168) field.
380    #[doc(alias = "EffectiveTime")]
381    pub fn effective_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
382        self.0.get_utc_timestamp(Tag(168))
383    }
384
385    /// The `ExpireDate` (432) field.
386    #[doc(alias = "ExpireDate")]
387    pub fn expire_date(&self) -> Result<Option<Date>, InvalidValue> {
388        self.0.get_date(Tag(432))
389    }
390
391    /// The `ExpireTime` (126) field.
392    #[doc(alias = "ExpireTime")]
393    pub fn expire_time(&self) -> Result<Option<UtcTimestamp>, InvalidValue> {
394        self.0.get_utc_timestamp(Tag(126))
395    }
396
397    /// The `GTBookingInst` (427) field.
398    #[doc(alias = "GTBookingInst")]
399    pub fn gt_booking_inst(&self) -> Result<Option<GTBookingInst>, InvalidValue> {
400        Ok(self.0.get_int(Tag(427))?.map(GTBookingInst::from_value))
401    }
402
403    /// The `CommissionData` component.
404    pub fn commission_data(&self) -> CommissionData<'a> {
405        CommissionData(self.0)
406    }
407
408    /// The `OrderCapacity` (528) field.
409    #[doc(alias = "OrderCapacity")]
410    pub fn order_capacity(&self) -> Result<Option<OrderCapacity<'a>>, InvalidValue> {
411        Ok(self.0.get_str(Tag(528))?.map(OrderCapacity::from_value))
412    }
413
414    /// The `OrderRestrictions` (529) field.
415    #[doc(alias = "OrderRestrictions")]
416    pub fn order_restrictions(&self) -> Result<Option<MultipleValues<'a, OrderRestrictions<'a>>>, InvalidValue> {
417        self.0.get_multiple_values(Tag(529))
418    }
419
420    /// The `CustOrderCapacity` (582) field.
421    #[doc(alias = "CustOrderCapacity")]
422    pub fn cust_order_capacity(&self) -> Result<Option<CustOrderCapacity>, InvalidValue> {
423        Ok(self.0.get_int(Tag(582))?.map(CustOrderCapacity::from_value))
424    }
425
426    /// The `ForexReq` (121) field.
427    #[doc(alias = "ForexReq")]
428    pub fn forex_req(&self) -> Result<Option<bool>, InvalidValue> {
429        self.0.get_bool(Tag(121))
430    }
431
432    /// The `SettlCurrency` (120) field.
433    #[doc(alias = "SettlCurrency")]
434    pub fn settl_currency(&self) -> Result<Option<&'a str>, InvalidValue> {
435        self.0.get_str(Tag(120))
436    }
437
438    /// The `BookingType` (775) field.
439    #[doc(alias = "BookingType")]
440    pub fn booking_type(&self) -> Result<Option<BookingType>, InvalidValue> {
441        Ok(self.0.get_int(Tag(775))?.map(BookingType::from_value))
442    }
443
444    /// The `Text` (58) field.
445    #[doc(alias = "Text")]
446    pub fn text(&self) -> Result<Option<&'a str>, InvalidValue> {
447        self.0.get_str(Tag(58))
448    }
449
450    /// The `EncodedTextLen` (354) field.
451    #[doc(alias = "EncodedTextLen")]
452    pub fn encoded_text_len(&self) -> Result<Option<i64>, InvalidValue> {
453        self.0.get_int(Tag(354))
454    }
455
456    /// The `EncodedText` (355) field.
457    #[doc(alias = "EncodedText")]
458    pub fn encoded_text(&self) -> Option<&'a [u8]> {
459        self.0.get(Tag(355))
460    }
461
462    /// The `SettlDate2` (193) field.
463    #[doc(alias = "SettlDate2")]
464    pub fn settl_date2(&self) -> Result<Option<Date>, InvalidValue> {
465        self.0.get_date(Tag(193))
466    }
467
468    /// The `OrderQty2` (192) field.
469    #[doc(alias = "OrderQty2")]
470    pub fn order_qty2(&self) -> Result<Option<Decimal>, InvalidValue> {
471        self.0.get_decimal(Tag(192))
472    }
473
474    /// The `Price2` (640) field.
475    #[doc(alias = "Price2")]
476    pub fn price2(&self) -> Result<Option<Decimal>, InvalidValue> {
477        self.0.get_decimal(Tag(640))
478    }
479
480    /// The `PositionEffect` (77) field.
481    #[doc(alias = "PositionEffect")]
482    pub fn position_effect(&self) -> Result<Option<PositionEffect<'a>>, InvalidValue> {
483        Ok(self.0.get_str(Tag(77))?.map(PositionEffect::from_value))
484    }
485
486    /// The `CoveredOrUncovered` (203) field.
487    #[doc(alias = "CoveredOrUncovered")]
488    pub fn covered_or_uncovered(&self) -> Result<Option<CoveredOrUncovered>, InvalidValue> {
489        Ok(self.0.get_int(Tag(203))?.map(CoveredOrUncovered::from_value))
490    }
491
492    /// The `MaxShow` (210) field.
493    #[doc(alias = "MaxShow")]
494    pub fn max_show(&self) -> Result<Option<Decimal>, InvalidValue> {
495        self.0.get_decimal(Tag(210))
496    }
497
498    /// The `PegInstructions` component.
499    pub fn peg_instructions(&self) -> PegInstructions<'a> {
500        PegInstructions(self.0)
501    }
502
503    /// The `DiscretionInstructions` component.
504    pub fn discretion_instructions(&self) -> DiscretionInstructions<'a> {
505        DiscretionInstructions(self.0)
506    }
507
508    /// The `TargetStrategy` (847) field.
509    #[doc(alias = "TargetStrategy")]
510    pub fn target_strategy(&self) -> Result<Option<TargetStrategy>, InvalidValue> {
511        Ok(self.0.get_int(Tag(847))?.map(TargetStrategy::from_value))
512    }
513
514    /// The `TargetStrategyParameters` (848) field.
515    #[doc(alias = "TargetStrategyParameters")]
516    pub fn target_strategy_parameters(&self) -> Result<Option<&'a str>, InvalidValue> {
517        self.0.get_str(Tag(848))
518    }
519
520    /// The `ParticipationRate` (849) field.
521    #[doc(alias = "ParticipationRate")]
522    pub fn participation_rate(&self) -> Result<Option<Decimal>, InvalidValue> {
523        self.0.get_decimal(Tag(849))
524    }
525
526    /// The `Designation` (494) field.
527    #[doc(alias = "Designation")]
528    pub fn designation(&self) -> Result<Option<&'a str>, InvalidValue> {
529        self.0.get_str(Tag(494))
530    }
531}
532
533impl std::fmt::Debug for ListOrdGrp<'_> {
534    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
535        write!(f, "ListOrdGrp({})", self.0)
536    }
537}