Skip to main content

fixer_fix/fix50sp2/
execution_report.rs

1// Code generated by fixer-gen. DO NOT EDIT.
2#![allow(clippy::new_without_default)]
3#![allow(clippy::needless_pass_by_value)]
4#![allow(clippy::too_many_arguments)]
5#![allow(unused_imports)]
6
7use fixer::message::Message;
8use fixer::fix_string::FIXString;
9use fixer::errors::MessageRejectErrorEnum;
10use fixer::session::session_id::SessionID;
11
12use rust_decimal::Decimal;
13
14
15use jiff::Timestamp;
16
17use crate::field;
18use crate::tag;
19
20/// `ExecutionReport` is the `fix50sp2` `ExecutionReport` type, `MsgType` = 8.
21pub struct ExecutionReport {
22    pub message: Message,
23}
24
25impl ExecutionReport {
26    /// Creates a new `ExecutionReport` with required fields.
27    pub fn new(order_id: field::OrderIDField, exec_id: field::ExecIDField, exec_type: field::ExecTypeField, ord_status: field::OrdStatusField, side: field::SideField, leaves_qty: field::LeavesQtyField, cum_qty: field::CumQtyField) -> Self {
28        let mut msg = Message::new();
29        msg.header.set_field(tag::MSG_TYPE, FIXString::from("8".to_string()));
30
31        msg.body.set_field(tag::ORDER_ID, order_id.0);
32
33        msg.body.set_field(tag::EXEC_ID, exec_id.0);
34
35        msg.body.set_field(tag::EXEC_TYPE, exec_type.0);
36
37        msg.body.set_field(tag::ORD_STATUS, ord_status.0);
38
39        msg.body.set_field(tag::SIDE, side.0);
40
41        msg.body.set_field(tag::LEAVES_QTY, leaves_qty.0);
42
43        msg.body.set_field(tag::CUM_QTY, cum_qty.0);
44
45        Self { message: msg }
46    }
47
48    /// Creates a `ExecutionReport` from an existing `Message`.
49    pub fn from_message(msg: Message) -> Self {
50        Self { message: msg }
51    }
52
53    /// Returns the underlying `Message`.
54    pub fn to_message(self) -> Message {
55        self.message
56    }
57
58
59
60
61    /// Sets `Account`, Tag 1.
62    pub fn set_account(&mut self, v: String) {
63        self.message.body.set_field(tag::ACCOUNT, FIXString::from(v));
64    }
65
66    /// Gets `Account`, Tag 1.
67    pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum> {
68        let mut fld = field::AccountField::new(String::new());
69        self.message.body.get_field(tag::ACCOUNT, &mut fld.0)?;
70        Ok(fld.value().to_string())
71    }
72
73
74    /// Returns true if `Account` is present, Tag 1.
75    pub fn has_account(&self) -> bool {
76        self.message.body.has(tag::ACCOUNT)
77    }
78
79
80
81
82    /// Sets `AccountType`, Tag 581.
83    pub fn set_account_type(&mut self, v: isize) {
84        self.message.body.set_field(tag::ACCOUNT_TYPE, fixer::fix_int::FIXInt::from(v));
85    }
86
87    /// Gets `AccountType`, Tag 581.
88    pub fn get_account_type(&self) -> Result<isize, MessageRejectErrorEnum> {
89        let mut fld = field::AccountTypeField::new(0);
90        self.message.body.get_field(tag::ACCOUNT_TYPE, &mut fld.0)?;
91        Ok(fld.value())
92    }
93
94
95    /// Returns true if `AccountType` is present, Tag 581.
96    pub fn has_account_type(&self) -> bool {
97        self.message.body.has(tag::ACCOUNT_TYPE)
98    }
99
100
101
102
103    /// Sets `AccruedInterestAmt`, Tag 159.
104    pub fn set_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
105        self.message.body.set_field(tag::ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
106    }
107
108    /// Gets `AccruedInterestAmt`, Tag 159.
109    pub fn get_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
110        let mut fld = field::AccruedInterestAmtField::new(Decimal::ZERO, 0);
111        self.message.body.get_field(tag::ACCRUED_INTEREST_AMT, &mut fld.0)?;
112        Ok(fld.value())
113    }
114
115
116    /// Returns true if `AccruedInterestAmt` is present, Tag 159.
117    pub fn has_accrued_interest_amt(&self) -> bool {
118        self.message.body.has(tag::ACCRUED_INTEREST_AMT)
119    }
120
121
122
123
124    /// Sets `AccruedInterestRate`, Tag 158.
125    pub fn set_accrued_interest_rate(&mut self, val: Decimal, scale: i32) {
126        self.message.body.set_field(tag::ACCRUED_INTEREST_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
127    }
128
129    /// Gets `AccruedInterestRate`, Tag 158.
130    pub fn get_accrued_interest_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
131        let mut fld = field::AccruedInterestRateField::new(Decimal::ZERO, 0);
132        self.message.body.get_field(tag::ACCRUED_INTEREST_RATE, &mut fld.0)?;
133        Ok(fld.value())
134    }
135
136
137    /// Returns true if `AccruedInterestRate` is present, Tag 158.
138    pub fn has_accrued_interest_rate(&self) -> bool {
139        self.message.body.has(tag::ACCRUED_INTEREST_RATE)
140    }
141
142
143
144
145    /// Sets `AcctIDSource`, Tag 660.
146    pub fn set_acct_id_source(&mut self, v: isize) {
147        self.message.body.set_field(tag::ACCT_ID_SOURCE, fixer::fix_int::FIXInt::from(v));
148    }
149
150    /// Gets `AcctIDSource`, Tag 660.
151    pub fn get_acct_id_source(&self) -> Result<isize, MessageRejectErrorEnum> {
152        let mut fld = field::AcctIDSourceField::new(0);
153        self.message.body.get_field(tag::ACCT_ID_SOURCE, &mut fld.0)?;
154        Ok(fld.value())
155    }
156
157
158    /// Returns true if `AcctIDSource` is present, Tag 660.
159    pub fn has_acct_id_source(&self) -> bool {
160        self.message.body.has(tag::ACCT_ID_SOURCE)
161    }
162
163
164
165
166    /// Sets `AggressorIndicator`, Tag 1057.
167    pub fn set_aggressor_indicator(&mut self, v: bool) {
168        self.message.body.set_field(tag::AGGRESSOR_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
169    }
170
171    /// Gets `AggressorIndicator`, Tag 1057.
172    pub fn get_aggressor_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
173        let mut fld = field::AggressorIndicatorField::new(false);
174        self.message.body.get_field(tag::AGGRESSOR_INDICATOR, &mut fld.0)?;
175        Ok(fld.value())
176    }
177
178
179    /// Returns true if `AggressorIndicator` is present, Tag 1057.
180    pub fn has_aggressor_indicator(&self) -> bool {
181        self.message.body.has(tag::AGGRESSOR_INDICATOR)
182    }
183
184
185
186
187    /// Sets `AgreementCurrency`, Tag 918.
188    pub fn set_agreement_currency(&mut self, v: String) {
189        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
190    }
191
192    /// Gets `AgreementCurrency`, Tag 918.
193    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
194        let mut fld = field::AgreementCurrencyField::new(String::new());
195        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
196        Ok(fld.value().to_string())
197    }
198
199
200    /// Returns true if `AgreementCurrency` is present, Tag 918.
201    pub fn has_agreement_currency(&self) -> bool {
202        self.message.body.has(tag::AGREEMENT_CURRENCY)
203    }
204
205
206
207
208    /// Sets `AgreementDate`, Tag 915.
209    pub fn set_agreement_date(&mut self, v: String) {
210        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
211    }
212
213    /// Gets `AgreementDate`, Tag 915.
214    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
215        let mut fld = field::AgreementDateField::new(String::new());
216        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
217        Ok(fld.value().to_string())
218    }
219
220
221    /// Returns true if `AgreementDate` is present, Tag 915.
222    pub fn has_agreement_date(&self) -> bool {
223        self.message.body.has(tag::AGREEMENT_DATE)
224    }
225
226
227
228
229    /// Sets `AgreementDesc`, Tag 913.
230    pub fn set_agreement_desc(&mut self, v: String) {
231        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
232    }
233
234    /// Gets `AgreementDesc`, Tag 913.
235    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
236        let mut fld = field::AgreementDescField::new(String::new());
237        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
238        Ok(fld.value().to_string())
239    }
240
241
242    /// Returns true if `AgreementDesc` is present, Tag 913.
243    pub fn has_agreement_desc(&self) -> bool {
244        self.message.body.has(tag::AGREEMENT_DESC)
245    }
246
247
248
249
250    /// Sets `AgreementID`, Tag 914.
251    pub fn set_agreement_id(&mut self, v: String) {
252        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
253    }
254
255    /// Gets `AgreementID`, Tag 914.
256    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
257        let mut fld = field::AgreementIDField::new(String::new());
258        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
259        Ok(fld.value().to_string())
260    }
261
262
263    /// Returns true if `AgreementID` is present, Tag 914.
264    pub fn has_agreement_id(&self) -> bool {
265        self.message.body.has(tag::AGREEMENT_ID)
266    }
267
268
269
270
271    /// Sets `AllocID`, Tag 70.
272    pub fn set_alloc_id(&mut self, v: String) {
273        self.message.body.set_field(tag::ALLOC_ID, FIXString::from(v));
274    }
275
276    /// Gets `AllocID`, Tag 70.
277    pub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
278        let mut fld = field::AllocIDField::new(String::new());
279        self.message.body.get_field(tag::ALLOC_ID, &mut fld.0)?;
280        Ok(fld.value().to_string())
281    }
282
283
284    /// Returns true if `AllocID` is present, Tag 70.
285    pub fn has_alloc_id(&self) -> bool {
286        self.message.body.has(tag::ALLOC_ID)
287    }
288
289
290
291
292    /// Sets `ApplID`, Tag 1180.
293    pub fn set_appl_id(&mut self, v: String) {
294        self.message.body.set_field(tag::APPL_ID, FIXString::from(v));
295    }
296
297    /// Gets `ApplID`, Tag 1180.
298    pub fn get_appl_id(&self) -> Result<String, MessageRejectErrorEnum> {
299        let mut fld = field::ApplIDField::new(String::new());
300        self.message.body.get_field(tag::APPL_ID, &mut fld.0)?;
301        Ok(fld.value().to_string())
302    }
303
304
305    /// Returns true if `ApplID` is present, Tag 1180.
306    pub fn has_appl_id(&self) -> bool {
307        self.message.body.has(tag::APPL_ID)
308    }
309
310
311
312
313    /// Sets `ApplLastSeqNum`, Tag 1350.
314    pub fn set_appl_last_seq_num(&mut self, v: isize) {
315        self.message.body.set_field(tag::APPL_LAST_SEQ_NUM, fixer::fix_int::FIXInt::from(v));
316    }
317
318    /// Gets `ApplLastSeqNum`, Tag 1350.
319    pub fn get_appl_last_seq_num(&self) -> Result<isize, MessageRejectErrorEnum> {
320        let mut fld = field::ApplLastSeqNumField::new(0);
321        self.message.body.get_field(tag::APPL_LAST_SEQ_NUM, &mut fld.0)?;
322        Ok(fld.value())
323    }
324
325
326    /// Returns true if `ApplLastSeqNum` is present, Tag 1350.
327    pub fn has_appl_last_seq_num(&self) -> bool {
328        self.message.body.has(tag::APPL_LAST_SEQ_NUM)
329    }
330
331
332
333
334    /// Sets `ApplResendFlag`, Tag 1352.
335    pub fn set_appl_resend_flag(&mut self, v: bool) {
336        self.message.body.set_field(tag::APPL_RESEND_FLAG, fixer::fix_boolean::FIXBoolean::from(v));
337    }
338
339    /// Gets `ApplResendFlag`, Tag 1352.
340    pub fn get_appl_resend_flag(&self) -> Result<bool, MessageRejectErrorEnum> {
341        let mut fld = field::ApplResendFlagField::new(false);
342        self.message.body.get_field(tag::APPL_RESEND_FLAG, &mut fld.0)?;
343        Ok(fld.value())
344    }
345
346
347    /// Returns true if `ApplResendFlag` is present, Tag 1352.
348    pub fn has_appl_resend_flag(&self) -> bool {
349        self.message.body.has(tag::APPL_RESEND_FLAG)
350    }
351
352
353
354
355    /// Sets `ApplSeqNum`, Tag 1181.
356    pub fn set_appl_seq_num(&mut self, v: isize) {
357        self.message.body.set_field(tag::APPL_SEQ_NUM, fixer::fix_int::FIXInt::from(v));
358    }
359
360    /// Gets `ApplSeqNum`, Tag 1181.
361    pub fn get_appl_seq_num(&self) -> Result<isize, MessageRejectErrorEnum> {
362        let mut fld = field::ApplSeqNumField::new(0);
363        self.message.body.get_field(tag::APPL_SEQ_NUM, &mut fld.0)?;
364        Ok(fld.value())
365    }
366
367
368    /// Returns true if `ApplSeqNum` is present, Tag 1181.
369    pub fn has_appl_seq_num(&self) -> bool {
370        self.message.body.has(tag::APPL_SEQ_NUM)
371    }
372
373
374
375
376    /// Sets `AttachmentPoint`, Tag 1457.
377    pub fn set_attachment_point(&mut self, val: Decimal, scale: i32) {
378        self.message.body.set_field(tag::ATTACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
379    }
380
381    /// Gets `AttachmentPoint`, Tag 1457.
382    pub fn get_attachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
383        let mut fld = field::AttachmentPointField::new(Decimal::ZERO, 0);
384        self.message.body.get_field(tag::ATTACHMENT_POINT, &mut fld.0)?;
385        Ok(fld.value())
386    }
387
388
389    /// Returns true if `AttachmentPoint` is present, Tag 1457.
390    pub fn has_attachment_point(&self) -> bool {
391        self.message.body.has(tag::ATTACHMENT_POINT)
392    }
393
394
395
396
397    /// Sets `AvgPx`, Tag 6.
398    pub fn set_avg_px(&mut self, val: Decimal, scale: i32) {
399        self.message.body.set_field(tag::AVG_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
400    }
401
402    /// Gets `AvgPx`, Tag 6.
403    pub fn get_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
404        let mut fld = field::AvgPxField::new(Decimal::ZERO, 0);
405        self.message.body.get_field(tag::AVG_PX, &mut fld.0)?;
406        Ok(fld.value())
407    }
408
409
410    /// Returns true if `AvgPx` is present, Tag 6.
411    pub fn has_avg_px(&self) -> bool {
412        self.message.body.has(tag::AVG_PX)
413    }
414
415
416
417
418    /// Sets `BasisFeatureDate`, Tag 259.
419    pub fn set_basis_feature_date(&mut self, v: String) {
420        self.message.body.set_field(tag::BASIS_FEATURE_DATE, FIXString::from(v));
421    }
422
423    /// Gets `BasisFeatureDate`, Tag 259.
424    pub fn get_basis_feature_date(&self) -> Result<String, MessageRejectErrorEnum> {
425        let mut fld = field::BasisFeatureDateField::new(String::new());
426        self.message.body.get_field(tag::BASIS_FEATURE_DATE, &mut fld.0)?;
427        Ok(fld.value().to_string())
428    }
429
430
431    /// Returns true if `BasisFeatureDate` is present, Tag 259.
432    pub fn has_basis_feature_date(&self) -> bool {
433        self.message.body.has(tag::BASIS_FEATURE_DATE)
434    }
435
436
437
438
439    /// Sets `BasisFeaturePrice`, Tag 260.
440    pub fn set_basis_feature_price(&mut self, val: Decimal, scale: i32) {
441        self.message.body.set_field(tag::BASIS_FEATURE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
442    }
443
444    /// Gets `BasisFeaturePrice`, Tag 260.
445    pub fn get_basis_feature_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
446        let mut fld = field::BasisFeaturePriceField::new(Decimal::ZERO, 0);
447        self.message.body.get_field(tag::BASIS_FEATURE_PRICE, &mut fld.0)?;
448        Ok(fld.value())
449    }
450
451
452    /// Returns true if `BasisFeaturePrice` is present, Tag 260.
453    pub fn has_basis_feature_price(&self) -> bool {
454        self.message.body.has(tag::BASIS_FEATURE_PRICE)
455    }
456
457
458
459
460    /// Sets `BenchmarkCurveCurrency`, Tag 220.
461    pub fn set_benchmark_curve_currency(&mut self, v: String) {
462        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
463    }
464
465    /// Gets `BenchmarkCurveCurrency`, Tag 220.
466    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
467        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
468        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
469        Ok(fld.value().to_string())
470    }
471
472
473    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
474    pub fn has_benchmark_curve_currency(&self) -> bool {
475        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
476    }
477
478
479
480
481    /// Sets `BenchmarkCurveName`, Tag 221.
482    pub fn set_benchmark_curve_name(&mut self, v: String) {
483        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
484    }
485
486    /// Gets `BenchmarkCurveName`, Tag 221.
487    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
488        let mut fld = field::BenchmarkCurveNameField::new(String::new());
489        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
490        Ok(fld.value().to_string())
491    }
492
493
494    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
495    pub fn has_benchmark_curve_name(&self) -> bool {
496        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
497    }
498
499
500
501
502    /// Sets `BenchmarkCurvePoint`, Tag 222.
503    pub fn set_benchmark_curve_point(&mut self, v: String) {
504        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
505    }
506
507    /// Gets `BenchmarkCurvePoint`, Tag 222.
508    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
509        let mut fld = field::BenchmarkCurvePointField::new(String::new());
510        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
511        Ok(fld.value().to_string())
512    }
513
514
515    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
516    pub fn has_benchmark_curve_point(&self) -> bool {
517        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
518    }
519
520
521
522
523    /// Sets `BenchmarkPrice`, Tag 662.
524    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
525        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
526    }
527
528    /// Gets `BenchmarkPrice`, Tag 662.
529    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
530        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
531        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
532        Ok(fld.value())
533    }
534
535
536    /// Returns true if `BenchmarkPrice` is present, Tag 662.
537    pub fn has_benchmark_price(&self) -> bool {
538        self.message.body.has(tag::BENCHMARK_PRICE)
539    }
540
541
542
543
544    /// Sets `BenchmarkPriceType`, Tag 663.
545    pub fn set_benchmark_price_type(&mut self, v: isize) {
546        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
547    }
548
549    /// Gets `BenchmarkPriceType`, Tag 663.
550    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
551        let mut fld = field::BenchmarkPriceTypeField::new(0);
552        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
553        Ok(fld.value())
554    }
555
556
557    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
558    pub fn has_benchmark_price_type(&self) -> bool {
559        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
560    }
561
562
563
564
565    /// Sets `BenchmarkSecurityID`, Tag 699.
566    pub fn set_benchmark_security_id(&mut self, v: String) {
567        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
568    }
569
570    /// Gets `BenchmarkSecurityID`, Tag 699.
571    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
572        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
573        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
574        Ok(fld.value().to_string())
575    }
576
577
578    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
579    pub fn has_benchmark_security_id(&self) -> bool {
580        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
581    }
582
583
584
585
586    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
587    pub fn set_benchmark_security_id_source(&mut self, v: String) {
588        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
589    }
590
591    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
592    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
593        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
594        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
595        Ok(fld.value().to_string())
596    }
597
598
599    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
600    pub fn has_benchmark_security_id_source(&self) -> bool {
601        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
602    }
603
604
605
606
607    /// Sets `BookingType`, Tag 775.
608    pub fn set_booking_type(&mut self, v: isize) {
609        self.message.body.set_field(tag::BOOKING_TYPE, fixer::fix_int::FIXInt::from(v));
610    }
611
612    /// Gets `BookingType`, Tag 775.
613    pub fn get_booking_type(&self) -> Result<isize, MessageRejectErrorEnum> {
614        let mut fld = field::BookingTypeField::new(0);
615        self.message.body.get_field(tag::BOOKING_TYPE, &mut fld.0)?;
616        Ok(fld.value())
617    }
618
619
620    /// Returns true if `BookingType` is present, Tag 775.
621    pub fn has_booking_type(&self) -> bool {
622        self.message.body.has(tag::BOOKING_TYPE)
623    }
624
625
626
627
628    /// Sets `BookingUnit`, Tag 590.
629    pub fn set_booking_unit(&mut self, v: String) {
630        self.message.body.set_field(tag::BOOKING_UNIT, FIXString::from(v));
631    }
632
633    /// Gets `BookingUnit`, Tag 590.
634    pub fn get_booking_unit(&self) -> Result<String, MessageRejectErrorEnum> {
635        let mut fld = field::BookingUnitField::new(String::new());
636        self.message.body.get_field(tag::BOOKING_UNIT, &mut fld.0)?;
637        Ok(fld.value().to_string())
638    }
639
640
641    /// Returns true if `BookingUnit` is present, Tag 590.
642    pub fn has_booking_unit(&self) -> bool {
643        self.message.body.has(tag::BOOKING_UNIT)
644    }
645
646
647
648
649    /// Sets `CFICode`, Tag 461.
650    pub fn set_cfi_code(&mut self, v: String) {
651        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
652    }
653
654    /// Gets `CFICode`, Tag 461.
655    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
656        let mut fld = field::CFICodeField::new(String::new());
657        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
658        Ok(fld.value().to_string())
659    }
660
661
662    /// Returns true if `CFICode` is present, Tag 461.
663    pub fn has_cfi_code(&self) -> bool {
664        self.message.body.has(tag::CFI_CODE)
665    }
666
667
668
669
670    /// Sets `CPProgram`, Tag 875.
671    pub fn set_cp_program(&mut self, v: isize) {
672        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
673    }
674
675    /// Gets `CPProgram`, Tag 875.
676    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
677        let mut fld = field::CPProgramField::new(0);
678        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
679        Ok(fld.value())
680    }
681
682
683    /// Returns true if `CPProgram` is present, Tag 875.
684    pub fn has_cp_program(&self) -> bool {
685        self.message.body.has(tag::CP_PROGRAM)
686    }
687
688
689
690
691    /// Sets `CPRegType`, Tag 876.
692    pub fn set_cp_reg_type(&mut self, v: String) {
693        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
694    }
695
696    /// Gets `CPRegType`, Tag 876.
697    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
698        let mut fld = field::CPRegTypeField::new(String::new());
699        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
700        Ok(fld.value().to_string())
701    }
702
703
704    /// Returns true if `CPRegType` is present, Tag 876.
705    pub fn has_cp_reg_type(&self) -> bool {
706        self.message.body.has(tag::CP_REG_TYPE)
707    }
708
709
710
711
712    /// Sets `CalculatedCcyLastQty`, Tag 1056.
713    pub fn set_calculated_ccy_last_qty(&mut self, val: Decimal, scale: i32) {
714        self.message.body.set_field(tag::CALCULATED_CCY_LAST_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
715    }
716
717    /// Gets `CalculatedCcyLastQty`, Tag 1056.
718    pub fn get_calculated_ccy_last_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
719        let mut fld = field::CalculatedCcyLastQtyField::new(Decimal::ZERO, 0);
720        self.message.body.get_field(tag::CALCULATED_CCY_LAST_QTY, &mut fld.0)?;
721        Ok(fld.value())
722    }
723
724
725    /// Returns true if `CalculatedCcyLastQty` is present, Tag 1056.
726    pub fn has_calculated_ccy_last_qty(&self) -> bool {
727        self.message.body.has(tag::CALCULATED_CCY_LAST_QTY)
728    }
729
730
731
732
733    /// Sets `CancellationRights`, Tag 480.
734    pub fn set_cancellation_rights(&mut self, v: String) {
735        self.message.body.set_field(tag::CANCELLATION_RIGHTS, FIXString::from(v));
736    }
737
738    /// Gets `CancellationRights`, Tag 480.
739    pub fn get_cancellation_rights(&self) -> Result<String, MessageRejectErrorEnum> {
740        let mut fld = field::CancellationRightsField::new(String::new());
741        self.message.body.get_field(tag::CANCELLATION_RIGHTS, &mut fld.0)?;
742        Ok(fld.value().to_string())
743    }
744
745
746    /// Returns true if `CancellationRights` is present, Tag 480.
747    pub fn has_cancellation_rights(&self) -> bool {
748        self.message.body.has(tag::CANCELLATION_RIGHTS)
749    }
750
751
752
753
754    /// Sets `CapPrice`, Tag 1199.
755    pub fn set_cap_price(&mut self, val: Decimal, scale: i32) {
756        self.message.body.set_field(tag::CAP_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
757    }
758
759    /// Gets `CapPrice`, Tag 1199.
760    pub fn get_cap_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
761        let mut fld = field::CapPriceField::new(Decimal::ZERO, 0);
762        self.message.body.get_field(tag::CAP_PRICE, &mut fld.0)?;
763        Ok(fld.value())
764    }
765
766
767    /// Returns true if `CapPrice` is present, Tag 1199.
768    pub fn has_cap_price(&self) -> bool {
769        self.message.body.has(tag::CAP_PRICE)
770    }
771
772
773
774
775    /// Sets `CashMargin`, Tag 544.
776    pub fn set_cash_margin(&mut self, v: String) {
777        self.message.body.set_field(tag::CASH_MARGIN, FIXString::from(v));
778    }
779
780    /// Gets `CashMargin`, Tag 544.
781    pub fn get_cash_margin(&self) -> Result<String, MessageRejectErrorEnum> {
782        let mut fld = field::CashMarginField::new(String::new());
783        self.message.body.get_field(tag::CASH_MARGIN, &mut fld.0)?;
784        Ok(fld.value().to_string())
785    }
786
787
788    /// Returns true if `CashMargin` is present, Tag 544.
789    pub fn has_cash_margin(&self) -> bool {
790        self.message.body.has(tag::CASH_MARGIN)
791    }
792
793
794
795
796    /// Sets `CashOrderQty`, Tag 152.
797    pub fn set_cash_order_qty(&mut self, val: Decimal, scale: i32) {
798        self.message.body.set_field(tag::CASH_ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
799    }
800
801    /// Gets `CashOrderQty`, Tag 152.
802    pub fn get_cash_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
803        let mut fld = field::CashOrderQtyField::new(Decimal::ZERO, 0);
804        self.message.body.get_field(tag::CASH_ORDER_QTY, &mut fld.0)?;
805        Ok(fld.value())
806    }
807
808
809    /// Returns true if `CashOrderQty` is present, Tag 152.
810    pub fn has_cash_order_qty(&self) -> bool {
811        self.message.body.has(tag::CASH_ORDER_QTY)
812    }
813
814
815
816
817    /// Sets `ClOrdID`, Tag 11.
818    pub fn set_cl_ord_id(&mut self, v: String) {
819        self.message.body.set_field(tag::CL_ORD_ID, FIXString::from(v));
820    }
821
822    /// Gets `ClOrdID`, Tag 11.
823    pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
824        let mut fld = field::ClOrdIDField::new(String::new());
825        self.message.body.get_field(tag::CL_ORD_ID, &mut fld.0)?;
826        Ok(fld.value().to_string())
827    }
828
829
830    /// Returns true if `ClOrdID` is present, Tag 11.
831    pub fn has_cl_ord_id(&self) -> bool {
832        self.message.body.has(tag::CL_ORD_ID)
833    }
834
835
836
837
838    /// Sets `ClOrdLinkID`, Tag 583.
839    pub fn set_cl_ord_link_id(&mut self, v: String) {
840        self.message.body.set_field(tag::CL_ORD_LINK_ID, FIXString::from(v));
841    }
842
843    /// Gets `ClOrdLinkID`, Tag 583.
844    pub fn get_cl_ord_link_id(&self) -> Result<String, MessageRejectErrorEnum> {
845        let mut fld = field::ClOrdLinkIDField::new(String::new());
846        self.message.body.get_field(tag::CL_ORD_LINK_ID, &mut fld.0)?;
847        Ok(fld.value().to_string())
848    }
849
850
851    /// Returns true if `ClOrdLinkID` is present, Tag 583.
852    pub fn has_cl_ord_link_id(&self) -> bool {
853        self.message.body.has(tag::CL_ORD_LINK_ID)
854    }
855
856
857
858
859    /// Sets `ClearingFeeIndicator`, Tag 635.
860    pub fn set_clearing_fee_indicator(&mut self, v: String) {
861        self.message.body.set_field(tag::CLEARING_FEE_INDICATOR, FIXString::from(v));
862    }
863
864    /// Gets `ClearingFeeIndicator`, Tag 635.
865    pub fn get_clearing_fee_indicator(&self) -> Result<String, MessageRejectErrorEnum> {
866        let mut fld = field::ClearingFeeIndicatorField::new(String::new());
867        self.message.body.get_field(tag::CLEARING_FEE_INDICATOR, &mut fld.0)?;
868        Ok(fld.value().to_string())
869    }
870
871
872    /// Returns true if `ClearingFeeIndicator` is present, Tag 635.
873    pub fn has_clearing_fee_indicator(&self) -> bool {
874        self.message.body.has(tag::CLEARING_FEE_INDICATOR)
875    }
876
877
878
879
880    /// Sets `CommCurrency`, Tag 479.
881    pub fn set_comm_currency(&mut self, v: String) {
882        self.message.body.set_field(tag::COMM_CURRENCY, FIXString::from(v));
883    }
884
885    /// Gets `CommCurrency`, Tag 479.
886    pub fn get_comm_currency(&self) -> Result<String, MessageRejectErrorEnum> {
887        let mut fld = field::CommCurrencyField::new(String::new());
888        self.message.body.get_field(tag::COMM_CURRENCY, &mut fld.0)?;
889        Ok(fld.value().to_string())
890    }
891
892
893    /// Returns true if `CommCurrency` is present, Tag 479.
894    pub fn has_comm_currency(&self) -> bool {
895        self.message.body.has(tag::COMM_CURRENCY)
896    }
897
898
899
900
901    /// Sets `CommType`, Tag 13.
902    pub fn set_comm_type(&mut self, v: String) {
903        self.message.body.set_field(tag::COMM_TYPE, FIXString::from(v));
904    }
905
906    /// Gets `CommType`, Tag 13.
907    pub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum> {
908        let mut fld = field::CommTypeField::new(String::new());
909        self.message.body.get_field(tag::COMM_TYPE, &mut fld.0)?;
910        Ok(fld.value().to_string())
911    }
912
913
914    /// Returns true if `CommType` is present, Tag 13.
915    pub fn has_comm_type(&self) -> bool {
916        self.message.body.has(tag::COMM_TYPE)
917    }
918
919
920
921
922    /// Sets `Commission`, Tag 12.
923    pub fn set_commission(&mut self, val: Decimal, scale: i32) {
924        self.message.body.set_field(tag::COMMISSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
925    }
926
927    /// Gets `Commission`, Tag 12.
928    pub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum> {
929        let mut fld = field::CommissionField::new(Decimal::ZERO, 0);
930        self.message.body.get_field(tag::COMMISSION, &mut fld.0)?;
931        Ok(fld.value())
932    }
933
934
935    /// Returns true if `Commission` is present, Tag 12.
936    pub fn has_commission(&self) -> bool {
937        self.message.body.has(tag::COMMISSION)
938    }
939
940
941
942
943    /// Sets `ComplianceID`, Tag 376.
944    pub fn set_compliance_id(&mut self, v: String) {
945        self.message.body.set_field(tag::COMPLIANCE_ID, FIXString::from(v));
946    }
947
948    /// Gets `ComplianceID`, Tag 376.
949    pub fn get_compliance_id(&self) -> Result<String, MessageRejectErrorEnum> {
950        let mut fld = field::ComplianceIDField::new(String::new());
951        self.message.body.get_field(tag::COMPLIANCE_ID, &mut fld.0)?;
952        Ok(fld.value().to_string())
953    }
954
955
956    /// Returns true if `ComplianceID` is present, Tag 376.
957    pub fn has_compliance_id(&self) -> bool {
958        self.message.body.has(tag::COMPLIANCE_ID)
959    }
960
961
962
963
964    /// Sets `Concession`, Tag 238.
965    pub fn set_concession(&mut self, val: Decimal, scale: i32) {
966        self.message.body.set_field(tag::CONCESSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
967    }
968
969    /// Gets `Concession`, Tag 238.
970    pub fn get_concession(&self) -> Result<Decimal, MessageRejectErrorEnum> {
971        let mut fld = field::ConcessionField::new(Decimal::ZERO, 0);
972        self.message.body.get_field(tag::CONCESSION, &mut fld.0)?;
973        Ok(fld.value())
974    }
975
976
977    /// Returns true if `Concession` is present, Tag 238.
978    pub fn has_concession(&self) -> bool {
979        self.message.body.has(tag::CONCESSION)
980    }
981
982
983
984
985    /// Sets `ContractMultiplier`, Tag 231.
986    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
987        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
988    }
989
990    /// Gets `ContractMultiplier`, Tag 231.
991    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
992        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
993        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
994        Ok(fld.value())
995    }
996
997
998    /// Returns true if `ContractMultiplier` is present, Tag 231.
999    pub fn has_contract_multiplier(&self) -> bool {
1000        self.message.body.has(tag::CONTRACT_MULTIPLIER)
1001    }
1002
1003
1004
1005
1006    /// Sets `ContractMultiplierUnit`, Tag 1435.
1007    pub fn set_contract_multiplier_unit(&mut self, v: isize) {
1008        self.message.body.set_field(tag::CONTRACT_MULTIPLIER_UNIT, fixer::fix_int::FIXInt::from(v));
1009    }
1010
1011    /// Gets `ContractMultiplierUnit`, Tag 1435.
1012    pub fn get_contract_multiplier_unit(&self) -> Result<isize, MessageRejectErrorEnum> {
1013        let mut fld = field::ContractMultiplierUnitField::new(0);
1014        self.message.body.get_field(tag::CONTRACT_MULTIPLIER_UNIT, &mut fld.0)?;
1015        Ok(fld.value())
1016    }
1017
1018
1019    /// Returns true if `ContractMultiplierUnit` is present, Tag 1435.
1020    pub fn has_contract_multiplier_unit(&self) -> bool {
1021        self.message.body.has(tag::CONTRACT_MULTIPLIER_UNIT)
1022    }
1023
1024
1025
1026
1027    /// Sets `ContractSettlMonth`, Tag 667.
1028    pub fn set_contract_settl_month(&mut self, v: String) {
1029        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
1030    }
1031
1032    /// Gets `ContractSettlMonth`, Tag 667.
1033    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
1034        let mut fld = field::ContractSettlMonthField::new(String::new());
1035        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
1036        Ok(fld.value().to_string())
1037    }
1038
1039
1040    /// Returns true if `ContractSettlMonth` is present, Tag 667.
1041    pub fn has_contract_settl_month(&self) -> bool {
1042        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
1043    }
1044
1045
1046
1047
1048    /// Sets `CopyMsgIndicator`, Tag 797.
1049    pub fn set_copy_msg_indicator(&mut self, v: bool) {
1050        self.message.body.set_field(tag::COPY_MSG_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
1051    }
1052
1053    /// Gets `CopyMsgIndicator`, Tag 797.
1054    pub fn get_copy_msg_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
1055        let mut fld = field::CopyMsgIndicatorField::new(false);
1056        self.message.body.get_field(tag::COPY_MSG_INDICATOR, &mut fld.0)?;
1057        Ok(fld.value())
1058    }
1059
1060
1061    /// Returns true if `CopyMsgIndicator` is present, Tag 797.
1062    pub fn has_copy_msg_indicator(&self) -> bool {
1063        self.message.body.has(tag::COPY_MSG_INDICATOR)
1064    }
1065
1066
1067
1068
1069    /// Sets `CountryOfIssue`, Tag 470.
1070    pub fn set_country_of_issue(&mut self, v: String) {
1071        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
1072    }
1073
1074    /// Gets `CountryOfIssue`, Tag 470.
1075    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1076        let mut fld = field::CountryOfIssueField::new(String::new());
1077        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
1078        Ok(fld.value().to_string())
1079    }
1080
1081
1082    /// Returns true if `CountryOfIssue` is present, Tag 470.
1083    pub fn has_country_of_issue(&self) -> bool {
1084        self.message.body.has(tag::COUNTRY_OF_ISSUE)
1085    }
1086
1087
1088
1089
1090    /// Sets `CouponPaymentDate`, Tag 224.
1091    pub fn set_coupon_payment_date(&mut self, v: String) {
1092        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
1093    }
1094
1095    /// Gets `CouponPaymentDate`, Tag 224.
1096    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
1097        let mut fld = field::CouponPaymentDateField::new(String::new());
1098        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
1099        Ok(fld.value().to_string())
1100    }
1101
1102
1103    /// Returns true if `CouponPaymentDate` is present, Tag 224.
1104    pub fn has_coupon_payment_date(&self) -> bool {
1105        self.message.body.has(tag::COUPON_PAYMENT_DATE)
1106    }
1107
1108
1109
1110
1111    /// Sets `CouponRate`, Tag 223.
1112    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
1113        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1114    }
1115
1116    /// Gets `CouponRate`, Tag 223.
1117    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1118        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
1119        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
1120        Ok(fld.value())
1121    }
1122
1123
1124    /// Returns true if `CouponRate` is present, Tag 223.
1125    pub fn has_coupon_rate(&self) -> bool {
1126        self.message.body.has(tag::COUPON_RATE)
1127    }
1128
1129
1130
1131
1132    /// Sets `CreditRating`, Tag 255.
1133    pub fn set_credit_rating(&mut self, v: String) {
1134        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
1135    }
1136
1137    /// Gets `CreditRating`, Tag 255.
1138    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
1139        let mut fld = field::CreditRatingField::new(String::new());
1140        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
1141        Ok(fld.value().to_string())
1142    }
1143
1144
1145    /// Returns true if `CreditRating` is present, Tag 255.
1146    pub fn has_credit_rating(&self) -> bool {
1147        self.message.body.has(tag::CREDIT_RATING)
1148    }
1149
1150
1151
1152
1153    /// Sets `CrossID`, Tag 548.
1154    pub fn set_cross_id(&mut self, v: String) {
1155        self.message.body.set_field(tag::CROSS_ID, FIXString::from(v));
1156    }
1157
1158    /// Gets `CrossID`, Tag 548.
1159    pub fn get_cross_id(&self) -> Result<String, MessageRejectErrorEnum> {
1160        let mut fld = field::CrossIDField::new(String::new());
1161        self.message.body.get_field(tag::CROSS_ID, &mut fld.0)?;
1162        Ok(fld.value().to_string())
1163    }
1164
1165
1166    /// Returns true if `CrossID` is present, Tag 548.
1167    pub fn has_cross_id(&self) -> bool {
1168        self.message.body.has(tag::CROSS_ID)
1169    }
1170
1171
1172
1173
1174    /// Sets `CrossType`, Tag 549.
1175    pub fn set_cross_type(&mut self, v: isize) {
1176        self.message.body.set_field(tag::CROSS_TYPE, fixer::fix_int::FIXInt::from(v));
1177    }
1178
1179    /// Gets `CrossType`, Tag 549.
1180    pub fn get_cross_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1181        let mut fld = field::CrossTypeField::new(0);
1182        self.message.body.get_field(tag::CROSS_TYPE, &mut fld.0)?;
1183        Ok(fld.value())
1184    }
1185
1186
1187    /// Returns true if `CrossType` is present, Tag 549.
1188    pub fn has_cross_type(&self) -> bool {
1189        self.message.body.has(tag::CROSS_TYPE)
1190    }
1191
1192
1193
1194
1195    /// Sets `CumQty`, Tag 14.
1196    pub fn set_cum_qty(&mut self, val: Decimal, scale: i32) {
1197        self.message.body.set_field(tag::CUM_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1198    }
1199
1200    /// Gets `CumQty`, Tag 14.
1201    pub fn get_cum_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1202        let mut fld = field::CumQtyField::new(Decimal::ZERO, 0);
1203        self.message.body.get_field(tag::CUM_QTY, &mut fld.0)?;
1204        Ok(fld.value())
1205    }
1206
1207
1208    /// Returns true if `CumQty` is present, Tag 14.
1209    pub fn has_cum_qty(&self) -> bool {
1210        self.message.body.has(tag::CUM_QTY)
1211    }
1212
1213
1214
1215
1216    /// Sets `Currency`, Tag 15.
1217    pub fn set_currency(&mut self, v: String) {
1218        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
1219    }
1220
1221    /// Gets `Currency`, Tag 15.
1222    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
1223        let mut fld = field::CurrencyField::new(String::new());
1224        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
1225        Ok(fld.value().to_string())
1226    }
1227
1228
1229    /// Returns true if `Currency` is present, Tag 15.
1230    pub fn has_currency(&self) -> bool {
1231        self.message.body.has(tag::CURRENCY)
1232    }
1233
1234
1235
1236
1237    /// Sets `CustDirectedOrder`, Tag 1029.
1238    pub fn set_cust_directed_order(&mut self, v: bool) {
1239        self.message.body.set_field(tag::CUST_DIRECTED_ORDER, fixer::fix_boolean::FIXBoolean::from(v));
1240    }
1241
1242    /// Gets `CustDirectedOrder`, Tag 1029.
1243    pub fn get_cust_directed_order(&self) -> Result<bool, MessageRejectErrorEnum> {
1244        let mut fld = field::CustDirectedOrderField::new(false);
1245        self.message.body.get_field(tag::CUST_DIRECTED_ORDER, &mut fld.0)?;
1246        Ok(fld.value())
1247    }
1248
1249
1250    /// Returns true if `CustDirectedOrder` is present, Tag 1029.
1251    pub fn has_cust_directed_order(&self) -> bool {
1252        self.message.body.has(tag::CUST_DIRECTED_ORDER)
1253    }
1254
1255
1256
1257
1258    /// Sets `CustOrderCapacity`, Tag 582.
1259    pub fn set_cust_order_capacity(&mut self, v: isize) {
1260        self.message.body.set_field(tag::CUST_ORDER_CAPACITY, fixer::fix_int::FIXInt::from(v));
1261    }
1262
1263    /// Gets `CustOrderCapacity`, Tag 582.
1264    pub fn get_cust_order_capacity(&self) -> Result<isize, MessageRejectErrorEnum> {
1265        let mut fld = field::CustOrderCapacityField::new(0);
1266        self.message.body.get_field(tag::CUST_ORDER_CAPACITY, &mut fld.0)?;
1267        Ok(fld.value())
1268    }
1269
1270
1271    /// Returns true if `CustOrderCapacity` is present, Tag 582.
1272    pub fn has_cust_order_capacity(&self) -> bool {
1273        self.message.body.has(tag::CUST_ORDER_CAPACITY)
1274    }
1275
1276
1277
1278
1279    /// Sets `CustOrderHandlingInst`, Tag 1031.
1280    pub fn set_cust_order_handling_inst(&mut self, v: String) {
1281        self.message.body.set_field(tag::CUST_ORDER_HANDLING_INST, FIXString::from(v));
1282    }
1283
1284    /// Gets `CustOrderHandlingInst`, Tag 1031.
1285    pub fn get_cust_order_handling_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1286        let mut fld = field::CustOrderHandlingInstField::new(String::new());
1287        self.message.body.get_field(tag::CUST_ORDER_HANDLING_INST, &mut fld.0)?;
1288        Ok(fld.value().to_string())
1289    }
1290
1291
1292    /// Returns true if `CustOrderHandlingInst` is present, Tag 1031.
1293    pub fn has_cust_order_handling_inst(&self) -> bool {
1294        self.message.body.has(tag::CUST_ORDER_HANDLING_INST)
1295    }
1296
1297
1298
1299
1300    /// Sets `DatedDate`, Tag 873.
1301    pub fn set_dated_date(&mut self, v: String) {
1302        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
1303    }
1304
1305    /// Gets `DatedDate`, Tag 873.
1306    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
1307        let mut fld = field::DatedDateField::new(String::new());
1308        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
1309        Ok(fld.value().to_string())
1310    }
1311
1312
1313    /// Returns true if `DatedDate` is present, Tag 873.
1314    pub fn has_dated_date(&self) -> bool {
1315        self.message.body.has(tag::DATED_DATE)
1316    }
1317
1318
1319
1320
1321    /// Sets `DayAvgPx`, Tag 426.
1322    pub fn set_day_avg_px(&mut self, val: Decimal, scale: i32) {
1323        self.message.body.set_field(tag::DAY_AVG_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1324    }
1325
1326    /// Gets `DayAvgPx`, Tag 426.
1327    pub fn get_day_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1328        let mut fld = field::DayAvgPxField::new(Decimal::ZERO, 0);
1329        self.message.body.get_field(tag::DAY_AVG_PX, &mut fld.0)?;
1330        Ok(fld.value())
1331    }
1332
1333
1334    /// Returns true if `DayAvgPx` is present, Tag 426.
1335    pub fn has_day_avg_px(&self) -> bool {
1336        self.message.body.has(tag::DAY_AVG_PX)
1337    }
1338
1339
1340
1341
1342    /// Sets `DayBookingInst`, Tag 589.
1343    pub fn set_day_booking_inst(&mut self, v: String) {
1344        self.message.body.set_field(tag::DAY_BOOKING_INST, FIXString::from(v));
1345    }
1346
1347    /// Gets `DayBookingInst`, Tag 589.
1348    pub fn get_day_booking_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1349        let mut fld = field::DayBookingInstField::new(String::new());
1350        self.message.body.get_field(tag::DAY_BOOKING_INST, &mut fld.0)?;
1351        Ok(fld.value().to_string())
1352    }
1353
1354
1355    /// Returns true if `DayBookingInst` is present, Tag 589.
1356    pub fn has_day_booking_inst(&self) -> bool {
1357        self.message.body.has(tag::DAY_BOOKING_INST)
1358    }
1359
1360
1361
1362
1363    /// Sets `DayCumQty`, Tag 425.
1364    pub fn set_day_cum_qty(&mut self, val: Decimal, scale: i32) {
1365        self.message.body.set_field(tag::DAY_CUM_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1366    }
1367
1368    /// Gets `DayCumQty`, Tag 425.
1369    pub fn get_day_cum_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1370        let mut fld = field::DayCumQtyField::new(Decimal::ZERO, 0);
1371        self.message.body.get_field(tag::DAY_CUM_QTY, &mut fld.0)?;
1372        Ok(fld.value())
1373    }
1374
1375
1376    /// Returns true if `DayCumQty` is present, Tag 425.
1377    pub fn has_day_cum_qty(&self) -> bool {
1378        self.message.body.has(tag::DAY_CUM_QTY)
1379    }
1380
1381
1382
1383
1384    /// Sets `DayOrderQty`, Tag 424.
1385    pub fn set_day_order_qty(&mut self, val: Decimal, scale: i32) {
1386        self.message.body.set_field(tag::DAY_ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1387    }
1388
1389    /// Gets `DayOrderQty`, Tag 424.
1390    pub fn get_day_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1391        let mut fld = field::DayOrderQtyField::new(Decimal::ZERO, 0);
1392        self.message.body.get_field(tag::DAY_ORDER_QTY, &mut fld.0)?;
1393        Ok(fld.value())
1394    }
1395
1396
1397    /// Returns true if `DayOrderQty` is present, Tag 424.
1398    pub fn has_day_order_qty(&self) -> bool {
1399        self.message.body.has(tag::DAY_ORDER_QTY)
1400    }
1401
1402
1403
1404
1405    /// Sets `DeliveryType`, Tag 919.
1406    pub fn set_delivery_type(&mut self, v: isize) {
1407        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
1408    }
1409
1410    /// Gets `DeliveryType`, Tag 919.
1411    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1412        let mut fld = field::DeliveryTypeField::new(0);
1413        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
1414        Ok(fld.value())
1415    }
1416
1417
1418    /// Returns true if `DeliveryType` is present, Tag 919.
1419    pub fn has_delivery_type(&self) -> bool {
1420        self.message.body.has(tag::DELIVERY_TYPE)
1421    }
1422
1423
1424
1425
1426    /// Sets `Designation`, Tag 494.
1427    pub fn set_designation(&mut self, v: String) {
1428        self.message.body.set_field(tag::DESIGNATION, FIXString::from(v));
1429    }
1430
1431    /// Gets `Designation`, Tag 494.
1432    pub fn get_designation(&self) -> Result<String, MessageRejectErrorEnum> {
1433        let mut fld = field::DesignationField::new(String::new());
1434        self.message.body.get_field(tag::DESIGNATION, &mut fld.0)?;
1435        Ok(fld.value().to_string())
1436    }
1437
1438
1439    /// Returns true if `Designation` is present, Tag 494.
1440    pub fn has_designation(&self) -> bool {
1441        self.message.body.has(tag::DESIGNATION)
1442    }
1443
1444
1445
1446
1447    /// Sets `DetachmentPoint`, Tag 1458.
1448    pub fn set_detachment_point(&mut self, val: Decimal, scale: i32) {
1449        self.message.body.set_field(tag::DETACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1450    }
1451
1452    /// Gets `DetachmentPoint`, Tag 1458.
1453    pub fn get_detachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1454        let mut fld = field::DetachmentPointField::new(Decimal::ZERO, 0);
1455        self.message.body.get_field(tag::DETACHMENT_POINT, &mut fld.0)?;
1456        Ok(fld.value())
1457    }
1458
1459
1460    /// Returns true if `DetachmentPoint` is present, Tag 1458.
1461    pub fn has_detachment_point(&self) -> bool {
1462        self.message.body.has(tag::DETACHMENT_POINT)
1463    }
1464
1465
1466
1467
1468    /// Sets `DiscretionInst`, Tag 388.
1469    pub fn set_discretion_inst(&mut self, v: String) {
1470        self.message.body.set_field(tag::DISCRETION_INST, FIXString::from(v));
1471    }
1472
1473    /// Gets `DiscretionInst`, Tag 388.
1474    pub fn get_discretion_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1475        let mut fld = field::DiscretionInstField::new(String::new());
1476        self.message.body.get_field(tag::DISCRETION_INST, &mut fld.0)?;
1477        Ok(fld.value().to_string())
1478    }
1479
1480
1481    /// Returns true if `DiscretionInst` is present, Tag 388.
1482    pub fn has_discretion_inst(&self) -> bool {
1483        self.message.body.has(tag::DISCRETION_INST)
1484    }
1485
1486
1487
1488
1489    /// Sets `DiscretionLimitType`, Tag 843.
1490    pub fn set_discretion_limit_type(&mut self, v: isize) {
1491        self.message.body.set_field(tag::DISCRETION_LIMIT_TYPE, fixer::fix_int::FIXInt::from(v));
1492    }
1493
1494    /// Gets `DiscretionLimitType`, Tag 843.
1495    pub fn get_discretion_limit_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1496        let mut fld = field::DiscretionLimitTypeField::new(0);
1497        self.message.body.get_field(tag::DISCRETION_LIMIT_TYPE, &mut fld.0)?;
1498        Ok(fld.value())
1499    }
1500
1501
1502    /// Returns true if `DiscretionLimitType` is present, Tag 843.
1503    pub fn has_discretion_limit_type(&self) -> bool {
1504        self.message.body.has(tag::DISCRETION_LIMIT_TYPE)
1505    }
1506
1507
1508
1509
1510    /// Sets `DiscretionMoveType`, Tag 841.
1511    pub fn set_discretion_move_type(&mut self, v: isize) {
1512        self.message.body.set_field(tag::DISCRETION_MOVE_TYPE, fixer::fix_int::FIXInt::from(v));
1513    }
1514
1515    /// Gets `DiscretionMoveType`, Tag 841.
1516    pub fn get_discretion_move_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1517        let mut fld = field::DiscretionMoveTypeField::new(0);
1518        self.message.body.get_field(tag::DISCRETION_MOVE_TYPE, &mut fld.0)?;
1519        Ok(fld.value())
1520    }
1521
1522
1523    /// Returns true if `DiscretionMoveType` is present, Tag 841.
1524    pub fn has_discretion_move_type(&self) -> bool {
1525        self.message.body.has(tag::DISCRETION_MOVE_TYPE)
1526    }
1527
1528
1529
1530
1531    /// Sets `DiscretionOffsetType`, Tag 842.
1532    pub fn set_discretion_offset_type(&mut self, v: isize) {
1533        self.message.body.set_field(tag::DISCRETION_OFFSET_TYPE, fixer::fix_int::FIXInt::from(v));
1534    }
1535
1536    /// Gets `DiscretionOffsetType`, Tag 842.
1537    pub fn get_discretion_offset_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1538        let mut fld = field::DiscretionOffsetTypeField::new(0);
1539        self.message.body.get_field(tag::DISCRETION_OFFSET_TYPE, &mut fld.0)?;
1540        Ok(fld.value())
1541    }
1542
1543
1544    /// Returns true if `DiscretionOffsetType` is present, Tag 842.
1545    pub fn has_discretion_offset_type(&self) -> bool {
1546        self.message.body.has(tag::DISCRETION_OFFSET_TYPE)
1547    }
1548
1549
1550
1551
1552    /// Sets `DiscretionOffsetValue`, Tag 389.
1553    pub fn set_discretion_offset_value(&mut self, val: Decimal, scale: i32) {
1554        self.message.body.set_field(tag::DISCRETION_OFFSET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1555    }
1556
1557    /// Gets `DiscretionOffsetValue`, Tag 389.
1558    pub fn get_discretion_offset_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1559        let mut fld = field::DiscretionOffsetValueField::new(Decimal::ZERO, 0);
1560        self.message.body.get_field(tag::DISCRETION_OFFSET_VALUE, &mut fld.0)?;
1561        Ok(fld.value())
1562    }
1563
1564
1565    /// Returns true if `DiscretionOffsetValue` is present, Tag 389.
1566    pub fn has_discretion_offset_value(&self) -> bool {
1567        self.message.body.has(tag::DISCRETION_OFFSET_VALUE)
1568    }
1569
1570
1571
1572
1573    /// Sets `DiscretionPrice`, Tag 845.
1574    pub fn set_discretion_price(&mut self, val: Decimal, scale: i32) {
1575        self.message.body.set_field(tag::DISCRETION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1576    }
1577
1578    /// Gets `DiscretionPrice`, Tag 845.
1579    pub fn get_discretion_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1580        let mut fld = field::DiscretionPriceField::new(Decimal::ZERO, 0);
1581        self.message.body.get_field(tag::DISCRETION_PRICE, &mut fld.0)?;
1582        Ok(fld.value())
1583    }
1584
1585
1586    /// Returns true if `DiscretionPrice` is present, Tag 845.
1587    pub fn has_discretion_price(&self) -> bool {
1588        self.message.body.has(tag::DISCRETION_PRICE)
1589    }
1590
1591
1592
1593
1594    /// Sets `DiscretionRoundDirection`, Tag 844.
1595    pub fn set_discretion_round_direction(&mut self, v: isize) {
1596        self.message.body.set_field(tag::DISCRETION_ROUND_DIRECTION, fixer::fix_int::FIXInt::from(v));
1597    }
1598
1599    /// Gets `DiscretionRoundDirection`, Tag 844.
1600    pub fn get_discretion_round_direction(&self) -> Result<isize, MessageRejectErrorEnum> {
1601        let mut fld = field::DiscretionRoundDirectionField::new(0);
1602        self.message.body.get_field(tag::DISCRETION_ROUND_DIRECTION, &mut fld.0)?;
1603        Ok(fld.value())
1604    }
1605
1606
1607    /// Returns true if `DiscretionRoundDirection` is present, Tag 844.
1608    pub fn has_discretion_round_direction(&self) -> bool {
1609        self.message.body.has(tag::DISCRETION_ROUND_DIRECTION)
1610    }
1611
1612
1613
1614
1615    /// Sets `DiscretionScope`, Tag 846.
1616    pub fn set_discretion_scope(&mut self, v: isize) {
1617        self.message.body.set_field(tag::DISCRETION_SCOPE, fixer::fix_int::FIXInt::from(v));
1618    }
1619
1620    /// Gets `DiscretionScope`, Tag 846.
1621    pub fn get_discretion_scope(&self) -> Result<isize, MessageRejectErrorEnum> {
1622        let mut fld = field::DiscretionScopeField::new(0);
1623        self.message.body.get_field(tag::DISCRETION_SCOPE, &mut fld.0)?;
1624        Ok(fld.value())
1625    }
1626
1627
1628    /// Returns true if `DiscretionScope` is present, Tag 846.
1629    pub fn has_discretion_scope(&self) -> bool {
1630        self.message.body.has(tag::DISCRETION_SCOPE)
1631    }
1632
1633
1634
1635
1636    /// Sets `DisplayHighQty`, Tag 1086.
1637    pub fn set_display_high_qty(&mut self, val: Decimal, scale: i32) {
1638        self.message.body.set_field(tag::DISPLAY_HIGH_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1639    }
1640
1641    /// Gets `DisplayHighQty`, Tag 1086.
1642    pub fn get_display_high_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1643        let mut fld = field::DisplayHighQtyField::new(Decimal::ZERO, 0);
1644        self.message.body.get_field(tag::DISPLAY_HIGH_QTY, &mut fld.0)?;
1645        Ok(fld.value())
1646    }
1647
1648
1649    /// Returns true if `DisplayHighQty` is present, Tag 1086.
1650    pub fn has_display_high_qty(&self) -> bool {
1651        self.message.body.has(tag::DISPLAY_HIGH_QTY)
1652    }
1653
1654
1655
1656
1657    /// Sets `DisplayLowQty`, Tag 1085.
1658    pub fn set_display_low_qty(&mut self, val: Decimal, scale: i32) {
1659        self.message.body.set_field(tag::DISPLAY_LOW_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1660    }
1661
1662    /// Gets `DisplayLowQty`, Tag 1085.
1663    pub fn get_display_low_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1664        let mut fld = field::DisplayLowQtyField::new(Decimal::ZERO, 0);
1665        self.message.body.get_field(tag::DISPLAY_LOW_QTY, &mut fld.0)?;
1666        Ok(fld.value())
1667    }
1668
1669
1670    /// Returns true if `DisplayLowQty` is present, Tag 1085.
1671    pub fn has_display_low_qty(&self) -> bool {
1672        self.message.body.has(tag::DISPLAY_LOW_QTY)
1673    }
1674
1675
1676
1677
1678    /// Sets `DisplayMethod`, Tag 1084.
1679    pub fn set_display_method(&mut self, v: String) {
1680        self.message.body.set_field(tag::DISPLAY_METHOD, FIXString::from(v));
1681    }
1682
1683    /// Gets `DisplayMethod`, Tag 1084.
1684    pub fn get_display_method(&self) -> Result<String, MessageRejectErrorEnum> {
1685        let mut fld = field::DisplayMethodField::new(String::new());
1686        self.message.body.get_field(tag::DISPLAY_METHOD, &mut fld.0)?;
1687        Ok(fld.value().to_string())
1688    }
1689
1690
1691    /// Returns true if `DisplayMethod` is present, Tag 1084.
1692    pub fn has_display_method(&self) -> bool {
1693        self.message.body.has(tag::DISPLAY_METHOD)
1694    }
1695
1696
1697
1698
1699    /// Sets `DisplayMinIncr`, Tag 1087.
1700    pub fn set_display_min_incr(&mut self, val: Decimal, scale: i32) {
1701        self.message.body.set_field(tag::DISPLAY_MIN_INCR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1702    }
1703
1704    /// Gets `DisplayMinIncr`, Tag 1087.
1705    pub fn get_display_min_incr(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1706        let mut fld = field::DisplayMinIncrField::new(Decimal::ZERO, 0);
1707        self.message.body.get_field(tag::DISPLAY_MIN_INCR, &mut fld.0)?;
1708        Ok(fld.value())
1709    }
1710
1711
1712    /// Returns true if `DisplayMinIncr` is present, Tag 1087.
1713    pub fn has_display_min_incr(&self) -> bool {
1714        self.message.body.has(tag::DISPLAY_MIN_INCR)
1715    }
1716
1717
1718
1719
1720    /// Sets `DisplayQty`, Tag 1138.
1721    pub fn set_display_qty(&mut self, val: Decimal, scale: i32) {
1722        self.message.body.set_field(tag::DISPLAY_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1723    }
1724
1725    /// Gets `DisplayQty`, Tag 1138.
1726    pub fn get_display_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1727        let mut fld = field::DisplayQtyField::new(Decimal::ZERO, 0);
1728        self.message.body.get_field(tag::DISPLAY_QTY, &mut fld.0)?;
1729        Ok(fld.value())
1730    }
1731
1732
1733    /// Returns true if `DisplayQty` is present, Tag 1138.
1734    pub fn has_display_qty(&self) -> bool {
1735        self.message.body.has(tag::DISPLAY_QTY)
1736    }
1737
1738
1739
1740
1741    /// Sets `DisplayWhen`, Tag 1083.
1742    pub fn set_display_when(&mut self, v: String) {
1743        self.message.body.set_field(tag::DISPLAY_WHEN, FIXString::from(v));
1744    }
1745
1746    /// Gets `DisplayWhen`, Tag 1083.
1747    pub fn get_display_when(&self) -> Result<String, MessageRejectErrorEnum> {
1748        let mut fld = field::DisplayWhenField::new(String::new());
1749        self.message.body.get_field(tag::DISPLAY_WHEN, &mut fld.0)?;
1750        Ok(fld.value().to_string())
1751    }
1752
1753
1754    /// Returns true if `DisplayWhen` is present, Tag 1083.
1755    pub fn has_display_when(&self) -> bool {
1756        self.message.body.has(tag::DISPLAY_WHEN)
1757    }
1758
1759
1760
1761
1762    /// Sets `DividendYield`, Tag 1380.
1763    pub fn set_dividend_yield(&mut self, val: Decimal, scale: i32) {
1764        self.message.body.set_field(tag::DIVIDEND_YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1765    }
1766
1767    /// Gets `DividendYield`, Tag 1380.
1768    pub fn get_dividend_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1769        let mut fld = field::DividendYieldField::new(Decimal::ZERO, 0);
1770        self.message.body.get_field(tag::DIVIDEND_YIELD, &mut fld.0)?;
1771        Ok(fld.value())
1772    }
1773
1774
1775    /// Returns true if `DividendYield` is present, Tag 1380.
1776    pub fn has_dividend_yield(&self) -> bool {
1777        self.message.body.has(tag::DIVIDEND_YIELD)
1778    }
1779
1780
1781
1782
1783    /// Sets `EffectiveTime`, Tag 168.
1784    pub fn set_effective_time(&mut self, v: Timestamp) {
1785        self.message.body.set_field(tag::EFFECTIVE_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
1786            time: v,
1787            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
1788        });
1789    }
1790
1791    /// Gets `EffectiveTime`, Tag 168.
1792    pub fn get_effective_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
1793        let mut fld = field::EffectiveTimeField::new(Timestamp::UNIX_EPOCH);
1794        self.message.body.get_field(tag::EFFECTIVE_TIME, &mut fld.0)?;
1795        Ok(fld.value())
1796    }
1797
1798
1799    /// Returns true if `EffectiveTime` is present, Tag 168.
1800    pub fn has_effective_time(&self) -> bool {
1801        self.message.body.has(tag::EFFECTIVE_TIME)
1802    }
1803
1804
1805
1806
1807    /// Sets `EncodedIssuer`, Tag 349.
1808    pub fn set_encoded_issuer(&mut self, v: String) {
1809        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
1810    }
1811
1812    /// Gets `EncodedIssuer`, Tag 349.
1813    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1814        let mut fld = field::EncodedIssuerField::new(String::new());
1815        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
1816        Ok(fld.value().to_string())
1817    }
1818
1819
1820    /// Returns true if `EncodedIssuer` is present, Tag 349.
1821    pub fn has_encoded_issuer(&self) -> bool {
1822        self.message.body.has(tag::ENCODED_ISSUER)
1823    }
1824
1825
1826
1827
1828    /// Sets `EncodedIssuerLen`, Tag 348.
1829    pub fn set_encoded_issuer_len(&mut self, v: isize) {
1830        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
1831    }
1832
1833    /// Gets `EncodedIssuerLen`, Tag 348.
1834    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1835        let mut fld = field::EncodedIssuerLenField::new(0);
1836        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
1837        Ok(fld.value())
1838    }
1839
1840
1841    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
1842    pub fn has_encoded_issuer_len(&self) -> bool {
1843        self.message.body.has(tag::ENCODED_ISSUER_LEN)
1844    }
1845
1846
1847
1848
1849    /// Sets `EncodedSecurityDesc`, Tag 351.
1850    pub fn set_encoded_security_desc(&mut self, v: String) {
1851        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
1852    }
1853
1854    /// Gets `EncodedSecurityDesc`, Tag 351.
1855    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1856        let mut fld = field::EncodedSecurityDescField::new(String::new());
1857        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
1858        Ok(fld.value().to_string())
1859    }
1860
1861
1862    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
1863    pub fn has_encoded_security_desc(&self) -> bool {
1864        self.message.body.has(tag::ENCODED_SECURITY_DESC)
1865    }
1866
1867
1868
1869
1870    /// Sets `EncodedSecurityDescLen`, Tag 350.
1871    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
1872        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
1873    }
1874
1875    /// Gets `EncodedSecurityDescLen`, Tag 350.
1876    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1877        let mut fld = field::EncodedSecurityDescLenField::new(0);
1878        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
1879        Ok(fld.value())
1880    }
1881
1882
1883    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
1884    pub fn has_encoded_security_desc_len(&self) -> bool {
1885        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
1886    }
1887
1888
1889
1890
1891    /// Sets `EncodedText`, Tag 355.
1892    pub fn set_encoded_text(&mut self, v: String) {
1893        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
1894    }
1895
1896    /// Gets `EncodedText`, Tag 355.
1897    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
1898        let mut fld = field::EncodedTextField::new(String::new());
1899        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
1900        Ok(fld.value().to_string())
1901    }
1902
1903
1904    /// Returns true if `EncodedText` is present, Tag 355.
1905    pub fn has_encoded_text(&self) -> bool {
1906        self.message.body.has(tag::ENCODED_TEXT)
1907    }
1908
1909
1910
1911
1912    /// Sets `EncodedTextLen`, Tag 354.
1913    pub fn set_encoded_text_len(&mut self, v: isize) {
1914        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
1915    }
1916
1917    /// Gets `EncodedTextLen`, Tag 354.
1918    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1919        let mut fld = field::EncodedTextLenField::new(0);
1920        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
1921        Ok(fld.value())
1922    }
1923
1924
1925    /// Returns true if `EncodedTextLen` is present, Tag 354.
1926    pub fn has_encoded_text_len(&self) -> bool {
1927        self.message.body.has(tag::ENCODED_TEXT_LEN)
1928    }
1929
1930
1931
1932
1933    /// Sets `EndAccruedInterestAmt`, Tag 920.
1934    pub fn set_end_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
1935        self.message.body.set_field(tag::END_ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1936    }
1937
1938    /// Gets `EndAccruedInterestAmt`, Tag 920.
1939    pub fn get_end_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1940        let mut fld = field::EndAccruedInterestAmtField::new(Decimal::ZERO, 0);
1941        self.message.body.get_field(tag::END_ACCRUED_INTEREST_AMT, &mut fld.0)?;
1942        Ok(fld.value())
1943    }
1944
1945
1946    /// Returns true if `EndAccruedInterestAmt` is present, Tag 920.
1947    pub fn has_end_accrued_interest_amt(&self) -> bool {
1948        self.message.body.has(tag::END_ACCRUED_INTEREST_AMT)
1949    }
1950
1951
1952
1953
1954    /// Sets `EndCash`, Tag 922.
1955    pub fn set_end_cash(&mut self, val: Decimal, scale: i32) {
1956        self.message.body.set_field(tag::END_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1957    }
1958
1959    /// Gets `EndCash`, Tag 922.
1960    pub fn get_end_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1961        let mut fld = field::EndCashField::new(Decimal::ZERO, 0);
1962        self.message.body.get_field(tag::END_CASH, &mut fld.0)?;
1963        Ok(fld.value())
1964    }
1965
1966
1967    /// Returns true if `EndCash` is present, Tag 922.
1968    pub fn has_end_cash(&self) -> bool {
1969        self.message.body.has(tag::END_CASH)
1970    }
1971
1972
1973
1974
1975    /// Sets `EndDate`, Tag 917.
1976    pub fn set_end_date(&mut self, v: String) {
1977        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
1978    }
1979
1980    /// Gets `EndDate`, Tag 917.
1981    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
1982        let mut fld = field::EndDateField::new(String::new());
1983        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
1984        Ok(fld.value().to_string())
1985    }
1986
1987
1988    /// Returns true if `EndDate` is present, Tag 917.
1989    pub fn has_end_date(&self) -> bool {
1990        self.message.body.has(tag::END_DATE)
1991    }
1992
1993
1994
1995
1996    /// Sets `ExDate`, Tag 230.
1997    pub fn set_ex_date(&mut self, v: String) {
1998        self.message.body.set_field(tag::EX_DATE, FIXString::from(v));
1999    }
2000
2001    /// Gets `ExDate`, Tag 230.
2002    pub fn get_ex_date(&self) -> Result<String, MessageRejectErrorEnum> {
2003        let mut fld = field::ExDateField::new(String::new());
2004        self.message.body.get_field(tag::EX_DATE, &mut fld.0)?;
2005        Ok(fld.value().to_string())
2006    }
2007
2008
2009    /// Returns true if `ExDate` is present, Tag 230.
2010    pub fn has_ex_date(&self) -> bool {
2011        self.message.body.has(tag::EX_DATE)
2012    }
2013
2014
2015
2016
2017    /// Sets `ExecID`, Tag 17.
2018    pub fn set_exec_id(&mut self, v: String) {
2019        self.message.body.set_field(tag::EXEC_ID, FIXString::from(v));
2020    }
2021
2022    /// Gets `ExecID`, Tag 17.
2023    pub fn get_exec_id(&self) -> Result<String, MessageRejectErrorEnum> {
2024        let mut fld = field::ExecIDField::new(String::new());
2025        self.message.body.get_field(tag::EXEC_ID, &mut fld.0)?;
2026        Ok(fld.value().to_string())
2027    }
2028
2029
2030    /// Returns true if `ExecID` is present, Tag 17.
2031    pub fn has_exec_id(&self) -> bool {
2032        self.message.body.has(tag::EXEC_ID)
2033    }
2034
2035
2036
2037
2038    /// Sets `ExecInst`, Tag 18.
2039    pub fn set_exec_inst(&mut self, v: String) {
2040        self.message.body.set_field(tag::EXEC_INST, FIXString::from(v));
2041    }
2042
2043    /// Gets `ExecInst`, Tag 18.
2044    pub fn get_exec_inst(&self) -> Result<String, MessageRejectErrorEnum> {
2045        let mut fld = field::ExecInstField::new(String::new());
2046        self.message.body.get_field(tag::EXEC_INST, &mut fld.0)?;
2047        Ok(fld.value().to_string())
2048    }
2049
2050
2051    /// Returns true if `ExecInst` is present, Tag 18.
2052    pub fn has_exec_inst(&self) -> bool {
2053        self.message.body.has(tag::EXEC_INST)
2054    }
2055
2056
2057
2058
2059    /// Sets `ExecPriceAdjustment`, Tag 485.
2060    pub fn set_exec_price_adjustment(&mut self, val: Decimal, scale: i32) {
2061        self.message.body.set_field(tag::EXEC_PRICE_ADJUSTMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2062    }
2063
2064    /// Gets `ExecPriceAdjustment`, Tag 485.
2065    pub fn get_exec_price_adjustment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2066        let mut fld = field::ExecPriceAdjustmentField::new(Decimal::ZERO, 0);
2067        self.message.body.get_field(tag::EXEC_PRICE_ADJUSTMENT, &mut fld.0)?;
2068        Ok(fld.value())
2069    }
2070
2071
2072    /// Returns true if `ExecPriceAdjustment` is present, Tag 485.
2073    pub fn has_exec_price_adjustment(&self) -> bool {
2074        self.message.body.has(tag::EXEC_PRICE_ADJUSTMENT)
2075    }
2076
2077
2078
2079
2080    /// Sets `ExecPriceType`, Tag 484.
2081    pub fn set_exec_price_type(&mut self, v: String) {
2082        self.message.body.set_field(tag::EXEC_PRICE_TYPE, FIXString::from(v));
2083    }
2084
2085    /// Gets `ExecPriceType`, Tag 484.
2086    pub fn get_exec_price_type(&self) -> Result<String, MessageRejectErrorEnum> {
2087        let mut fld = field::ExecPriceTypeField::new(String::new());
2088        self.message.body.get_field(tag::EXEC_PRICE_TYPE, &mut fld.0)?;
2089        Ok(fld.value().to_string())
2090    }
2091
2092
2093    /// Returns true if `ExecPriceType` is present, Tag 484.
2094    pub fn has_exec_price_type(&self) -> bool {
2095        self.message.body.has(tag::EXEC_PRICE_TYPE)
2096    }
2097
2098
2099
2100
2101    /// Sets `ExecRefID`, Tag 19.
2102    pub fn set_exec_ref_id(&mut self, v: String) {
2103        self.message.body.set_field(tag::EXEC_REF_ID, FIXString::from(v));
2104    }
2105
2106    /// Gets `ExecRefID`, Tag 19.
2107    pub fn get_exec_ref_id(&self) -> Result<String, MessageRejectErrorEnum> {
2108        let mut fld = field::ExecRefIDField::new(String::new());
2109        self.message.body.get_field(tag::EXEC_REF_ID, &mut fld.0)?;
2110        Ok(fld.value().to_string())
2111    }
2112
2113
2114    /// Returns true if `ExecRefID` is present, Tag 19.
2115    pub fn has_exec_ref_id(&self) -> bool {
2116        self.message.body.has(tag::EXEC_REF_ID)
2117    }
2118
2119
2120
2121
2122    /// Sets `ExecRestatementReason`, Tag 378.
2123    pub fn set_exec_restatement_reason(&mut self, v: isize) {
2124        self.message.body.set_field(tag::EXEC_RESTATEMENT_REASON, fixer::fix_int::FIXInt::from(v));
2125    }
2126
2127    /// Gets `ExecRestatementReason`, Tag 378.
2128    pub fn get_exec_restatement_reason(&self) -> Result<isize, MessageRejectErrorEnum> {
2129        let mut fld = field::ExecRestatementReasonField::new(0);
2130        self.message.body.get_field(tag::EXEC_RESTATEMENT_REASON, &mut fld.0)?;
2131        Ok(fld.value())
2132    }
2133
2134
2135    /// Returns true if `ExecRestatementReason` is present, Tag 378.
2136    pub fn has_exec_restatement_reason(&self) -> bool {
2137        self.message.body.has(tag::EXEC_RESTATEMENT_REASON)
2138    }
2139
2140
2141
2142
2143    /// Sets `ExecType`, Tag 150.
2144    pub fn set_exec_type(&mut self, v: String) {
2145        self.message.body.set_field(tag::EXEC_TYPE, FIXString::from(v));
2146    }
2147
2148    /// Gets `ExecType`, Tag 150.
2149    pub fn get_exec_type(&self) -> Result<String, MessageRejectErrorEnum> {
2150        let mut fld = field::ExecTypeField::new(String::new());
2151        self.message.body.get_field(tag::EXEC_TYPE, &mut fld.0)?;
2152        Ok(fld.value().to_string())
2153    }
2154
2155
2156    /// Returns true if `ExecType` is present, Tag 150.
2157    pub fn has_exec_type(&self) -> bool {
2158        self.message.body.has(tag::EXEC_TYPE)
2159    }
2160
2161
2162
2163
2164    /// Sets `ExecValuationPoint`, Tag 515.
2165    pub fn set_exec_valuation_point(&mut self, v: Timestamp) {
2166        self.message.body.set_field(tag::EXEC_VALUATION_POINT, fixer::fix_utc_timestamp::FIXUTCTimestamp {
2167            time: v,
2168            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
2169        });
2170    }
2171
2172    /// Gets `ExecValuationPoint`, Tag 515.
2173    pub fn get_exec_valuation_point(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
2174        let mut fld = field::ExecValuationPointField::new(Timestamp::UNIX_EPOCH);
2175        self.message.body.get_field(tag::EXEC_VALUATION_POINT, &mut fld.0)?;
2176        Ok(fld.value())
2177    }
2178
2179
2180    /// Returns true if `ExecValuationPoint` is present, Tag 515.
2181    pub fn has_exec_valuation_point(&self) -> bool {
2182        self.message.body.has(tag::EXEC_VALUATION_POINT)
2183    }
2184
2185
2186
2187
2188    /// Sets `ExerciseStyle`, Tag 1194.
2189    pub fn set_exercise_style(&mut self, v: isize) {
2190        self.message.body.set_field(tag::EXERCISE_STYLE, fixer::fix_int::FIXInt::from(v));
2191    }
2192
2193    /// Gets `ExerciseStyle`, Tag 1194.
2194    pub fn get_exercise_style(&self) -> Result<isize, MessageRejectErrorEnum> {
2195        let mut fld = field::ExerciseStyleField::new(0);
2196        self.message.body.get_field(tag::EXERCISE_STYLE, &mut fld.0)?;
2197        Ok(fld.value())
2198    }
2199
2200
2201    /// Returns true if `ExerciseStyle` is present, Tag 1194.
2202    pub fn has_exercise_style(&self) -> bool {
2203        self.message.body.has(tag::EXERCISE_STYLE)
2204    }
2205
2206
2207
2208
2209    /// Sets `ExpireDate`, Tag 432.
2210    pub fn set_expire_date(&mut self, v: String) {
2211        self.message.body.set_field(tag::EXPIRE_DATE, FIXString::from(v));
2212    }
2213
2214    /// Gets `ExpireDate`, Tag 432.
2215    pub fn get_expire_date(&self) -> Result<String, MessageRejectErrorEnum> {
2216        let mut fld = field::ExpireDateField::new(String::new());
2217        self.message.body.get_field(tag::EXPIRE_DATE, &mut fld.0)?;
2218        Ok(fld.value().to_string())
2219    }
2220
2221
2222    /// Returns true if `ExpireDate` is present, Tag 432.
2223    pub fn has_expire_date(&self) -> bool {
2224        self.message.body.has(tag::EXPIRE_DATE)
2225    }
2226
2227
2228
2229
2230    /// Sets `ExpireTime`, Tag 126.
2231    pub fn set_expire_time(&mut self, v: Timestamp) {
2232        self.message.body.set_field(tag::EXPIRE_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
2233            time: v,
2234            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
2235        });
2236    }
2237
2238    /// Gets `ExpireTime`, Tag 126.
2239    pub fn get_expire_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
2240        let mut fld = field::ExpireTimeField::new(Timestamp::UNIX_EPOCH);
2241        self.message.body.get_field(tag::EXPIRE_TIME, &mut fld.0)?;
2242        Ok(fld.value())
2243    }
2244
2245
2246    /// Returns true if `ExpireTime` is present, Tag 126.
2247    pub fn has_expire_time(&self) -> bool {
2248        self.message.body.has(tag::EXPIRE_TIME)
2249    }
2250
2251
2252
2253
2254    /// Sets `Factor`, Tag 228.
2255    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
2256        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2257    }
2258
2259    /// Gets `Factor`, Tag 228.
2260    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2261        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
2262        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
2263        Ok(fld.value())
2264    }
2265
2266
2267    /// Returns true if `Factor` is present, Tag 228.
2268    pub fn has_factor(&self) -> bool {
2269        self.message.body.has(tag::FACTOR)
2270    }
2271
2272
2273
2274
2275    /// Sets `FlexProductEligibilityIndicator`, Tag 1242.
2276    pub fn set_flex_product_eligibility_indicator(&mut self, v: bool) {
2277        self.message.body.set_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
2278    }
2279
2280    /// Gets `FlexProductEligibilityIndicator`, Tag 1242.
2281    pub fn get_flex_product_eligibility_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
2282        let mut fld = field::FlexProductEligibilityIndicatorField::new(false);
2283        self.message.body.get_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, &mut fld.0)?;
2284        Ok(fld.value())
2285    }
2286
2287
2288    /// Returns true if `FlexProductEligibilityIndicator` is present, Tag 1242.
2289    pub fn has_flex_product_eligibility_indicator(&self) -> bool {
2290        self.message.body.has(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR)
2291    }
2292
2293
2294
2295
2296    /// Sets `FlexibleIndicator`, Tag 1244.
2297    pub fn set_flexible_indicator(&mut self, v: bool) {
2298        self.message.body.set_field(tag::FLEXIBLE_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
2299    }
2300
2301    /// Gets `FlexibleIndicator`, Tag 1244.
2302    pub fn get_flexible_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
2303        let mut fld = field::FlexibleIndicatorField::new(false);
2304        self.message.body.get_field(tag::FLEXIBLE_INDICATOR, &mut fld.0)?;
2305        Ok(fld.value())
2306    }
2307
2308
2309    /// Returns true if `FlexibleIndicator` is present, Tag 1244.
2310    pub fn has_flexible_indicator(&self) -> bool {
2311        self.message.body.has(tag::FLEXIBLE_INDICATOR)
2312    }
2313
2314
2315
2316
2317    /// Sets `FloorPrice`, Tag 1200.
2318    pub fn set_floor_price(&mut self, val: Decimal, scale: i32) {
2319        self.message.body.set_field(tag::FLOOR_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2320    }
2321
2322    /// Gets `FloorPrice`, Tag 1200.
2323    pub fn get_floor_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2324        let mut fld = field::FloorPriceField::new(Decimal::ZERO, 0);
2325        self.message.body.get_field(tag::FLOOR_PRICE, &mut fld.0)?;
2326        Ok(fld.value())
2327    }
2328
2329
2330    /// Returns true if `FloorPrice` is present, Tag 1200.
2331    pub fn has_floor_price(&self) -> bool {
2332        self.message.body.has(tag::FLOOR_PRICE)
2333    }
2334
2335
2336
2337
2338    /// Sets `FlowScheduleType`, Tag 1439.
2339    pub fn set_flow_schedule_type(&mut self, v: isize) {
2340        self.message.body.set_field(tag::FLOW_SCHEDULE_TYPE, fixer::fix_int::FIXInt::from(v));
2341    }
2342
2343    /// Gets `FlowScheduleType`, Tag 1439.
2344    pub fn get_flow_schedule_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2345        let mut fld = field::FlowScheduleTypeField::new(0);
2346        self.message.body.get_field(tag::FLOW_SCHEDULE_TYPE, &mut fld.0)?;
2347        Ok(fld.value())
2348    }
2349
2350
2351    /// Returns true if `FlowScheduleType` is present, Tag 1439.
2352    pub fn has_flow_schedule_type(&self) -> bool {
2353        self.message.body.has(tag::FLOW_SCHEDULE_TYPE)
2354    }
2355
2356
2357
2358
2359    /// Sets `FundRenewWaiv`, Tag 497.
2360    pub fn set_fund_renew_waiv(&mut self, v: String) {
2361        self.message.body.set_field(tag::FUND_RENEW_WAIV, FIXString::from(v));
2362    }
2363
2364    /// Gets `FundRenewWaiv`, Tag 497.
2365    pub fn get_fund_renew_waiv(&self) -> Result<String, MessageRejectErrorEnum> {
2366        let mut fld = field::FundRenewWaivField::new(String::new());
2367        self.message.body.get_field(tag::FUND_RENEW_WAIV, &mut fld.0)?;
2368        Ok(fld.value().to_string())
2369    }
2370
2371
2372    /// Returns true if `FundRenewWaiv` is present, Tag 497.
2373    pub fn has_fund_renew_waiv(&self) -> bool {
2374        self.message.body.has(tag::FUND_RENEW_WAIV)
2375    }
2376
2377
2378
2379
2380    /// Sets `GTBookingInst`, Tag 427.
2381    pub fn set_gt_booking_inst(&mut self, v: isize) {
2382        self.message.body.set_field(tag::GT_BOOKING_INST, fixer::fix_int::FIXInt::from(v));
2383    }
2384
2385    /// Gets `GTBookingInst`, Tag 427.
2386    pub fn get_gt_booking_inst(&self) -> Result<isize, MessageRejectErrorEnum> {
2387        let mut fld = field::GTBookingInstField::new(0);
2388        self.message.body.get_field(tag::GT_BOOKING_INST, &mut fld.0)?;
2389        Ok(fld.value())
2390    }
2391
2392
2393    /// Returns true if `GTBookingInst` is present, Tag 427.
2394    pub fn has_gt_booking_inst(&self) -> bool {
2395        self.message.body.has(tag::GT_BOOKING_INST)
2396    }
2397
2398
2399
2400
2401    /// Sets `GrossTradeAmt`, Tag 381.
2402    pub fn set_gross_trade_amt(&mut self, val: Decimal, scale: i32) {
2403        self.message.body.set_field(tag::GROSS_TRADE_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2404    }
2405
2406    /// Gets `GrossTradeAmt`, Tag 381.
2407    pub fn get_gross_trade_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2408        let mut fld = field::GrossTradeAmtField::new(Decimal::ZERO, 0);
2409        self.message.body.get_field(tag::GROSS_TRADE_AMT, &mut fld.0)?;
2410        Ok(fld.value())
2411    }
2412
2413
2414    /// Returns true if `GrossTradeAmt` is present, Tag 381.
2415    pub fn has_gross_trade_amt(&self) -> bool {
2416        self.message.body.has(tag::GROSS_TRADE_AMT)
2417    }
2418
2419
2420
2421
2422    /// Sets `HandlInst`, Tag 21.
2423    pub fn set_handl_inst(&mut self, v: String) {
2424        self.message.body.set_field(tag::HANDL_INST, FIXString::from(v));
2425    }
2426
2427    /// Gets `HandlInst`, Tag 21.
2428    pub fn get_handl_inst(&self) -> Result<String, MessageRejectErrorEnum> {
2429        let mut fld = field::HandlInstField::new(String::new());
2430        self.message.body.get_field(tag::HANDL_INST, &mut fld.0)?;
2431        Ok(fld.value().to_string())
2432    }
2433
2434
2435    /// Returns true if `HandlInst` is present, Tag 21.
2436    pub fn has_handl_inst(&self) -> bool {
2437        self.message.body.has(tag::HANDL_INST)
2438    }
2439
2440
2441
2442
2443    /// Sets `HostCrossID`, Tag 961.
2444    pub fn set_host_cross_id(&mut self, v: String) {
2445        self.message.body.set_field(tag::HOST_CROSS_ID, FIXString::from(v));
2446    }
2447
2448    /// Gets `HostCrossID`, Tag 961.
2449    pub fn get_host_cross_id(&self) -> Result<String, MessageRejectErrorEnum> {
2450        let mut fld = field::HostCrossIDField::new(String::new());
2451        self.message.body.get_field(tag::HOST_CROSS_ID, &mut fld.0)?;
2452        Ok(fld.value().to_string())
2453    }
2454
2455
2456    /// Returns true if `HostCrossID` is present, Tag 961.
2457    pub fn has_host_cross_id(&self) -> bool {
2458        self.message.body.has(tag::HOST_CROSS_ID)
2459    }
2460
2461
2462
2463
2464    /// Sets `InstrRegistry`, Tag 543.
2465    pub fn set_instr_registry(&mut self, v: String) {
2466        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
2467    }
2468
2469    /// Gets `InstrRegistry`, Tag 543.
2470    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
2471        let mut fld = field::InstrRegistryField::new(String::new());
2472        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
2473        Ok(fld.value().to_string())
2474    }
2475
2476
2477    /// Returns true if `InstrRegistry` is present, Tag 543.
2478    pub fn has_instr_registry(&self) -> bool {
2479        self.message.body.has(tag::INSTR_REGISTRY)
2480    }
2481
2482
2483
2484
2485    /// Sets `InstrmtAssignmentMethod`, Tag 1049.
2486    pub fn set_instrmt_assignment_method(&mut self, v: String) {
2487        self.message.body.set_field(tag::INSTRMT_ASSIGNMENT_METHOD, FIXString::from(v));
2488    }
2489
2490    /// Gets `InstrmtAssignmentMethod`, Tag 1049.
2491    pub fn get_instrmt_assignment_method(&self) -> Result<String, MessageRejectErrorEnum> {
2492        let mut fld = field::InstrmtAssignmentMethodField::new(String::new());
2493        self.message.body.get_field(tag::INSTRMT_ASSIGNMENT_METHOD, &mut fld.0)?;
2494        Ok(fld.value().to_string())
2495    }
2496
2497
2498    /// Returns true if `InstrmtAssignmentMethod` is present, Tag 1049.
2499    pub fn has_instrmt_assignment_method(&self) -> bool {
2500        self.message.body.has(tag::INSTRMT_ASSIGNMENT_METHOD)
2501    }
2502
2503
2504
2505
2506    /// Sets `InterestAccrualDate`, Tag 874.
2507    pub fn set_interest_accrual_date(&mut self, v: String) {
2508        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
2509    }
2510
2511    /// Gets `InterestAccrualDate`, Tag 874.
2512    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
2513        let mut fld = field::InterestAccrualDateField::new(String::new());
2514        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
2515        Ok(fld.value().to_string())
2516    }
2517
2518
2519    /// Returns true if `InterestAccrualDate` is present, Tag 874.
2520    pub fn has_interest_accrual_date(&self) -> bool {
2521        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
2522    }
2523
2524
2525
2526
2527    /// Sets `InterestAtMaturity`, Tag 738.
2528    pub fn set_interest_at_maturity(&mut self, val: Decimal, scale: i32) {
2529        self.message.body.set_field(tag::INTEREST_AT_MATURITY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2530    }
2531
2532    /// Gets `InterestAtMaturity`, Tag 738.
2533    pub fn get_interest_at_maturity(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2534        let mut fld = field::InterestAtMaturityField::new(Decimal::ZERO, 0);
2535        self.message.body.get_field(tag::INTEREST_AT_MATURITY, &mut fld.0)?;
2536        Ok(fld.value())
2537    }
2538
2539
2540    /// Returns true if `InterestAtMaturity` is present, Tag 738.
2541    pub fn has_interest_at_maturity(&self) -> bool {
2542        self.message.body.has(tag::INTEREST_AT_MATURITY)
2543    }
2544
2545
2546
2547
2548    /// Sets `IssueDate`, Tag 225.
2549    pub fn set_issue_date(&mut self, v: String) {
2550        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
2551    }
2552
2553    /// Gets `IssueDate`, Tag 225.
2554    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
2555        let mut fld = field::IssueDateField::new(String::new());
2556        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
2557        Ok(fld.value().to_string())
2558    }
2559
2560
2561    /// Returns true if `IssueDate` is present, Tag 225.
2562    pub fn has_issue_date(&self) -> bool {
2563        self.message.body.has(tag::ISSUE_DATE)
2564    }
2565
2566
2567
2568
2569    /// Sets `Issuer`, Tag 106.
2570    pub fn set_issuer(&mut self, v: String) {
2571        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
2572    }
2573
2574    /// Gets `Issuer`, Tag 106.
2575    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
2576        let mut fld = field::IssuerField::new(String::new());
2577        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
2578        Ok(fld.value().to_string())
2579    }
2580
2581
2582    /// Returns true if `Issuer` is present, Tag 106.
2583    pub fn has_issuer(&self) -> bool {
2584        self.message.body.has(tag::ISSUER)
2585    }
2586
2587
2588
2589
2590    /// Sets `LastCapacity`, Tag 29.
2591    pub fn set_last_capacity(&mut self, v: String) {
2592        self.message.body.set_field(tag::LAST_CAPACITY, FIXString::from(v));
2593    }
2594
2595    /// Gets `LastCapacity`, Tag 29.
2596    pub fn get_last_capacity(&self) -> Result<String, MessageRejectErrorEnum> {
2597        let mut fld = field::LastCapacityField::new(String::new());
2598        self.message.body.get_field(tag::LAST_CAPACITY, &mut fld.0)?;
2599        Ok(fld.value().to_string())
2600    }
2601
2602
2603    /// Returns true if `LastCapacity` is present, Tag 29.
2604    pub fn has_last_capacity(&self) -> bool {
2605        self.message.body.has(tag::LAST_CAPACITY)
2606    }
2607
2608
2609
2610
2611    /// Sets `LastForwardPoints`, Tag 195.
2612    pub fn set_last_forward_points(&mut self, val: Decimal, scale: i32) {
2613        self.message.body.set_field(tag::LAST_FORWARD_POINTS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2614    }
2615
2616    /// Gets `LastForwardPoints`, Tag 195.
2617    pub fn get_last_forward_points(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2618        let mut fld = field::LastForwardPointsField::new(Decimal::ZERO, 0);
2619        self.message.body.get_field(tag::LAST_FORWARD_POINTS, &mut fld.0)?;
2620        Ok(fld.value())
2621    }
2622
2623
2624    /// Returns true if `LastForwardPoints` is present, Tag 195.
2625    pub fn has_last_forward_points(&self) -> bool {
2626        self.message.body.has(tag::LAST_FORWARD_POINTS)
2627    }
2628
2629
2630
2631
2632    /// Sets `LastForwardPoints2`, Tag 641.
2633    pub fn set_last_forward_points2(&mut self, val: Decimal, scale: i32) {
2634        self.message.body.set_field(tag::LAST_FORWARD_POINTS2, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2635    }
2636
2637    /// Gets `LastForwardPoints2`, Tag 641.
2638    pub fn get_last_forward_points2(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2639        let mut fld = field::LastForwardPoints2Field::new(Decimal::ZERO, 0);
2640        self.message.body.get_field(tag::LAST_FORWARD_POINTS2, &mut fld.0)?;
2641        Ok(fld.value())
2642    }
2643
2644
2645    /// Returns true if `LastForwardPoints2` is present, Tag 641.
2646    pub fn has_last_forward_points2(&self) -> bool {
2647        self.message.body.has(tag::LAST_FORWARD_POINTS2)
2648    }
2649
2650
2651
2652
2653    /// Sets `LastFragment`, Tag 893.
2654    pub fn set_last_fragment(&mut self, v: bool) {
2655        self.message.body.set_field(tag::LAST_FRAGMENT, fixer::fix_boolean::FIXBoolean::from(v));
2656    }
2657
2658    /// Gets `LastFragment`, Tag 893.
2659    pub fn get_last_fragment(&self) -> Result<bool, MessageRejectErrorEnum> {
2660        let mut fld = field::LastFragmentField::new(false);
2661        self.message.body.get_field(tag::LAST_FRAGMENT, &mut fld.0)?;
2662        Ok(fld.value())
2663    }
2664
2665
2666    /// Returns true if `LastFragment` is present, Tag 893.
2667    pub fn has_last_fragment(&self) -> bool {
2668        self.message.body.has(tag::LAST_FRAGMENT)
2669    }
2670
2671
2672
2673
2674    /// Sets `LastLiquidityInd`, Tag 851.
2675    pub fn set_last_liquidity_ind(&mut self, v: isize) {
2676        self.message.body.set_field(tag::LAST_LIQUIDITY_IND, fixer::fix_int::FIXInt::from(v));
2677    }
2678
2679    /// Gets `LastLiquidityInd`, Tag 851.
2680    pub fn get_last_liquidity_ind(&self) -> Result<isize, MessageRejectErrorEnum> {
2681        let mut fld = field::LastLiquidityIndField::new(0);
2682        self.message.body.get_field(tag::LAST_LIQUIDITY_IND, &mut fld.0)?;
2683        Ok(fld.value())
2684    }
2685
2686
2687    /// Returns true if `LastLiquidityInd` is present, Tag 851.
2688    pub fn has_last_liquidity_ind(&self) -> bool {
2689        self.message.body.has(tag::LAST_LIQUIDITY_IND)
2690    }
2691
2692
2693
2694
2695    /// Sets `LastMkt`, Tag 30.
2696    pub fn set_last_mkt(&mut self, v: String) {
2697        self.message.body.set_field(tag::LAST_MKT, FIXString::from(v));
2698    }
2699
2700    /// Gets `LastMkt`, Tag 30.
2701    pub fn get_last_mkt(&self) -> Result<String, MessageRejectErrorEnum> {
2702        let mut fld = field::LastMktField::new(String::new());
2703        self.message.body.get_field(tag::LAST_MKT, &mut fld.0)?;
2704        Ok(fld.value().to_string())
2705    }
2706
2707
2708    /// Returns true if `LastMkt` is present, Tag 30.
2709    pub fn has_last_mkt(&self) -> bool {
2710        self.message.body.has(tag::LAST_MKT)
2711    }
2712
2713
2714
2715
2716    /// Sets `LastParPx`, Tag 669.
2717    pub fn set_last_par_px(&mut self, val: Decimal, scale: i32) {
2718        self.message.body.set_field(tag::LAST_PAR_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2719    }
2720
2721    /// Gets `LastParPx`, Tag 669.
2722    pub fn get_last_par_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2723        let mut fld = field::LastParPxField::new(Decimal::ZERO, 0);
2724        self.message.body.get_field(tag::LAST_PAR_PX, &mut fld.0)?;
2725        Ok(fld.value())
2726    }
2727
2728
2729    /// Returns true if `LastParPx` is present, Tag 669.
2730    pub fn has_last_par_px(&self) -> bool {
2731        self.message.body.has(tag::LAST_PAR_PX)
2732    }
2733
2734
2735
2736
2737    /// Sets `LastPx`, Tag 31.
2738    pub fn set_last_px(&mut self, val: Decimal, scale: i32) {
2739        self.message.body.set_field(tag::LAST_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2740    }
2741
2742    /// Gets `LastPx`, Tag 31.
2743    pub fn get_last_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2744        let mut fld = field::LastPxField::new(Decimal::ZERO, 0);
2745        self.message.body.get_field(tag::LAST_PX, &mut fld.0)?;
2746        Ok(fld.value())
2747    }
2748
2749
2750    /// Returns true if `LastPx` is present, Tag 31.
2751    pub fn has_last_px(&self) -> bool {
2752        self.message.body.has(tag::LAST_PX)
2753    }
2754
2755
2756
2757
2758    /// Sets `LastQty`, Tag 32.
2759    pub fn set_last_qty(&mut self, val: Decimal, scale: i32) {
2760        self.message.body.set_field(tag::LAST_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2761    }
2762
2763    /// Gets `LastQty`, Tag 32.
2764    pub fn get_last_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2765        let mut fld = field::LastQtyField::new(Decimal::ZERO, 0);
2766        self.message.body.get_field(tag::LAST_QTY, &mut fld.0)?;
2767        Ok(fld.value())
2768    }
2769
2770
2771    /// Returns true if `LastQty` is present, Tag 32.
2772    pub fn has_last_qty(&self) -> bool {
2773        self.message.body.has(tag::LAST_QTY)
2774    }
2775
2776
2777
2778
2779    /// Sets `LastRptRequested`, Tag 912.
2780    pub fn set_last_rpt_requested(&mut self, v: bool) {
2781        self.message.body.set_field(tag::LAST_RPT_REQUESTED, fixer::fix_boolean::FIXBoolean::from(v));
2782    }
2783
2784    /// Gets `LastRptRequested`, Tag 912.
2785    pub fn get_last_rpt_requested(&self) -> Result<bool, MessageRejectErrorEnum> {
2786        let mut fld = field::LastRptRequestedField::new(false);
2787        self.message.body.get_field(tag::LAST_RPT_REQUESTED, &mut fld.0)?;
2788        Ok(fld.value())
2789    }
2790
2791
2792    /// Returns true if `LastRptRequested` is present, Tag 912.
2793    pub fn has_last_rpt_requested(&self) -> bool {
2794        self.message.body.has(tag::LAST_RPT_REQUESTED)
2795    }
2796
2797
2798
2799
2800    /// Sets `LastSpotRate`, Tag 194.
2801    pub fn set_last_spot_rate(&mut self, val: Decimal, scale: i32) {
2802        self.message.body.set_field(tag::LAST_SPOT_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2803    }
2804
2805    /// Gets `LastSpotRate`, Tag 194.
2806    pub fn get_last_spot_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2807        let mut fld = field::LastSpotRateField::new(Decimal::ZERO, 0);
2808        self.message.body.get_field(tag::LAST_SPOT_RATE, &mut fld.0)?;
2809        Ok(fld.value())
2810    }
2811
2812
2813    /// Returns true if `LastSpotRate` is present, Tag 194.
2814    pub fn has_last_spot_rate(&self) -> bool {
2815        self.message.body.has(tag::LAST_SPOT_RATE)
2816    }
2817
2818
2819
2820
2821    /// Sets `LastSwapPoints`, Tag 1071.
2822    pub fn set_last_swap_points(&mut self, val: Decimal, scale: i32) {
2823        self.message.body.set_field(tag::LAST_SWAP_POINTS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2824    }
2825
2826    /// Gets `LastSwapPoints`, Tag 1071.
2827    pub fn get_last_swap_points(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2828        let mut fld = field::LastSwapPointsField::new(Decimal::ZERO, 0);
2829        self.message.body.get_field(tag::LAST_SWAP_POINTS, &mut fld.0)?;
2830        Ok(fld.value())
2831    }
2832
2833
2834    /// Returns true if `LastSwapPoints` is present, Tag 1071.
2835    pub fn has_last_swap_points(&self) -> bool {
2836        self.message.body.has(tag::LAST_SWAP_POINTS)
2837    }
2838
2839
2840
2841
2842    /// Sets `LeavesQty`, Tag 151.
2843    pub fn set_leaves_qty(&mut self, val: Decimal, scale: i32) {
2844        self.message.body.set_field(tag::LEAVES_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2845    }
2846
2847    /// Gets `LeavesQty`, Tag 151.
2848    pub fn get_leaves_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2849        let mut fld = field::LeavesQtyField::new(Decimal::ZERO, 0);
2850        self.message.body.get_field(tag::LEAVES_QTY, &mut fld.0)?;
2851        Ok(fld.value())
2852    }
2853
2854
2855    /// Returns true if `LeavesQty` is present, Tag 151.
2856    pub fn has_leaves_qty(&self) -> bool {
2857        self.message.body.has(tag::LEAVES_QTY)
2858    }
2859
2860
2861
2862
2863    /// Sets `ListID`, Tag 66.
2864    pub fn set_list_id(&mut self, v: String) {
2865        self.message.body.set_field(tag::LIST_ID, FIXString::from(v));
2866    }
2867
2868    /// Gets `ListID`, Tag 66.
2869    pub fn get_list_id(&self) -> Result<String, MessageRejectErrorEnum> {
2870        let mut fld = field::ListIDField::new(String::new());
2871        self.message.body.get_field(tag::LIST_ID, &mut fld.0)?;
2872        Ok(fld.value().to_string())
2873    }
2874
2875
2876    /// Returns true if `ListID` is present, Tag 66.
2877    pub fn has_list_id(&self) -> bool {
2878        self.message.body.has(tag::LIST_ID)
2879    }
2880
2881
2882
2883
2884    /// Sets `ListMethod`, Tag 1198.
2885    pub fn set_list_method(&mut self, v: isize) {
2886        self.message.body.set_field(tag::LIST_METHOD, fixer::fix_int::FIXInt::from(v));
2887    }
2888
2889    /// Gets `ListMethod`, Tag 1198.
2890    pub fn get_list_method(&self) -> Result<isize, MessageRejectErrorEnum> {
2891        let mut fld = field::ListMethodField::new(0);
2892        self.message.body.get_field(tag::LIST_METHOD, &mut fld.0)?;
2893        Ok(fld.value())
2894    }
2895
2896
2897    /// Returns true if `ListMethod` is present, Tag 1198.
2898    pub fn has_list_method(&self) -> bool {
2899        self.message.body.has(tag::LIST_METHOD)
2900    }
2901
2902
2903
2904
2905    /// Sets `LocaleOfIssue`, Tag 472.
2906    pub fn set_locale_of_issue(&mut self, v: String) {
2907        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
2908    }
2909
2910    /// Gets `LocaleOfIssue`, Tag 472.
2911    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
2912        let mut fld = field::LocaleOfIssueField::new(String::new());
2913        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
2914        Ok(fld.value().to_string())
2915    }
2916
2917
2918    /// Returns true if `LocaleOfIssue` is present, Tag 472.
2919    pub fn has_locale_of_issue(&self) -> bool {
2920        self.message.body.has(tag::LOCALE_OF_ISSUE)
2921    }
2922
2923
2924
2925
2926    /// Sets `LotType`, Tag 1093.
2927    pub fn set_lot_type(&mut self, v: String) {
2928        self.message.body.set_field(tag::LOT_TYPE, FIXString::from(v));
2929    }
2930
2931    /// Gets `LotType`, Tag 1093.
2932    pub fn get_lot_type(&self) -> Result<String, MessageRejectErrorEnum> {
2933        let mut fld = field::LotTypeField::new(String::new());
2934        self.message.body.get_field(tag::LOT_TYPE, &mut fld.0)?;
2935        Ok(fld.value().to_string())
2936    }
2937
2938
2939    /// Returns true if `LotType` is present, Tag 1093.
2940    pub fn has_lot_type(&self) -> bool {
2941        self.message.body.has(tag::LOT_TYPE)
2942    }
2943
2944
2945
2946
2947    /// Sets `ManualOrderIndicator`, Tag 1028.
2948    pub fn set_manual_order_indicator(&mut self, v: bool) {
2949        self.message.body.set_field(tag::MANUAL_ORDER_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
2950    }
2951
2952    /// Gets `ManualOrderIndicator`, Tag 1028.
2953    pub fn get_manual_order_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
2954        let mut fld = field::ManualOrderIndicatorField::new(false);
2955        self.message.body.get_field(tag::MANUAL_ORDER_INDICATOR, &mut fld.0)?;
2956        Ok(fld.value())
2957    }
2958
2959
2960    /// Returns true if `ManualOrderIndicator` is present, Tag 1028.
2961    pub fn has_manual_order_indicator(&self) -> bool {
2962        self.message.body.has(tag::MANUAL_ORDER_INDICATOR)
2963    }
2964
2965
2966
2967
2968    /// Sets `MarginRatio`, Tag 898.
2969    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
2970        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2971    }
2972
2973    /// Gets `MarginRatio`, Tag 898.
2974    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2975        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
2976        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
2977        Ok(fld.value())
2978    }
2979
2980
2981    /// Returns true if `MarginRatio` is present, Tag 898.
2982    pub fn has_margin_ratio(&self) -> bool {
2983        self.message.body.has(tag::MARGIN_RATIO)
2984    }
2985
2986
2987
2988
2989    /// Sets `MassStatusReqID`, Tag 584.
2990    pub fn set_mass_status_req_id(&mut self, v: String) {
2991        self.message.body.set_field(tag::MASS_STATUS_REQ_ID, FIXString::from(v));
2992    }
2993
2994    /// Gets `MassStatusReqID`, Tag 584.
2995    pub fn get_mass_status_req_id(&self) -> Result<String, MessageRejectErrorEnum> {
2996        let mut fld = field::MassStatusReqIDField::new(String::new());
2997        self.message.body.get_field(tag::MASS_STATUS_REQ_ID, &mut fld.0)?;
2998        Ok(fld.value().to_string())
2999    }
3000
3001
3002    /// Returns true if `MassStatusReqID` is present, Tag 584.
3003    pub fn has_mass_status_req_id(&self) -> bool {
3004        self.message.body.has(tag::MASS_STATUS_REQ_ID)
3005    }
3006
3007
3008
3009
3010    /// Sets `MatchIncrement`, Tag 1089.
3011    pub fn set_match_increment(&mut self, val: Decimal, scale: i32) {
3012        self.message.body.set_field(tag::MATCH_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3013    }
3014
3015    /// Gets `MatchIncrement`, Tag 1089.
3016    pub fn get_match_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3017        let mut fld = field::MatchIncrementField::new(Decimal::ZERO, 0);
3018        self.message.body.get_field(tag::MATCH_INCREMENT, &mut fld.0)?;
3019        Ok(fld.value())
3020    }
3021
3022
3023    /// Returns true if `MatchIncrement` is present, Tag 1089.
3024    pub fn has_match_increment(&self) -> bool {
3025        self.message.body.has(tag::MATCH_INCREMENT)
3026    }
3027
3028
3029
3030
3031    /// Sets `MatchType`, Tag 574.
3032    pub fn set_match_type(&mut self, v: String) {
3033        self.message.body.set_field(tag::MATCH_TYPE, FIXString::from(v));
3034    }
3035
3036    /// Gets `MatchType`, Tag 574.
3037    pub fn get_match_type(&self) -> Result<String, MessageRejectErrorEnum> {
3038        let mut fld = field::MatchTypeField::new(String::new());
3039        self.message.body.get_field(tag::MATCH_TYPE, &mut fld.0)?;
3040        Ok(fld.value().to_string())
3041    }
3042
3043
3044    /// Returns true if `MatchType` is present, Tag 574.
3045    pub fn has_match_type(&self) -> bool {
3046        self.message.body.has(tag::MATCH_TYPE)
3047    }
3048
3049
3050
3051
3052    /// Sets `MaturityDate`, Tag 541.
3053    pub fn set_maturity_date(&mut self, v: String) {
3054        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
3055    }
3056
3057    /// Gets `MaturityDate`, Tag 541.
3058    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
3059        let mut fld = field::MaturityDateField::new(String::new());
3060        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
3061        Ok(fld.value().to_string())
3062    }
3063
3064
3065    /// Returns true if `MaturityDate` is present, Tag 541.
3066    pub fn has_maturity_date(&self) -> bool {
3067        self.message.body.has(tag::MATURITY_DATE)
3068    }
3069
3070
3071
3072
3073    /// Sets `MaturityMonthYear`, Tag 200.
3074    pub fn set_maturity_month_year(&mut self, v: String) {
3075        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
3076    }
3077
3078    /// Gets `MaturityMonthYear`, Tag 200.
3079    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
3080        let mut fld = field::MaturityMonthYearField::new(String::new());
3081        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
3082        Ok(fld.value().to_string())
3083    }
3084
3085
3086    /// Returns true if `MaturityMonthYear` is present, Tag 200.
3087    pub fn has_maturity_month_year(&self) -> bool {
3088        self.message.body.has(tag::MATURITY_MONTH_YEAR)
3089    }
3090
3091
3092
3093
3094    /// Sets `MaturityTime`, Tag 1079.
3095    pub fn set_maturity_time(&mut self, v: String) {
3096        self.message.body.set_field(tag::MATURITY_TIME, FIXString::from(v));
3097    }
3098
3099    /// Gets `MaturityTime`, Tag 1079.
3100    pub fn get_maturity_time(&self) -> Result<String, MessageRejectErrorEnum> {
3101        let mut fld = field::MaturityTimeField::new(String::new());
3102        self.message.body.get_field(tag::MATURITY_TIME, &mut fld.0)?;
3103        Ok(fld.value().to_string())
3104    }
3105
3106
3107    /// Returns true if `MaturityTime` is present, Tag 1079.
3108    pub fn has_maturity_time(&self) -> bool {
3109        self.message.body.has(tag::MATURITY_TIME)
3110    }
3111
3112
3113
3114
3115    /// Sets `MaxFloor`, Tag 111.
3116    pub fn set_max_floor(&mut self, val: Decimal, scale: i32) {
3117        self.message.body.set_field(tag::MAX_FLOOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3118    }
3119
3120    /// Gets `MaxFloor`, Tag 111.
3121    pub fn get_max_floor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3122        let mut fld = field::MaxFloorField::new(Decimal::ZERO, 0);
3123        self.message.body.get_field(tag::MAX_FLOOR, &mut fld.0)?;
3124        Ok(fld.value())
3125    }
3126
3127
3128    /// Returns true if `MaxFloor` is present, Tag 111.
3129    pub fn has_max_floor(&self) -> bool {
3130        self.message.body.has(tag::MAX_FLOOR)
3131    }
3132
3133
3134
3135
3136    /// Sets `MaxPriceLevels`, Tag 1090.
3137    pub fn set_max_price_levels(&mut self, v: isize) {
3138        self.message.body.set_field(tag::MAX_PRICE_LEVELS, fixer::fix_int::FIXInt::from(v));
3139    }
3140
3141    /// Gets `MaxPriceLevels`, Tag 1090.
3142    pub fn get_max_price_levels(&self) -> Result<isize, MessageRejectErrorEnum> {
3143        let mut fld = field::MaxPriceLevelsField::new(0);
3144        self.message.body.get_field(tag::MAX_PRICE_LEVELS, &mut fld.0)?;
3145        Ok(fld.value())
3146    }
3147
3148
3149    /// Returns true if `MaxPriceLevels` is present, Tag 1090.
3150    pub fn has_max_price_levels(&self) -> bool {
3151        self.message.body.has(tag::MAX_PRICE_LEVELS)
3152    }
3153
3154
3155
3156
3157    /// Sets `MaxShow`, Tag 210.
3158    pub fn set_max_show(&mut self, val: Decimal, scale: i32) {
3159        self.message.body.set_field(tag::MAX_SHOW, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3160    }
3161
3162    /// Gets `MaxShow`, Tag 210.
3163    pub fn get_max_show(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3164        let mut fld = field::MaxShowField::new(Decimal::ZERO, 0);
3165        self.message.body.get_field(tag::MAX_SHOW, &mut fld.0)?;
3166        Ok(fld.value())
3167    }
3168
3169
3170    /// Returns true if `MaxShow` is present, Tag 210.
3171    pub fn has_max_show(&self) -> bool {
3172        self.message.body.has(tag::MAX_SHOW)
3173    }
3174
3175
3176
3177
3178    /// Sets `MinPriceIncrement`, Tag 969.
3179    pub fn set_min_price_increment(&mut self, val: Decimal, scale: i32) {
3180        self.message.body.set_field(tag::MIN_PRICE_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3181    }
3182
3183    /// Gets `MinPriceIncrement`, Tag 969.
3184    pub fn get_min_price_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3185        let mut fld = field::MinPriceIncrementField::new(Decimal::ZERO, 0);
3186        self.message.body.get_field(tag::MIN_PRICE_INCREMENT, &mut fld.0)?;
3187        Ok(fld.value())
3188    }
3189
3190
3191    /// Returns true if `MinPriceIncrement` is present, Tag 969.
3192    pub fn has_min_price_increment(&self) -> bool {
3193        self.message.body.has(tag::MIN_PRICE_INCREMENT)
3194    }
3195
3196
3197
3198
3199    /// Sets `MinPriceIncrementAmount`, Tag 1146.
3200    pub fn set_min_price_increment_amount(&mut self, val: Decimal, scale: i32) {
3201        self.message.body.set_field(tag::MIN_PRICE_INCREMENT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3202    }
3203
3204    /// Gets `MinPriceIncrementAmount`, Tag 1146.
3205    pub fn get_min_price_increment_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3206        let mut fld = field::MinPriceIncrementAmountField::new(Decimal::ZERO, 0);
3207        self.message.body.get_field(tag::MIN_PRICE_INCREMENT_AMOUNT, &mut fld.0)?;
3208        Ok(fld.value())
3209    }
3210
3211
3212    /// Returns true if `MinPriceIncrementAmount` is present, Tag 1146.
3213    pub fn has_min_price_increment_amount(&self) -> bool {
3214        self.message.body.has(tag::MIN_PRICE_INCREMENT_AMOUNT)
3215    }
3216
3217
3218
3219
3220    /// Sets `MinQty`, Tag 110.
3221    pub fn set_min_qty(&mut self, val: Decimal, scale: i32) {
3222        self.message.body.set_field(tag::MIN_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3223    }
3224
3225    /// Gets `MinQty`, Tag 110.
3226    pub fn get_min_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3227        let mut fld = field::MinQtyField::new(Decimal::ZERO, 0);
3228        self.message.body.get_field(tag::MIN_QTY, &mut fld.0)?;
3229        Ok(fld.value())
3230    }
3231
3232
3233    /// Returns true if `MinQty` is present, Tag 110.
3234    pub fn has_min_qty(&self) -> bool {
3235        self.message.body.has(tag::MIN_QTY)
3236    }
3237
3238
3239
3240
3241    /// Sets `MoneyLaunderingStatus`, Tag 481.
3242    pub fn set_money_laundering_status(&mut self, v: String) {
3243        self.message.body.set_field(tag::MONEY_LAUNDERING_STATUS, FIXString::from(v));
3244    }
3245
3246    /// Gets `MoneyLaunderingStatus`, Tag 481.
3247    pub fn get_money_laundering_status(&self) -> Result<String, MessageRejectErrorEnum> {
3248        let mut fld = field::MoneyLaunderingStatusField::new(String::new());
3249        self.message.body.get_field(tag::MONEY_LAUNDERING_STATUS, &mut fld.0)?;
3250        Ok(fld.value().to_string())
3251    }
3252
3253
3254    /// Returns true if `MoneyLaunderingStatus` is present, Tag 481.
3255    pub fn has_money_laundering_status(&self) -> bool {
3256        self.message.body.has(tag::MONEY_LAUNDERING_STATUS)
3257    }
3258
3259
3260
3261
3262    /// Sets `MultiLegReportingType`, Tag 442.
3263    pub fn set_multi_leg_reporting_type(&mut self, v: String) {
3264        self.message.body.set_field(tag::MULTI_LEG_REPORTING_TYPE, FIXString::from(v));
3265    }
3266
3267    /// Gets `MultiLegReportingType`, Tag 442.
3268    pub fn get_multi_leg_reporting_type(&self) -> Result<String, MessageRejectErrorEnum> {
3269        let mut fld = field::MultiLegReportingTypeField::new(String::new());
3270        self.message.body.get_field(tag::MULTI_LEG_REPORTING_TYPE, &mut fld.0)?;
3271        Ok(fld.value().to_string())
3272    }
3273
3274
3275    /// Returns true if `MultiLegReportingType` is present, Tag 442.
3276    pub fn has_multi_leg_reporting_type(&self) -> bool {
3277        self.message.body.has(tag::MULTI_LEG_REPORTING_TYPE)
3278    }
3279
3280
3281
3282
3283    /// Sets `NTPositionLimit`, Tag 971.
3284    pub fn set_nt_position_limit(&mut self, v: isize) {
3285        self.message.body.set_field(tag::NT_POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
3286    }
3287
3288    /// Gets `NTPositionLimit`, Tag 971.
3289    pub fn get_nt_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
3290        let mut fld = field::NTPositionLimitField::new(0);
3291        self.message.body.get_field(tag::NT_POSITION_LIMIT, &mut fld.0)?;
3292        Ok(fld.value())
3293    }
3294
3295
3296    /// Returns true if `NTPositionLimit` is present, Tag 971.
3297    pub fn has_nt_position_limit(&self) -> bool {
3298        self.message.body.has(tag::NT_POSITION_LIMIT)
3299    }
3300
3301
3302
3303
3304    /// Sets `NetMoney`, Tag 118.
3305    pub fn set_net_money(&mut self, val: Decimal, scale: i32) {
3306        self.message.body.set_field(tag::NET_MONEY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3307    }
3308
3309    /// Gets `NetMoney`, Tag 118.
3310    pub fn get_net_money(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3311        let mut fld = field::NetMoneyField::new(Decimal::ZERO, 0);
3312        self.message.body.get_field(tag::NET_MONEY, &mut fld.0)?;
3313        Ok(fld.value())
3314    }
3315
3316
3317    /// Returns true if `NetMoney` is present, Tag 118.
3318    pub fn has_net_money(&self) -> bool {
3319        self.message.body.has(tag::NET_MONEY)
3320    }
3321
3322
3323
3324
3325    /// Sets `NoAllocs`, Tag 78.
3326    pub fn set_no_allocs(&mut self, v: isize) {
3327        self.message.body.set_field(tag::NO_ALLOCS, fixer::fix_int::FIXInt::from(v));
3328    }
3329
3330    /// Gets `NoAllocs`, Tag 78.
3331    pub fn get_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum> {
3332        let mut fld = field::NoAllocsField::new(0);
3333        self.message.body.get_field(tag::NO_ALLOCS, &mut fld.0)?;
3334        Ok(fld.value())
3335    }
3336
3337
3338    /// Returns true if `NoAllocs` is present, Tag 78.
3339    pub fn has_no_allocs(&self) -> bool {
3340        self.message.body.has(tag::NO_ALLOCS)
3341    }
3342
3343
3344
3345
3346    /// Sets `NoComplexEvents`, Tag 1483.
3347    pub fn set_no_complex_events(&mut self, v: isize) {
3348        self.message.body.set_field(tag::NO_COMPLEX_EVENTS, fixer::fix_int::FIXInt::from(v));
3349    }
3350
3351    /// Gets `NoComplexEvents`, Tag 1483.
3352    pub fn get_no_complex_events(&self) -> Result<isize, MessageRejectErrorEnum> {
3353        let mut fld = field::NoComplexEventsField::new(0);
3354        self.message.body.get_field(tag::NO_COMPLEX_EVENTS, &mut fld.0)?;
3355        Ok(fld.value())
3356    }
3357
3358
3359    /// Returns true if `NoComplexEvents` is present, Tag 1483.
3360    pub fn has_no_complex_events(&self) -> bool {
3361        self.message.body.has(tag::NO_COMPLEX_EVENTS)
3362    }
3363
3364
3365
3366
3367    /// Sets `NoContAmts`, Tag 518.
3368    pub fn set_no_cont_amts(&mut self, v: isize) {
3369        self.message.body.set_field(tag::NO_CONT_AMTS, fixer::fix_int::FIXInt::from(v));
3370    }
3371
3372    /// Gets `NoContAmts`, Tag 518.
3373    pub fn get_no_cont_amts(&self) -> Result<isize, MessageRejectErrorEnum> {
3374        let mut fld = field::NoContAmtsField::new(0);
3375        self.message.body.get_field(tag::NO_CONT_AMTS, &mut fld.0)?;
3376        Ok(fld.value())
3377    }
3378
3379
3380    /// Returns true if `NoContAmts` is present, Tag 518.
3381    pub fn has_no_cont_amts(&self) -> bool {
3382        self.message.body.has(tag::NO_CONT_AMTS)
3383    }
3384
3385
3386
3387
3388    /// Sets `NoContraBrokers`, Tag 382.
3389    pub fn set_no_contra_brokers(&mut self, v: isize) {
3390        self.message.body.set_field(tag::NO_CONTRA_BROKERS, fixer::fix_int::FIXInt::from(v));
3391    }
3392
3393    /// Gets `NoContraBrokers`, Tag 382.
3394    pub fn get_no_contra_brokers(&self) -> Result<isize, MessageRejectErrorEnum> {
3395        let mut fld = field::NoContraBrokersField::new(0);
3396        self.message.body.get_field(tag::NO_CONTRA_BROKERS, &mut fld.0)?;
3397        Ok(fld.value())
3398    }
3399
3400
3401    /// Returns true if `NoContraBrokers` is present, Tag 382.
3402    pub fn has_no_contra_brokers(&self) -> bool {
3403        self.message.body.has(tag::NO_CONTRA_BROKERS)
3404    }
3405
3406
3407
3408
3409    /// Sets `NoEvents`, Tag 864.
3410    pub fn set_no_events(&mut self, v: isize) {
3411        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
3412    }
3413
3414    /// Gets `NoEvents`, Tag 864.
3415    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
3416        let mut fld = field::NoEventsField::new(0);
3417        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
3418        Ok(fld.value())
3419    }
3420
3421
3422    /// Returns true if `NoEvents` is present, Tag 864.
3423    pub fn has_no_events(&self) -> bool {
3424        self.message.body.has(tag::NO_EVENTS)
3425    }
3426
3427
3428
3429
3430    /// Sets `NoFills`, Tag 1362.
3431    pub fn set_no_fills(&mut self, v: isize) {
3432        self.message.body.set_field(tag::NO_FILLS, fixer::fix_int::FIXInt::from(v));
3433    }
3434
3435    /// Gets `NoFills`, Tag 1362.
3436    pub fn get_no_fills(&self) -> Result<isize, MessageRejectErrorEnum> {
3437        let mut fld = field::NoFillsField::new(0);
3438        self.message.body.get_field(tag::NO_FILLS, &mut fld.0)?;
3439        Ok(fld.value())
3440    }
3441
3442
3443    /// Returns true if `NoFills` is present, Tag 1362.
3444    pub fn has_no_fills(&self) -> bool {
3445        self.message.body.has(tag::NO_FILLS)
3446    }
3447
3448
3449
3450
3451    /// Sets `NoInstrumentParties`, Tag 1018.
3452    pub fn set_no_instrument_parties(&mut self, v: isize) {
3453        self.message.body.set_field(tag::NO_INSTRUMENT_PARTIES, fixer::fix_int::FIXInt::from(v));
3454    }
3455
3456    /// Gets `NoInstrumentParties`, Tag 1018.
3457    pub fn get_no_instrument_parties(&self) -> Result<isize, MessageRejectErrorEnum> {
3458        let mut fld = field::NoInstrumentPartiesField::new(0);
3459        self.message.body.get_field(tag::NO_INSTRUMENT_PARTIES, &mut fld.0)?;
3460        Ok(fld.value())
3461    }
3462
3463
3464    /// Returns true if `NoInstrumentParties` is present, Tag 1018.
3465    pub fn has_no_instrument_parties(&self) -> bool {
3466        self.message.body.has(tag::NO_INSTRUMENT_PARTIES)
3467    }
3468
3469
3470
3471
3472    /// Sets `NoLegs`, Tag 555.
3473    pub fn set_no_legs(&mut self, v: isize) {
3474        self.message.body.set_field(tag::NO_LEGS, fixer::fix_int::FIXInt::from(v));
3475    }
3476
3477    /// Gets `NoLegs`, Tag 555.
3478    pub fn get_no_legs(&self) -> Result<isize, MessageRejectErrorEnum> {
3479        let mut fld = field::NoLegsField::new(0);
3480        self.message.body.get_field(tag::NO_LEGS, &mut fld.0)?;
3481        Ok(fld.value())
3482    }
3483
3484
3485    /// Returns true if `NoLegs` is present, Tag 555.
3486    pub fn has_no_legs(&self) -> bool {
3487        self.message.body.has(tag::NO_LEGS)
3488    }
3489
3490
3491
3492
3493    /// Sets `NoMiscFees`, Tag 136.
3494    pub fn set_no_misc_fees(&mut self, v: isize) {
3495        self.message.body.set_field(tag::NO_MISC_FEES, fixer::fix_int::FIXInt::from(v));
3496    }
3497
3498    /// Gets `NoMiscFees`, Tag 136.
3499    pub fn get_no_misc_fees(&self) -> Result<isize, MessageRejectErrorEnum> {
3500        let mut fld = field::NoMiscFeesField::new(0);
3501        self.message.body.get_field(tag::NO_MISC_FEES, &mut fld.0)?;
3502        Ok(fld.value())
3503    }
3504
3505
3506    /// Returns true if `NoMiscFees` is present, Tag 136.
3507    pub fn has_no_misc_fees(&self) -> bool {
3508        self.message.body.has(tag::NO_MISC_FEES)
3509    }
3510
3511
3512
3513
3514    /// Sets `NoPartyIDs`, Tag 453.
3515    pub fn set_no_party_i_ds(&mut self, v: isize) {
3516        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
3517    }
3518
3519    /// Gets `NoPartyIDs`, Tag 453.
3520    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
3521        let mut fld = field::NoPartyIDsField::new(0);
3522        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
3523        Ok(fld.value())
3524    }
3525
3526
3527    /// Returns true if `NoPartyIDs` is present, Tag 453.
3528    pub fn has_no_party_i_ds(&self) -> bool {
3529        self.message.body.has(tag::NO_PARTY_I_DS)
3530    }
3531
3532
3533
3534
3535    /// Sets `NoRateSources`, Tag 1445.
3536    pub fn set_no_rate_sources(&mut self, v: isize) {
3537        self.message.body.set_field(tag::NO_RATE_SOURCES, fixer::fix_int::FIXInt::from(v));
3538    }
3539
3540    /// Gets `NoRateSources`, Tag 1445.
3541    pub fn get_no_rate_sources(&self) -> Result<isize, MessageRejectErrorEnum> {
3542        let mut fld = field::NoRateSourcesField::new(0);
3543        self.message.body.get_field(tag::NO_RATE_SOURCES, &mut fld.0)?;
3544        Ok(fld.value())
3545    }
3546
3547
3548    /// Returns true if `NoRateSources` is present, Tag 1445.
3549    pub fn has_no_rate_sources(&self) -> bool {
3550        self.message.body.has(tag::NO_RATE_SOURCES)
3551    }
3552
3553
3554
3555
3556    /// Sets `NoSecurityAltID`, Tag 454.
3557    pub fn set_no_security_alt_id(&mut self, v: isize) {
3558        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
3559    }
3560
3561    /// Gets `NoSecurityAltID`, Tag 454.
3562    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
3563        let mut fld = field::NoSecurityAltIDField::new(0);
3564        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
3565        Ok(fld.value())
3566    }
3567
3568
3569    /// Returns true if `NoSecurityAltID` is present, Tag 454.
3570    pub fn has_no_security_alt_id(&self) -> bool {
3571        self.message.body.has(tag::NO_SECURITY_ALT_ID)
3572    }
3573
3574
3575
3576
3577    /// Sets `NoStipulations`, Tag 232.
3578    pub fn set_no_stipulations(&mut self, v: isize) {
3579        self.message.body.set_field(tag::NO_STIPULATIONS, fixer::fix_int::FIXInt::from(v));
3580    }
3581
3582    /// Gets `NoStipulations`, Tag 232.
3583    pub fn get_no_stipulations(&self) -> Result<isize, MessageRejectErrorEnum> {
3584        let mut fld = field::NoStipulationsField::new(0);
3585        self.message.body.get_field(tag::NO_STIPULATIONS, &mut fld.0)?;
3586        Ok(fld.value())
3587    }
3588
3589
3590    /// Returns true if `NoStipulations` is present, Tag 232.
3591    pub fn has_no_stipulations(&self) -> bool {
3592        self.message.body.has(tag::NO_STIPULATIONS)
3593    }
3594
3595
3596
3597
3598    /// Sets `NoStrategyParameters`, Tag 957.
3599    pub fn set_no_strategy_parameters(&mut self, v: isize) {
3600        self.message.body.set_field(tag::NO_STRATEGY_PARAMETERS, fixer::fix_int::FIXInt::from(v));
3601    }
3602
3603    /// Gets `NoStrategyParameters`, Tag 957.
3604    pub fn get_no_strategy_parameters(&self) -> Result<isize, MessageRejectErrorEnum> {
3605        let mut fld = field::NoStrategyParametersField::new(0);
3606        self.message.body.get_field(tag::NO_STRATEGY_PARAMETERS, &mut fld.0)?;
3607        Ok(fld.value())
3608    }
3609
3610
3611    /// Returns true if `NoStrategyParameters` is present, Tag 957.
3612    pub fn has_no_strategy_parameters(&self) -> bool {
3613        self.message.body.has(tag::NO_STRATEGY_PARAMETERS)
3614    }
3615
3616
3617
3618
3619    /// Sets `NoTrdRegTimestamps`, Tag 768.
3620    pub fn set_no_trd_reg_timestamps(&mut self, v: isize) {
3621        self.message.body.set_field(tag::NO_TRD_REG_TIMESTAMPS, fixer::fix_int::FIXInt::from(v));
3622    }
3623
3624    /// Gets `NoTrdRegTimestamps`, Tag 768.
3625    pub fn get_no_trd_reg_timestamps(&self) -> Result<isize, MessageRejectErrorEnum> {
3626        let mut fld = field::NoTrdRegTimestampsField::new(0);
3627        self.message.body.get_field(tag::NO_TRD_REG_TIMESTAMPS, &mut fld.0)?;
3628        Ok(fld.value())
3629    }
3630
3631
3632    /// Returns true if `NoTrdRegTimestamps` is present, Tag 768.
3633    pub fn has_no_trd_reg_timestamps(&self) -> bool {
3634        self.message.body.has(tag::NO_TRD_REG_TIMESTAMPS)
3635    }
3636
3637
3638
3639
3640    /// Sets `NoUnderlyings`, Tag 711.
3641    pub fn set_no_underlyings(&mut self, v: isize) {
3642        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
3643    }
3644
3645    /// Gets `NoUnderlyings`, Tag 711.
3646    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
3647        let mut fld = field::NoUnderlyingsField::new(0);
3648        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
3649        Ok(fld.value())
3650    }
3651
3652
3653    /// Returns true if `NoUnderlyings` is present, Tag 711.
3654    pub fn has_no_underlyings(&self) -> bool {
3655        self.message.body.has(tag::NO_UNDERLYINGS)
3656    }
3657
3658
3659
3660
3661    /// Sets `NotionalPercentageOutstanding`, Tag 1451.
3662    pub fn set_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
3663        self.message.body.set_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3664    }
3665
3666    /// Gets `NotionalPercentageOutstanding`, Tag 1451.
3667    pub fn get_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3668        let mut fld = field::NotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
3669        self.message.body.get_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
3670        Ok(fld.value())
3671    }
3672
3673
3674    /// Returns true if `NotionalPercentageOutstanding` is present, Tag 1451.
3675    pub fn has_notional_percentage_outstanding(&self) -> bool {
3676        self.message.body.has(tag::NOTIONAL_PERCENTAGE_OUTSTANDING)
3677    }
3678
3679
3680
3681
3682    /// Sets `NumDaysInterest`, Tag 157.
3683    pub fn set_num_days_interest(&mut self, v: isize) {
3684        self.message.body.set_field(tag::NUM_DAYS_INTEREST, fixer::fix_int::FIXInt::from(v));
3685    }
3686
3687    /// Gets `NumDaysInterest`, Tag 157.
3688    pub fn get_num_days_interest(&self) -> Result<isize, MessageRejectErrorEnum> {
3689        let mut fld = field::NumDaysInterestField::new(0);
3690        self.message.body.get_field(tag::NUM_DAYS_INTEREST, &mut fld.0)?;
3691        Ok(fld.value())
3692    }
3693
3694
3695    /// Returns true if `NumDaysInterest` is present, Tag 157.
3696    pub fn has_num_days_interest(&self) -> bool {
3697        self.message.body.has(tag::NUM_DAYS_INTEREST)
3698    }
3699
3700
3701
3702
3703    /// Sets `OptAttribute`, Tag 206.
3704    pub fn set_opt_attribute(&mut self, v: String) {
3705        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
3706    }
3707
3708    /// Gets `OptAttribute`, Tag 206.
3709    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
3710        let mut fld = field::OptAttributeField::new(String::new());
3711        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
3712        Ok(fld.value().to_string())
3713    }
3714
3715
3716    /// Returns true if `OptAttribute` is present, Tag 206.
3717    pub fn has_opt_attribute(&self) -> bool {
3718        self.message.body.has(tag::OPT_ATTRIBUTE)
3719    }
3720
3721
3722
3723
3724    /// Sets `OptPayoutAmount`, Tag 1195.
3725    pub fn set_opt_payout_amount(&mut self, val: Decimal, scale: i32) {
3726        self.message.body.set_field(tag::OPT_PAYOUT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3727    }
3728
3729    /// Gets `OptPayoutAmount`, Tag 1195.
3730    pub fn get_opt_payout_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3731        let mut fld = field::OptPayoutAmountField::new(Decimal::ZERO, 0);
3732        self.message.body.get_field(tag::OPT_PAYOUT_AMOUNT, &mut fld.0)?;
3733        Ok(fld.value())
3734    }
3735
3736
3737    /// Returns true if `OptPayoutAmount` is present, Tag 1195.
3738    pub fn has_opt_payout_amount(&self) -> bool {
3739        self.message.body.has(tag::OPT_PAYOUT_AMOUNT)
3740    }
3741
3742
3743
3744
3745    /// Sets `OptPayoutType`, Tag 1482.
3746    pub fn set_opt_payout_type(&mut self, v: isize) {
3747        self.message.body.set_field(tag::OPT_PAYOUT_TYPE, fixer::fix_int::FIXInt::from(v));
3748    }
3749
3750    /// Gets `OptPayoutType`, Tag 1482.
3751    pub fn get_opt_payout_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3752        let mut fld = field::OptPayoutTypeField::new(0);
3753        self.message.body.get_field(tag::OPT_PAYOUT_TYPE, &mut fld.0)?;
3754        Ok(fld.value())
3755    }
3756
3757
3758    /// Returns true if `OptPayoutType` is present, Tag 1482.
3759    pub fn has_opt_payout_type(&self) -> bool {
3760        self.message.body.has(tag::OPT_PAYOUT_TYPE)
3761    }
3762
3763
3764
3765
3766    /// Sets `OrdRejReason`, Tag 103.
3767    pub fn set_ord_rej_reason(&mut self, v: isize) {
3768        self.message.body.set_field(tag::ORD_REJ_REASON, fixer::fix_int::FIXInt::from(v));
3769    }
3770
3771    /// Gets `OrdRejReason`, Tag 103.
3772    pub fn get_ord_rej_reason(&self) -> Result<isize, MessageRejectErrorEnum> {
3773        let mut fld = field::OrdRejReasonField::new(0);
3774        self.message.body.get_field(tag::ORD_REJ_REASON, &mut fld.0)?;
3775        Ok(fld.value())
3776    }
3777
3778
3779    /// Returns true if `OrdRejReason` is present, Tag 103.
3780    pub fn has_ord_rej_reason(&self) -> bool {
3781        self.message.body.has(tag::ORD_REJ_REASON)
3782    }
3783
3784
3785
3786
3787    /// Sets `OrdStatus`, Tag 39.
3788    pub fn set_ord_status(&mut self, v: String) {
3789        self.message.body.set_field(tag::ORD_STATUS, FIXString::from(v));
3790    }
3791
3792    /// Gets `OrdStatus`, Tag 39.
3793    pub fn get_ord_status(&self) -> Result<String, MessageRejectErrorEnum> {
3794        let mut fld = field::OrdStatusField::new(String::new());
3795        self.message.body.get_field(tag::ORD_STATUS, &mut fld.0)?;
3796        Ok(fld.value().to_string())
3797    }
3798
3799
3800    /// Returns true if `OrdStatus` is present, Tag 39.
3801    pub fn has_ord_status(&self) -> bool {
3802        self.message.body.has(tag::ORD_STATUS)
3803    }
3804
3805
3806
3807
3808    /// Sets `OrdStatusReqID`, Tag 790.
3809    pub fn set_ord_status_req_id(&mut self, v: String) {
3810        self.message.body.set_field(tag::ORD_STATUS_REQ_ID, FIXString::from(v));
3811    }
3812
3813    /// Gets `OrdStatusReqID`, Tag 790.
3814    pub fn get_ord_status_req_id(&self) -> Result<String, MessageRejectErrorEnum> {
3815        let mut fld = field::OrdStatusReqIDField::new(String::new());
3816        self.message.body.get_field(tag::ORD_STATUS_REQ_ID, &mut fld.0)?;
3817        Ok(fld.value().to_string())
3818    }
3819
3820
3821    /// Returns true if `OrdStatusReqID` is present, Tag 790.
3822    pub fn has_ord_status_req_id(&self) -> bool {
3823        self.message.body.has(tag::ORD_STATUS_REQ_ID)
3824    }
3825
3826
3827
3828
3829    /// Sets `OrdType`, Tag 40.
3830    pub fn set_ord_type(&mut self, v: String) {
3831        self.message.body.set_field(tag::ORD_TYPE, FIXString::from(v));
3832    }
3833
3834    /// Gets `OrdType`, Tag 40.
3835    pub fn get_ord_type(&self) -> Result<String, MessageRejectErrorEnum> {
3836        let mut fld = field::OrdTypeField::new(String::new());
3837        self.message.body.get_field(tag::ORD_TYPE, &mut fld.0)?;
3838        Ok(fld.value().to_string())
3839    }
3840
3841
3842    /// Returns true if `OrdType` is present, Tag 40.
3843    pub fn has_ord_type(&self) -> bool {
3844        self.message.body.has(tag::ORD_TYPE)
3845    }
3846
3847
3848
3849
3850    /// Sets `OrderCapacity`, Tag 528.
3851    pub fn set_order_capacity(&mut self, v: String) {
3852        self.message.body.set_field(tag::ORDER_CAPACITY, FIXString::from(v));
3853    }
3854
3855    /// Gets `OrderCapacity`, Tag 528.
3856    pub fn get_order_capacity(&self) -> Result<String, MessageRejectErrorEnum> {
3857        let mut fld = field::OrderCapacityField::new(String::new());
3858        self.message.body.get_field(tag::ORDER_CAPACITY, &mut fld.0)?;
3859        Ok(fld.value().to_string())
3860    }
3861
3862
3863    /// Returns true if `OrderCapacity` is present, Tag 528.
3864    pub fn has_order_capacity(&self) -> bool {
3865        self.message.body.has(tag::ORDER_CAPACITY)
3866    }
3867
3868
3869
3870
3871    /// Sets `OrderCategory`, Tag 1115.
3872    pub fn set_order_category(&mut self, v: String) {
3873        self.message.body.set_field(tag::ORDER_CATEGORY, FIXString::from(v));
3874    }
3875
3876    /// Gets `OrderCategory`, Tag 1115.
3877    pub fn get_order_category(&self) -> Result<String, MessageRejectErrorEnum> {
3878        let mut fld = field::OrderCategoryField::new(String::new());
3879        self.message.body.get_field(tag::ORDER_CATEGORY, &mut fld.0)?;
3880        Ok(fld.value().to_string())
3881    }
3882
3883
3884    /// Returns true if `OrderCategory` is present, Tag 1115.
3885    pub fn has_order_category(&self) -> bool {
3886        self.message.body.has(tag::ORDER_CATEGORY)
3887    }
3888
3889
3890
3891
3892    /// Sets `OrderHandlingInstSource`, Tag 1032.
3893    pub fn set_order_handling_inst_source(&mut self, v: isize) {
3894        self.message.body.set_field(tag::ORDER_HANDLING_INST_SOURCE, fixer::fix_int::FIXInt::from(v));
3895    }
3896
3897    /// Gets `OrderHandlingInstSource`, Tag 1032.
3898    pub fn get_order_handling_inst_source(&self) -> Result<isize, MessageRejectErrorEnum> {
3899        let mut fld = field::OrderHandlingInstSourceField::new(0);
3900        self.message.body.get_field(tag::ORDER_HANDLING_INST_SOURCE, &mut fld.0)?;
3901        Ok(fld.value())
3902    }
3903
3904
3905    /// Returns true if `OrderHandlingInstSource` is present, Tag 1032.
3906    pub fn has_order_handling_inst_source(&self) -> bool {
3907        self.message.body.has(tag::ORDER_HANDLING_INST_SOURCE)
3908    }
3909
3910
3911
3912
3913    /// Sets `OrderID`, Tag 37.
3914    pub fn set_order_id(&mut self, v: String) {
3915        self.message.body.set_field(tag::ORDER_ID, FIXString::from(v));
3916    }
3917
3918    /// Gets `OrderID`, Tag 37.
3919    pub fn get_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
3920        let mut fld = field::OrderIDField::new(String::new());
3921        self.message.body.get_field(tag::ORDER_ID, &mut fld.0)?;
3922        Ok(fld.value().to_string())
3923    }
3924
3925
3926    /// Returns true if `OrderID` is present, Tag 37.
3927    pub fn has_order_id(&self) -> bool {
3928        self.message.body.has(tag::ORDER_ID)
3929    }
3930
3931
3932
3933
3934    /// Sets `OrderPercent`, Tag 516.
3935    pub fn set_order_percent(&mut self, val: Decimal, scale: i32) {
3936        self.message.body.set_field(tag::ORDER_PERCENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3937    }
3938
3939    /// Gets `OrderPercent`, Tag 516.
3940    pub fn get_order_percent(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3941        let mut fld = field::OrderPercentField::new(Decimal::ZERO, 0);
3942        self.message.body.get_field(tag::ORDER_PERCENT, &mut fld.0)?;
3943        Ok(fld.value())
3944    }
3945
3946
3947    /// Returns true if `OrderPercent` is present, Tag 516.
3948    pub fn has_order_percent(&self) -> bool {
3949        self.message.body.has(tag::ORDER_PERCENT)
3950    }
3951
3952
3953
3954
3955    /// Sets `OrderQty`, Tag 38.
3956    pub fn set_order_qty(&mut self, val: Decimal, scale: i32) {
3957        self.message.body.set_field(tag::ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3958    }
3959
3960    /// Gets `OrderQty`, Tag 38.
3961    pub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3962        let mut fld = field::OrderQtyField::new(Decimal::ZERO, 0);
3963        self.message.body.get_field(tag::ORDER_QTY, &mut fld.0)?;
3964        Ok(fld.value())
3965    }
3966
3967
3968    /// Returns true if `OrderQty` is present, Tag 38.
3969    pub fn has_order_qty(&self) -> bool {
3970        self.message.body.has(tag::ORDER_QTY)
3971    }
3972
3973
3974
3975
3976    /// Sets `OrderQty2`, Tag 192.
3977    pub fn set_order_qty2(&mut self, val: Decimal, scale: i32) {
3978        self.message.body.set_field(tag::ORDER_QTY2, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3979    }
3980
3981    /// Gets `OrderQty2`, Tag 192.
3982    pub fn get_order_qty2(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3983        let mut fld = field::OrderQty2Field::new(Decimal::ZERO, 0);
3984        self.message.body.get_field(tag::ORDER_QTY2, &mut fld.0)?;
3985        Ok(fld.value())
3986    }
3987
3988
3989    /// Returns true if `OrderQty2` is present, Tag 192.
3990    pub fn has_order_qty2(&self) -> bool {
3991        self.message.body.has(tag::ORDER_QTY2)
3992    }
3993
3994
3995
3996
3997    /// Sets `OrderRestrictions`, Tag 529.
3998    pub fn set_order_restrictions(&mut self, v: String) {
3999        self.message.body.set_field(tag::ORDER_RESTRICTIONS, FIXString::from(v));
4000    }
4001
4002    /// Gets `OrderRestrictions`, Tag 529.
4003    pub fn get_order_restrictions(&self) -> Result<String, MessageRejectErrorEnum> {
4004        let mut fld = field::OrderRestrictionsField::new(String::new());
4005        self.message.body.get_field(tag::ORDER_RESTRICTIONS, &mut fld.0)?;
4006        Ok(fld.value().to_string())
4007    }
4008
4009
4010    /// Returns true if `OrderRestrictions` is present, Tag 529.
4011    pub fn has_order_restrictions(&self) -> bool {
4012        self.message.body.has(tag::ORDER_RESTRICTIONS)
4013    }
4014
4015
4016
4017
4018    /// Sets `OrigClOrdID`, Tag 41.
4019    pub fn set_orig_cl_ord_id(&mut self, v: String) {
4020        self.message.body.set_field(tag::ORIG_CL_ORD_ID, FIXString::from(v));
4021    }
4022
4023    /// Gets `OrigClOrdID`, Tag 41.
4024    pub fn get_orig_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
4025        let mut fld = field::OrigClOrdIDField::new(String::new());
4026        self.message.body.get_field(tag::ORIG_CL_ORD_ID, &mut fld.0)?;
4027        Ok(fld.value().to_string())
4028    }
4029
4030
4031    /// Returns true if `OrigClOrdID` is present, Tag 41.
4032    pub fn has_orig_cl_ord_id(&self) -> bool {
4033        self.message.body.has(tag::ORIG_CL_ORD_ID)
4034    }
4035
4036
4037
4038
4039    /// Sets `OrigCrossID`, Tag 551.
4040    pub fn set_orig_cross_id(&mut self, v: String) {
4041        self.message.body.set_field(tag::ORIG_CROSS_ID, FIXString::from(v));
4042    }
4043
4044    /// Gets `OrigCrossID`, Tag 551.
4045    pub fn get_orig_cross_id(&self) -> Result<String, MessageRejectErrorEnum> {
4046        let mut fld = field::OrigCrossIDField::new(String::new());
4047        self.message.body.get_field(tag::ORIG_CROSS_ID, &mut fld.0)?;
4048        Ok(fld.value().to_string())
4049    }
4050
4051
4052    /// Returns true if `OrigCrossID` is present, Tag 551.
4053    pub fn has_orig_cross_id(&self) -> bool {
4054        self.message.body.has(tag::ORIG_CROSS_ID)
4055    }
4056
4057
4058
4059
4060    /// Sets `OriginalNotionalPercentageOutstanding`, Tag 1452.
4061    pub fn set_original_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
4062        self.message.body.set_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4063    }
4064
4065    /// Gets `OriginalNotionalPercentageOutstanding`, Tag 1452.
4066    pub fn get_original_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4067        let mut fld = field::OriginalNotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
4068        self.message.body.get_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
4069        Ok(fld.value())
4070    }
4071
4072
4073    /// Returns true if `OriginalNotionalPercentageOutstanding` is present, Tag 1452.
4074    pub fn has_original_notional_percentage_outstanding(&self) -> bool {
4075        self.message.body.has(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING)
4076    }
4077
4078
4079
4080
4081    /// Sets `ParticipationRate`, Tag 849.
4082    pub fn set_participation_rate(&mut self, val: Decimal, scale: i32) {
4083        self.message.body.set_field(tag::PARTICIPATION_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4084    }
4085
4086    /// Gets `ParticipationRate`, Tag 849.
4087    pub fn get_participation_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4088        let mut fld = field::ParticipationRateField::new(Decimal::ZERO, 0);
4089        self.message.body.get_field(tag::PARTICIPATION_RATE, &mut fld.0)?;
4090        Ok(fld.value())
4091    }
4092
4093
4094    /// Returns true if `ParticipationRate` is present, Tag 849.
4095    pub fn has_participation_rate(&self) -> bool {
4096        self.message.body.has(tag::PARTICIPATION_RATE)
4097    }
4098
4099
4100
4101
4102    /// Sets `PegLimitType`, Tag 837.
4103    pub fn set_peg_limit_type(&mut self, v: isize) {
4104        self.message.body.set_field(tag::PEG_LIMIT_TYPE, fixer::fix_int::FIXInt::from(v));
4105    }
4106
4107    /// Gets `PegLimitType`, Tag 837.
4108    pub fn get_peg_limit_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4109        let mut fld = field::PegLimitTypeField::new(0);
4110        self.message.body.get_field(tag::PEG_LIMIT_TYPE, &mut fld.0)?;
4111        Ok(fld.value())
4112    }
4113
4114
4115    /// Returns true if `PegLimitType` is present, Tag 837.
4116    pub fn has_peg_limit_type(&self) -> bool {
4117        self.message.body.has(tag::PEG_LIMIT_TYPE)
4118    }
4119
4120
4121
4122
4123    /// Sets `PegMoveType`, Tag 835.
4124    pub fn set_peg_move_type(&mut self, v: isize) {
4125        self.message.body.set_field(tag::PEG_MOVE_TYPE, fixer::fix_int::FIXInt::from(v));
4126    }
4127
4128    /// Gets `PegMoveType`, Tag 835.
4129    pub fn get_peg_move_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4130        let mut fld = field::PegMoveTypeField::new(0);
4131        self.message.body.get_field(tag::PEG_MOVE_TYPE, &mut fld.0)?;
4132        Ok(fld.value())
4133    }
4134
4135
4136    /// Returns true if `PegMoveType` is present, Tag 835.
4137    pub fn has_peg_move_type(&self) -> bool {
4138        self.message.body.has(tag::PEG_MOVE_TYPE)
4139    }
4140
4141
4142
4143
4144    /// Sets `PegOffsetType`, Tag 836.
4145    pub fn set_peg_offset_type(&mut self, v: isize) {
4146        self.message.body.set_field(tag::PEG_OFFSET_TYPE, fixer::fix_int::FIXInt::from(v));
4147    }
4148
4149    /// Gets `PegOffsetType`, Tag 836.
4150    pub fn get_peg_offset_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4151        let mut fld = field::PegOffsetTypeField::new(0);
4152        self.message.body.get_field(tag::PEG_OFFSET_TYPE, &mut fld.0)?;
4153        Ok(fld.value())
4154    }
4155
4156
4157    /// Returns true if `PegOffsetType` is present, Tag 836.
4158    pub fn has_peg_offset_type(&self) -> bool {
4159        self.message.body.has(tag::PEG_OFFSET_TYPE)
4160    }
4161
4162
4163
4164
4165    /// Sets `PegOffsetValue`, Tag 211.
4166    pub fn set_peg_offset_value(&mut self, val: Decimal, scale: i32) {
4167        self.message.body.set_field(tag::PEG_OFFSET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4168    }
4169
4170    /// Gets `PegOffsetValue`, Tag 211.
4171    pub fn get_peg_offset_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4172        let mut fld = field::PegOffsetValueField::new(Decimal::ZERO, 0);
4173        self.message.body.get_field(tag::PEG_OFFSET_VALUE, &mut fld.0)?;
4174        Ok(fld.value())
4175    }
4176
4177
4178    /// Returns true if `PegOffsetValue` is present, Tag 211.
4179    pub fn has_peg_offset_value(&self) -> bool {
4180        self.message.body.has(tag::PEG_OFFSET_VALUE)
4181    }
4182
4183
4184
4185
4186    /// Sets `PegPriceType`, Tag 1094.
4187    pub fn set_peg_price_type(&mut self, v: isize) {
4188        self.message.body.set_field(tag::PEG_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
4189    }
4190
4191    /// Gets `PegPriceType`, Tag 1094.
4192    pub fn get_peg_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4193        let mut fld = field::PegPriceTypeField::new(0);
4194        self.message.body.get_field(tag::PEG_PRICE_TYPE, &mut fld.0)?;
4195        Ok(fld.value())
4196    }
4197
4198
4199    /// Returns true if `PegPriceType` is present, Tag 1094.
4200    pub fn has_peg_price_type(&self) -> bool {
4201        self.message.body.has(tag::PEG_PRICE_TYPE)
4202    }
4203
4204
4205
4206
4207    /// Sets `PegRoundDirection`, Tag 838.
4208    pub fn set_peg_round_direction(&mut self, v: isize) {
4209        self.message.body.set_field(tag::PEG_ROUND_DIRECTION, fixer::fix_int::FIXInt::from(v));
4210    }
4211
4212    /// Gets `PegRoundDirection`, Tag 838.
4213    pub fn get_peg_round_direction(&self) -> Result<isize, MessageRejectErrorEnum> {
4214        let mut fld = field::PegRoundDirectionField::new(0);
4215        self.message.body.get_field(tag::PEG_ROUND_DIRECTION, &mut fld.0)?;
4216        Ok(fld.value())
4217    }
4218
4219
4220    /// Returns true if `PegRoundDirection` is present, Tag 838.
4221    pub fn has_peg_round_direction(&self) -> bool {
4222        self.message.body.has(tag::PEG_ROUND_DIRECTION)
4223    }
4224
4225
4226
4227
4228    /// Sets `PegScope`, Tag 840.
4229    pub fn set_peg_scope(&mut self, v: isize) {
4230        self.message.body.set_field(tag::PEG_SCOPE, fixer::fix_int::FIXInt::from(v));
4231    }
4232
4233    /// Gets `PegScope`, Tag 840.
4234    pub fn get_peg_scope(&self) -> Result<isize, MessageRejectErrorEnum> {
4235        let mut fld = field::PegScopeField::new(0);
4236        self.message.body.get_field(tag::PEG_SCOPE, &mut fld.0)?;
4237        Ok(fld.value())
4238    }
4239
4240
4241    /// Returns true if `PegScope` is present, Tag 840.
4242    pub fn has_peg_scope(&self) -> bool {
4243        self.message.body.has(tag::PEG_SCOPE)
4244    }
4245
4246
4247
4248
4249    /// Sets `PegSecurityDesc`, Tag 1099.
4250    pub fn set_peg_security_desc(&mut self, v: String) {
4251        self.message.body.set_field(tag::PEG_SECURITY_DESC, FIXString::from(v));
4252    }
4253
4254    /// Gets `PegSecurityDesc`, Tag 1099.
4255    pub fn get_peg_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
4256        let mut fld = field::PegSecurityDescField::new(String::new());
4257        self.message.body.get_field(tag::PEG_SECURITY_DESC, &mut fld.0)?;
4258        Ok(fld.value().to_string())
4259    }
4260
4261
4262    /// Returns true if `PegSecurityDesc` is present, Tag 1099.
4263    pub fn has_peg_security_desc(&self) -> bool {
4264        self.message.body.has(tag::PEG_SECURITY_DESC)
4265    }
4266
4267
4268
4269
4270    /// Sets `PegSecurityID`, Tag 1097.
4271    pub fn set_peg_security_id(&mut self, v: String) {
4272        self.message.body.set_field(tag::PEG_SECURITY_ID, FIXString::from(v));
4273    }
4274
4275    /// Gets `PegSecurityID`, Tag 1097.
4276    pub fn get_peg_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
4277        let mut fld = field::PegSecurityIDField::new(String::new());
4278        self.message.body.get_field(tag::PEG_SECURITY_ID, &mut fld.0)?;
4279        Ok(fld.value().to_string())
4280    }
4281
4282
4283    /// Returns true if `PegSecurityID` is present, Tag 1097.
4284    pub fn has_peg_security_id(&self) -> bool {
4285        self.message.body.has(tag::PEG_SECURITY_ID)
4286    }
4287
4288
4289
4290
4291    /// Sets `PegSecurityIDSource`, Tag 1096.
4292    pub fn set_peg_security_id_source(&mut self, v: String) {
4293        self.message.body.set_field(tag::PEG_SECURITY_ID_SOURCE, FIXString::from(v));
4294    }
4295
4296    /// Gets `PegSecurityIDSource`, Tag 1096.
4297    pub fn get_peg_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
4298        let mut fld = field::PegSecurityIDSourceField::new(String::new());
4299        self.message.body.get_field(tag::PEG_SECURITY_ID_SOURCE, &mut fld.0)?;
4300        Ok(fld.value().to_string())
4301    }
4302
4303
4304    /// Returns true if `PegSecurityIDSource` is present, Tag 1096.
4305    pub fn has_peg_security_id_source(&self) -> bool {
4306        self.message.body.has(tag::PEG_SECURITY_ID_SOURCE)
4307    }
4308
4309
4310
4311
4312    /// Sets `PegSymbol`, Tag 1098.
4313    pub fn set_peg_symbol(&mut self, v: String) {
4314        self.message.body.set_field(tag::PEG_SYMBOL, FIXString::from(v));
4315    }
4316
4317    /// Gets `PegSymbol`, Tag 1098.
4318    pub fn get_peg_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
4319        let mut fld = field::PegSymbolField::new(String::new());
4320        self.message.body.get_field(tag::PEG_SYMBOL, &mut fld.0)?;
4321        Ok(fld.value().to_string())
4322    }
4323
4324
4325    /// Returns true if `PegSymbol` is present, Tag 1098.
4326    pub fn has_peg_symbol(&self) -> bool {
4327        self.message.body.has(tag::PEG_SYMBOL)
4328    }
4329
4330
4331
4332
4333    /// Sets `PeggedPrice`, Tag 839.
4334    pub fn set_pegged_price(&mut self, val: Decimal, scale: i32) {
4335        self.message.body.set_field(tag::PEGGED_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4336    }
4337
4338    /// Gets `PeggedPrice`, Tag 839.
4339    pub fn get_pegged_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4340        let mut fld = field::PeggedPriceField::new(Decimal::ZERO, 0);
4341        self.message.body.get_field(tag::PEGGED_PRICE, &mut fld.0)?;
4342        Ok(fld.value())
4343    }
4344
4345
4346    /// Returns true if `PeggedPrice` is present, Tag 839.
4347    pub fn has_pegged_price(&self) -> bool {
4348        self.message.body.has(tag::PEGGED_PRICE)
4349    }
4350
4351
4352
4353
4354    /// Sets `PeggedRefPrice`, Tag 1095.
4355    pub fn set_pegged_ref_price(&mut self, val: Decimal, scale: i32) {
4356        self.message.body.set_field(tag::PEGGED_REF_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4357    }
4358
4359    /// Gets `PeggedRefPrice`, Tag 1095.
4360    pub fn get_pegged_ref_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4361        let mut fld = field::PeggedRefPriceField::new(Decimal::ZERO, 0);
4362        self.message.body.get_field(tag::PEGGED_REF_PRICE, &mut fld.0)?;
4363        Ok(fld.value())
4364    }
4365
4366
4367    /// Returns true if `PeggedRefPrice` is present, Tag 1095.
4368    pub fn has_pegged_ref_price(&self) -> bool {
4369        self.message.body.has(tag::PEGGED_REF_PRICE)
4370    }
4371
4372
4373
4374
4375    /// Sets `Pool`, Tag 691.
4376    pub fn set_pool(&mut self, v: String) {
4377        self.message.body.set_field(tag::POOL, FIXString::from(v));
4378    }
4379
4380    /// Gets `Pool`, Tag 691.
4381    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
4382        let mut fld = field::PoolField::new(String::new());
4383        self.message.body.get_field(tag::POOL, &mut fld.0)?;
4384        Ok(fld.value().to_string())
4385    }
4386
4387
4388    /// Returns true if `Pool` is present, Tag 691.
4389    pub fn has_pool(&self) -> bool {
4390        self.message.body.has(tag::POOL)
4391    }
4392
4393
4394
4395
4396    /// Sets `PositionEffect`, Tag 77.
4397    pub fn set_position_effect(&mut self, v: String) {
4398        self.message.body.set_field(tag::POSITION_EFFECT, FIXString::from(v));
4399    }
4400
4401    /// Gets `PositionEffect`, Tag 77.
4402    pub fn get_position_effect(&self) -> Result<String, MessageRejectErrorEnum> {
4403        let mut fld = field::PositionEffectField::new(String::new());
4404        self.message.body.get_field(tag::POSITION_EFFECT, &mut fld.0)?;
4405        Ok(fld.value().to_string())
4406    }
4407
4408
4409    /// Returns true if `PositionEffect` is present, Tag 77.
4410    pub fn has_position_effect(&self) -> bool {
4411        self.message.body.has(tag::POSITION_EFFECT)
4412    }
4413
4414
4415
4416
4417    /// Sets `PositionLimit`, Tag 970.
4418    pub fn set_position_limit(&mut self, v: isize) {
4419        self.message.body.set_field(tag::POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
4420    }
4421
4422    /// Gets `PositionLimit`, Tag 970.
4423    pub fn get_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
4424        let mut fld = field::PositionLimitField::new(0);
4425        self.message.body.get_field(tag::POSITION_LIMIT, &mut fld.0)?;
4426        Ok(fld.value())
4427    }
4428
4429
4430    /// Returns true if `PositionLimit` is present, Tag 970.
4431    pub fn has_position_limit(&self) -> bool {
4432        self.message.body.has(tag::POSITION_LIMIT)
4433    }
4434
4435
4436
4437
4438    /// Sets `PreTradeAnonymity`, Tag 1091.
4439    pub fn set_pre_trade_anonymity(&mut self, v: bool) {
4440        self.message.body.set_field(tag::PRE_TRADE_ANONYMITY, fixer::fix_boolean::FIXBoolean::from(v));
4441    }
4442
4443    /// Gets `PreTradeAnonymity`, Tag 1091.
4444    pub fn get_pre_trade_anonymity(&self) -> Result<bool, MessageRejectErrorEnum> {
4445        let mut fld = field::PreTradeAnonymityField::new(false);
4446        self.message.body.get_field(tag::PRE_TRADE_ANONYMITY, &mut fld.0)?;
4447        Ok(fld.value())
4448    }
4449
4450
4451    /// Returns true if `PreTradeAnonymity` is present, Tag 1091.
4452    pub fn has_pre_trade_anonymity(&self) -> bool {
4453        self.message.body.has(tag::PRE_TRADE_ANONYMITY)
4454    }
4455
4456
4457
4458
4459    /// Sets `PreallocMethod`, Tag 591.
4460    pub fn set_prealloc_method(&mut self, v: String) {
4461        self.message.body.set_field(tag::PREALLOC_METHOD, FIXString::from(v));
4462    }
4463
4464    /// Gets `PreallocMethod`, Tag 591.
4465    pub fn get_prealloc_method(&self) -> Result<String, MessageRejectErrorEnum> {
4466        let mut fld = field::PreallocMethodField::new(String::new());
4467        self.message.body.get_field(tag::PREALLOC_METHOD, &mut fld.0)?;
4468        Ok(fld.value().to_string())
4469    }
4470
4471
4472    /// Returns true if `PreallocMethod` is present, Tag 591.
4473    pub fn has_prealloc_method(&self) -> bool {
4474        self.message.body.has(tag::PREALLOC_METHOD)
4475    }
4476
4477
4478
4479
4480    /// Sets `Price`, Tag 44.
4481    pub fn set_price(&mut self, val: Decimal, scale: i32) {
4482        self.message.body.set_field(tag::PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4483    }
4484
4485    /// Gets `Price`, Tag 44.
4486    pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4487        let mut fld = field::PriceField::new(Decimal::ZERO, 0);
4488        self.message.body.get_field(tag::PRICE, &mut fld.0)?;
4489        Ok(fld.value())
4490    }
4491
4492
4493    /// Returns true if `Price` is present, Tag 44.
4494    pub fn has_price(&self) -> bool {
4495        self.message.body.has(tag::PRICE)
4496    }
4497
4498
4499
4500
4501    /// Sets `PriceDelta`, Tag 811.
4502    pub fn set_price_delta(&mut self, val: Decimal, scale: i32) {
4503        self.message.body.set_field(tag::PRICE_DELTA, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4504    }
4505
4506    /// Gets `PriceDelta`, Tag 811.
4507    pub fn get_price_delta(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4508        let mut fld = field::PriceDeltaField::new(Decimal::ZERO, 0);
4509        self.message.body.get_field(tag::PRICE_DELTA, &mut fld.0)?;
4510        Ok(fld.value())
4511    }
4512
4513
4514    /// Returns true if `PriceDelta` is present, Tag 811.
4515    pub fn has_price_delta(&self) -> bool {
4516        self.message.body.has(tag::PRICE_DELTA)
4517    }
4518
4519
4520
4521
4522    /// Sets `PriceImprovement`, Tag 639.
4523    pub fn set_price_improvement(&mut self, val: Decimal, scale: i32) {
4524        self.message.body.set_field(tag::PRICE_IMPROVEMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4525    }
4526
4527    /// Gets `PriceImprovement`, Tag 639.
4528    pub fn get_price_improvement(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4529        let mut fld = field::PriceImprovementField::new(Decimal::ZERO, 0);
4530        self.message.body.get_field(tag::PRICE_IMPROVEMENT, &mut fld.0)?;
4531        Ok(fld.value())
4532    }
4533
4534
4535    /// Returns true if `PriceImprovement` is present, Tag 639.
4536    pub fn has_price_improvement(&self) -> bool {
4537        self.message.body.has(tag::PRICE_IMPROVEMENT)
4538    }
4539
4540
4541
4542
4543    /// Sets `PriceProtectionScope`, Tag 1092.
4544    pub fn set_price_protection_scope(&mut self, v: String) {
4545        self.message.body.set_field(tag::PRICE_PROTECTION_SCOPE, FIXString::from(v));
4546    }
4547
4548    /// Gets `PriceProtectionScope`, Tag 1092.
4549    pub fn get_price_protection_scope(&self) -> Result<String, MessageRejectErrorEnum> {
4550        let mut fld = field::PriceProtectionScopeField::new(String::new());
4551        self.message.body.get_field(tag::PRICE_PROTECTION_SCOPE, &mut fld.0)?;
4552        Ok(fld.value().to_string())
4553    }
4554
4555
4556    /// Returns true if `PriceProtectionScope` is present, Tag 1092.
4557    pub fn has_price_protection_scope(&self) -> bool {
4558        self.message.body.has(tag::PRICE_PROTECTION_SCOPE)
4559    }
4560
4561
4562
4563
4564    /// Sets `PriceQuoteMethod`, Tag 1196.
4565    pub fn set_price_quote_method(&mut self, v: String) {
4566        self.message.body.set_field(tag::PRICE_QUOTE_METHOD, FIXString::from(v));
4567    }
4568
4569    /// Gets `PriceQuoteMethod`, Tag 1196.
4570    pub fn get_price_quote_method(&self) -> Result<String, MessageRejectErrorEnum> {
4571        let mut fld = field::PriceQuoteMethodField::new(String::new());
4572        self.message.body.get_field(tag::PRICE_QUOTE_METHOD, &mut fld.0)?;
4573        Ok(fld.value().to_string())
4574    }
4575
4576
4577    /// Returns true if `PriceQuoteMethod` is present, Tag 1196.
4578    pub fn has_price_quote_method(&self) -> bool {
4579        self.message.body.has(tag::PRICE_QUOTE_METHOD)
4580    }
4581
4582
4583
4584
4585    /// Sets `PriceType`, Tag 423.
4586    pub fn set_price_type(&mut self, v: isize) {
4587        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
4588    }
4589
4590    /// Gets `PriceType`, Tag 423.
4591    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4592        let mut fld = field::PriceTypeField::new(0);
4593        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
4594        Ok(fld.value())
4595    }
4596
4597
4598    /// Returns true if `PriceType` is present, Tag 423.
4599    pub fn has_price_type(&self) -> bool {
4600        self.message.body.has(tag::PRICE_TYPE)
4601    }
4602
4603
4604
4605
4606    /// Sets `PriceUnitOfMeasure`, Tag 1191.
4607    pub fn set_price_unit_of_measure(&mut self, v: String) {
4608        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE, FIXString::from(v));
4609    }
4610
4611    /// Gets `PriceUnitOfMeasure`, Tag 1191.
4612    pub fn get_price_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
4613        let mut fld = field::PriceUnitOfMeasureField::new(String::new());
4614        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE, &mut fld.0)?;
4615        Ok(fld.value().to_string())
4616    }
4617
4618
4619    /// Returns true if `PriceUnitOfMeasure` is present, Tag 1191.
4620    pub fn has_price_unit_of_measure(&self) -> bool {
4621        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE)
4622    }
4623
4624
4625
4626
4627    /// Sets `PriceUnitOfMeasureQty`, Tag 1192.
4628    pub fn set_price_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
4629        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4630    }
4631
4632    /// Gets `PriceUnitOfMeasureQty`, Tag 1192.
4633    pub fn get_price_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4634        let mut fld = field::PriceUnitOfMeasureQtyField::new(Decimal::ZERO, 0);
4635        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE_QTY, &mut fld.0)?;
4636        Ok(fld.value())
4637    }
4638
4639
4640    /// Returns true if `PriceUnitOfMeasureQty` is present, Tag 1192.
4641    pub fn has_price_unit_of_measure_qty(&self) -> bool {
4642        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE_QTY)
4643    }
4644
4645
4646
4647
4648    /// Sets `PriorityIndicator`, Tag 638.
4649    pub fn set_priority_indicator(&mut self, v: isize) {
4650        self.message.body.set_field(tag::PRIORITY_INDICATOR, fixer::fix_int::FIXInt::from(v));
4651    }
4652
4653    /// Gets `PriorityIndicator`, Tag 638.
4654    pub fn get_priority_indicator(&self) -> Result<isize, MessageRejectErrorEnum> {
4655        let mut fld = field::PriorityIndicatorField::new(0);
4656        self.message.body.get_field(tag::PRIORITY_INDICATOR, &mut fld.0)?;
4657        Ok(fld.value())
4658    }
4659
4660
4661    /// Returns true if `PriorityIndicator` is present, Tag 638.
4662    pub fn has_priority_indicator(&self) -> bool {
4663        self.message.body.has(tag::PRIORITY_INDICATOR)
4664    }
4665
4666
4667
4668
4669    /// Sets `Product`, Tag 460.
4670    pub fn set_product(&mut self, v: isize) {
4671        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
4672    }
4673
4674    /// Gets `Product`, Tag 460.
4675    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
4676        let mut fld = field::ProductField::new(0);
4677        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
4678        Ok(fld.value())
4679    }
4680
4681
4682    /// Returns true if `Product` is present, Tag 460.
4683    pub fn has_product(&self) -> bool {
4684        self.message.body.has(tag::PRODUCT)
4685    }
4686
4687
4688
4689
4690    /// Sets `ProductComplex`, Tag 1227.
4691    pub fn set_product_complex(&mut self, v: String) {
4692        self.message.body.set_field(tag::PRODUCT_COMPLEX, FIXString::from(v));
4693    }
4694
4695    /// Gets `ProductComplex`, Tag 1227.
4696    pub fn get_product_complex(&self) -> Result<String, MessageRejectErrorEnum> {
4697        let mut fld = field::ProductComplexField::new(String::new());
4698        self.message.body.get_field(tag::PRODUCT_COMPLEX, &mut fld.0)?;
4699        Ok(fld.value().to_string())
4700    }
4701
4702
4703    /// Returns true if `ProductComplex` is present, Tag 1227.
4704    pub fn has_product_complex(&self) -> bool {
4705        self.message.body.has(tag::PRODUCT_COMPLEX)
4706    }
4707
4708
4709
4710
4711    /// Sets `PutOrCall`, Tag 201.
4712    pub fn set_put_or_call(&mut self, v: isize) {
4713        self.message.body.set_field(tag::PUT_OR_CALL, fixer::fix_int::FIXInt::from(v));
4714    }
4715
4716    /// Gets `PutOrCall`, Tag 201.
4717    pub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum> {
4718        let mut fld = field::PutOrCallField::new(0);
4719        self.message.body.get_field(tag::PUT_OR_CALL, &mut fld.0)?;
4720        Ok(fld.value())
4721    }
4722
4723
4724    /// Returns true if `PutOrCall` is present, Tag 201.
4725    pub fn has_put_or_call(&self) -> bool {
4726        self.message.body.has(tag::PUT_OR_CALL)
4727    }
4728
4729
4730
4731
4732    /// Sets `QtyType`, Tag 854.
4733    pub fn set_qty_type(&mut self, v: isize) {
4734        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
4735    }
4736
4737    /// Gets `QtyType`, Tag 854.
4738    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4739        let mut fld = field::QtyTypeField::new(0);
4740        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
4741        Ok(fld.value())
4742    }
4743
4744
4745    /// Returns true if `QtyType` is present, Tag 854.
4746    pub fn has_qty_type(&self) -> bool {
4747        self.message.body.has(tag::QTY_TYPE)
4748    }
4749
4750
4751
4752
4753    /// Sets `QuoteRespID`, Tag 693.
4754    pub fn set_quote_resp_id(&mut self, v: String) {
4755        self.message.body.set_field(tag::QUOTE_RESP_ID, FIXString::from(v));
4756    }
4757
4758    /// Gets `QuoteRespID`, Tag 693.
4759    pub fn get_quote_resp_id(&self) -> Result<String, MessageRejectErrorEnum> {
4760        let mut fld = field::QuoteRespIDField::new(String::new());
4761        self.message.body.get_field(tag::QUOTE_RESP_ID, &mut fld.0)?;
4762        Ok(fld.value().to_string())
4763    }
4764
4765
4766    /// Returns true if `QuoteRespID` is present, Tag 693.
4767    pub fn has_quote_resp_id(&self) -> bool {
4768        self.message.body.has(tag::QUOTE_RESP_ID)
4769    }
4770
4771
4772
4773
4774    /// Sets `ReceivedDeptID`, Tag 1030.
4775    pub fn set_received_dept_id(&mut self, v: String) {
4776        self.message.body.set_field(tag::RECEIVED_DEPT_ID, FIXString::from(v));
4777    }
4778
4779    /// Gets `ReceivedDeptID`, Tag 1030.
4780    pub fn get_received_dept_id(&self) -> Result<String, MessageRejectErrorEnum> {
4781        let mut fld = field::ReceivedDeptIDField::new(String::new());
4782        self.message.body.get_field(tag::RECEIVED_DEPT_ID, &mut fld.0)?;
4783        Ok(fld.value().to_string())
4784    }
4785
4786
4787    /// Returns true if `ReceivedDeptID` is present, Tag 1030.
4788    pub fn has_received_dept_id(&self) -> bool {
4789        self.message.body.has(tag::RECEIVED_DEPT_ID)
4790    }
4791
4792
4793
4794
4795    /// Sets `RedemptionDate`, Tag 240.
4796    pub fn set_redemption_date(&mut self, v: String) {
4797        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
4798    }
4799
4800    /// Gets `RedemptionDate`, Tag 240.
4801    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
4802        let mut fld = field::RedemptionDateField::new(String::new());
4803        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
4804        Ok(fld.value().to_string())
4805    }
4806
4807
4808    /// Returns true if `RedemptionDate` is present, Tag 240.
4809    pub fn has_redemption_date(&self) -> bool {
4810        self.message.body.has(tag::REDEMPTION_DATE)
4811    }
4812
4813
4814
4815
4816    /// Sets `RefreshQty`, Tag 1088.
4817    pub fn set_refresh_qty(&mut self, val: Decimal, scale: i32) {
4818        self.message.body.set_field(tag::REFRESH_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4819    }
4820
4821    /// Gets `RefreshQty`, Tag 1088.
4822    pub fn get_refresh_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4823        let mut fld = field::RefreshQtyField::new(Decimal::ZERO, 0);
4824        self.message.body.get_field(tag::REFRESH_QTY, &mut fld.0)?;
4825        Ok(fld.value())
4826    }
4827
4828
4829    /// Returns true if `RefreshQty` is present, Tag 1088.
4830    pub fn has_refresh_qty(&self) -> bool {
4831        self.message.body.has(tag::REFRESH_QTY)
4832    }
4833
4834
4835
4836
4837    /// Sets `RegistID`, Tag 513.
4838    pub fn set_regist_id(&mut self, v: String) {
4839        self.message.body.set_field(tag::REGIST_ID, FIXString::from(v));
4840    }
4841
4842    /// Gets `RegistID`, Tag 513.
4843    pub fn get_regist_id(&self) -> Result<String, MessageRejectErrorEnum> {
4844        let mut fld = field::RegistIDField::new(String::new());
4845        self.message.body.get_field(tag::REGIST_ID, &mut fld.0)?;
4846        Ok(fld.value().to_string())
4847    }
4848
4849
4850    /// Returns true if `RegistID` is present, Tag 513.
4851    pub fn has_regist_id(&self) -> bool {
4852        self.message.body.has(tag::REGIST_ID)
4853    }
4854
4855
4856
4857
4858    /// Sets `RepoCollateralSecurityType`, Tag 239.
4859    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
4860        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
4861    }
4862
4863    /// Gets `RepoCollateralSecurityType`, Tag 239.
4864    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4865        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
4866        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
4867        Ok(fld.value())
4868    }
4869
4870
4871    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
4872    pub fn has_repo_collateral_security_type(&self) -> bool {
4873        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
4874    }
4875
4876
4877
4878
4879    /// Sets `ReportToExch`, Tag 113.
4880    pub fn set_report_to_exch(&mut self, v: bool) {
4881        self.message.body.set_field(tag::REPORT_TO_EXCH, fixer::fix_boolean::FIXBoolean::from(v));
4882    }
4883
4884    /// Gets `ReportToExch`, Tag 113.
4885    pub fn get_report_to_exch(&self) -> Result<bool, MessageRejectErrorEnum> {
4886        let mut fld = field::ReportToExchField::new(false);
4887        self.message.body.get_field(tag::REPORT_TO_EXCH, &mut fld.0)?;
4888        Ok(fld.value())
4889    }
4890
4891
4892    /// Returns true if `ReportToExch` is present, Tag 113.
4893    pub fn has_report_to_exch(&self) -> bool {
4894        self.message.body.has(tag::REPORT_TO_EXCH)
4895    }
4896
4897
4898
4899
4900    /// Sets `RepurchaseRate`, Tag 227.
4901    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
4902        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4903    }
4904
4905    /// Gets `RepurchaseRate`, Tag 227.
4906    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4907        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
4908        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
4909        Ok(fld.value())
4910    }
4911
4912
4913    /// Returns true if `RepurchaseRate` is present, Tag 227.
4914    pub fn has_repurchase_rate(&self) -> bool {
4915        self.message.body.has(tag::REPURCHASE_RATE)
4916    }
4917
4918
4919
4920
4921    /// Sets `RepurchaseTerm`, Tag 226.
4922    pub fn set_repurchase_term(&mut self, v: isize) {
4923        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
4924    }
4925
4926    /// Gets `RepurchaseTerm`, Tag 226.
4927    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
4928        let mut fld = field::RepurchaseTermField::new(0);
4929        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
4930        Ok(fld.value())
4931    }
4932
4933
4934    /// Returns true if `RepurchaseTerm` is present, Tag 226.
4935    pub fn has_repurchase_term(&self) -> bool {
4936        self.message.body.has(tag::REPURCHASE_TERM)
4937    }
4938
4939
4940
4941
4942    /// Sets `RestructuringType`, Tag 1449.
4943    pub fn set_restructuring_type(&mut self, v: String) {
4944        self.message.body.set_field(tag::RESTRUCTURING_TYPE, FIXString::from(v));
4945    }
4946
4947    /// Gets `RestructuringType`, Tag 1449.
4948    pub fn get_restructuring_type(&self) -> Result<String, MessageRejectErrorEnum> {
4949        let mut fld = field::RestructuringTypeField::new(String::new());
4950        self.message.body.get_field(tag::RESTRUCTURING_TYPE, &mut fld.0)?;
4951        Ok(fld.value().to_string())
4952    }
4953
4954
4955    /// Returns true if `RestructuringType` is present, Tag 1449.
4956    pub fn has_restructuring_type(&self) -> bool {
4957        self.message.body.has(tag::RESTRUCTURING_TYPE)
4958    }
4959
4960
4961
4962
4963    /// Sets `RiskFreeRate`, Tag 1190.
4964    pub fn set_risk_free_rate(&mut self, val: Decimal, scale: i32) {
4965        self.message.body.set_field(tag::RISK_FREE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4966    }
4967
4968    /// Gets `RiskFreeRate`, Tag 1190.
4969    pub fn get_risk_free_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4970        let mut fld = field::RiskFreeRateField::new(Decimal::ZERO, 0);
4971        self.message.body.get_field(tag::RISK_FREE_RATE, &mut fld.0)?;
4972        Ok(fld.value())
4973    }
4974
4975
4976    /// Returns true if `RiskFreeRate` is present, Tag 1190.
4977    pub fn has_risk_free_rate(&self) -> bool {
4978        self.message.body.has(tag::RISK_FREE_RATE)
4979    }
4980
4981
4982
4983
4984    /// Sets `RoundingDirection`, Tag 468.
4985    pub fn set_rounding_direction(&mut self, v: String) {
4986        self.message.body.set_field(tag::ROUNDING_DIRECTION, FIXString::from(v));
4987    }
4988
4989    /// Gets `RoundingDirection`, Tag 468.
4990    pub fn get_rounding_direction(&self) -> Result<String, MessageRejectErrorEnum> {
4991        let mut fld = field::RoundingDirectionField::new(String::new());
4992        self.message.body.get_field(tag::ROUNDING_DIRECTION, &mut fld.0)?;
4993        Ok(fld.value().to_string())
4994    }
4995
4996
4997    /// Returns true if `RoundingDirection` is present, Tag 468.
4998    pub fn has_rounding_direction(&self) -> bool {
4999        self.message.body.has(tag::ROUNDING_DIRECTION)
5000    }
5001
5002
5003
5004
5005    /// Sets `RoundingModulus`, Tag 469.
5006    pub fn set_rounding_modulus(&mut self, val: Decimal, scale: i32) {
5007        self.message.body.set_field(tag::ROUNDING_MODULUS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5008    }
5009
5010    /// Gets `RoundingModulus`, Tag 469.
5011    pub fn get_rounding_modulus(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5012        let mut fld = field::RoundingModulusField::new(Decimal::ZERO, 0);
5013        self.message.body.get_field(tag::ROUNDING_MODULUS, &mut fld.0)?;
5014        Ok(fld.value())
5015    }
5016
5017
5018    /// Returns true if `RoundingModulus` is present, Tag 469.
5019    pub fn has_rounding_modulus(&self) -> bool {
5020        self.message.body.has(tag::ROUNDING_MODULUS)
5021    }
5022
5023
5024
5025
5026    /// Sets `SecondaryClOrdID`, Tag 526.
5027    pub fn set_secondary_cl_ord_id(&mut self, v: String) {
5028        self.message.body.set_field(tag::SECONDARY_CL_ORD_ID, FIXString::from(v));
5029    }
5030
5031    /// Gets `SecondaryClOrdID`, Tag 526.
5032    pub fn get_secondary_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
5033        let mut fld = field::SecondaryClOrdIDField::new(String::new());
5034        self.message.body.get_field(tag::SECONDARY_CL_ORD_ID, &mut fld.0)?;
5035        Ok(fld.value().to_string())
5036    }
5037
5038
5039    /// Returns true if `SecondaryClOrdID` is present, Tag 526.
5040    pub fn has_secondary_cl_ord_id(&self) -> bool {
5041        self.message.body.has(tag::SECONDARY_CL_ORD_ID)
5042    }
5043
5044
5045
5046
5047    /// Sets `SecondaryDisplayQty`, Tag 1082.
5048    pub fn set_secondary_display_qty(&mut self, val: Decimal, scale: i32) {
5049        self.message.body.set_field(tag::SECONDARY_DISPLAY_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5050    }
5051
5052    /// Gets `SecondaryDisplayQty`, Tag 1082.
5053    pub fn get_secondary_display_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5054        let mut fld = field::SecondaryDisplayQtyField::new(Decimal::ZERO, 0);
5055        self.message.body.get_field(tag::SECONDARY_DISPLAY_QTY, &mut fld.0)?;
5056        Ok(fld.value())
5057    }
5058
5059
5060    /// Returns true if `SecondaryDisplayQty` is present, Tag 1082.
5061    pub fn has_secondary_display_qty(&self) -> bool {
5062        self.message.body.has(tag::SECONDARY_DISPLAY_QTY)
5063    }
5064
5065
5066
5067
5068    /// Sets `SecondaryExecID`, Tag 527.
5069    pub fn set_secondary_exec_id(&mut self, v: String) {
5070        self.message.body.set_field(tag::SECONDARY_EXEC_ID, FIXString::from(v));
5071    }
5072
5073    /// Gets `SecondaryExecID`, Tag 527.
5074    pub fn get_secondary_exec_id(&self) -> Result<String, MessageRejectErrorEnum> {
5075        let mut fld = field::SecondaryExecIDField::new(String::new());
5076        self.message.body.get_field(tag::SECONDARY_EXEC_ID, &mut fld.0)?;
5077        Ok(fld.value().to_string())
5078    }
5079
5080
5081    /// Returns true if `SecondaryExecID` is present, Tag 527.
5082    pub fn has_secondary_exec_id(&self) -> bool {
5083        self.message.body.has(tag::SECONDARY_EXEC_ID)
5084    }
5085
5086
5087
5088
5089    /// Sets `SecondaryOrderID`, Tag 198.
5090    pub fn set_secondary_order_id(&mut self, v: String) {
5091        self.message.body.set_field(tag::SECONDARY_ORDER_ID, FIXString::from(v));
5092    }
5093
5094    /// Gets `SecondaryOrderID`, Tag 198.
5095    pub fn get_secondary_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
5096        let mut fld = field::SecondaryOrderIDField::new(String::new());
5097        self.message.body.get_field(tag::SECONDARY_ORDER_ID, &mut fld.0)?;
5098        Ok(fld.value().to_string())
5099    }
5100
5101
5102    /// Returns true if `SecondaryOrderID` is present, Tag 198.
5103    pub fn has_secondary_order_id(&self) -> bool {
5104        self.message.body.has(tag::SECONDARY_ORDER_ID)
5105    }
5106
5107
5108
5109
5110    /// Sets `SecurityDesc`, Tag 107.
5111    pub fn set_security_desc(&mut self, v: String) {
5112        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
5113    }
5114
5115    /// Gets `SecurityDesc`, Tag 107.
5116    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
5117        let mut fld = field::SecurityDescField::new(String::new());
5118        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
5119        Ok(fld.value().to_string())
5120    }
5121
5122
5123    /// Returns true if `SecurityDesc` is present, Tag 107.
5124    pub fn has_security_desc(&self) -> bool {
5125        self.message.body.has(tag::SECURITY_DESC)
5126    }
5127
5128
5129
5130
5131    /// Sets `SecurityExchange`, Tag 207.
5132    pub fn set_security_exchange(&mut self, v: String) {
5133        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
5134    }
5135
5136    /// Gets `SecurityExchange`, Tag 207.
5137    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
5138        let mut fld = field::SecurityExchangeField::new(String::new());
5139        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
5140        Ok(fld.value().to_string())
5141    }
5142
5143
5144    /// Returns true if `SecurityExchange` is present, Tag 207.
5145    pub fn has_security_exchange(&self) -> bool {
5146        self.message.body.has(tag::SECURITY_EXCHANGE)
5147    }
5148
5149
5150
5151
5152    /// Sets `SecurityGroup`, Tag 1151.
5153    pub fn set_security_group(&mut self, v: String) {
5154        self.message.body.set_field(tag::SECURITY_GROUP, FIXString::from(v));
5155    }
5156
5157    /// Gets `SecurityGroup`, Tag 1151.
5158    pub fn get_security_group(&self) -> Result<String, MessageRejectErrorEnum> {
5159        let mut fld = field::SecurityGroupField::new(String::new());
5160        self.message.body.get_field(tag::SECURITY_GROUP, &mut fld.0)?;
5161        Ok(fld.value().to_string())
5162    }
5163
5164
5165    /// Returns true if `SecurityGroup` is present, Tag 1151.
5166    pub fn has_security_group(&self) -> bool {
5167        self.message.body.has(tag::SECURITY_GROUP)
5168    }
5169
5170
5171
5172
5173    /// Sets `SecurityID`, Tag 48.
5174    pub fn set_security_id(&mut self, v: String) {
5175        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
5176    }
5177
5178    /// Gets `SecurityID`, Tag 48.
5179    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
5180        let mut fld = field::SecurityIDField::new(String::new());
5181        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
5182        Ok(fld.value().to_string())
5183    }
5184
5185
5186    /// Returns true if `SecurityID` is present, Tag 48.
5187    pub fn has_security_id(&self) -> bool {
5188        self.message.body.has(tag::SECURITY_ID)
5189    }
5190
5191
5192
5193
5194    /// Sets `SecurityIDSource`, Tag 22.
5195    pub fn set_security_id_source(&mut self, v: String) {
5196        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
5197    }
5198
5199    /// Gets `SecurityIDSource`, Tag 22.
5200    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
5201        let mut fld = field::SecurityIDSourceField::new(String::new());
5202        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
5203        Ok(fld.value().to_string())
5204    }
5205
5206
5207    /// Returns true if `SecurityIDSource` is present, Tag 22.
5208    pub fn has_security_id_source(&self) -> bool {
5209        self.message.body.has(tag::SECURITY_ID_SOURCE)
5210    }
5211
5212
5213
5214
5215    /// Sets `SecurityStatus`, Tag 965.
5216    pub fn set_security_status(&mut self, v: String) {
5217        self.message.body.set_field(tag::SECURITY_STATUS, FIXString::from(v));
5218    }
5219
5220    /// Gets `SecurityStatus`, Tag 965.
5221    pub fn get_security_status(&self) -> Result<String, MessageRejectErrorEnum> {
5222        let mut fld = field::SecurityStatusField::new(String::new());
5223        self.message.body.get_field(tag::SECURITY_STATUS, &mut fld.0)?;
5224        Ok(fld.value().to_string())
5225    }
5226
5227
5228    /// Returns true if `SecurityStatus` is present, Tag 965.
5229    pub fn has_security_status(&self) -> bool {
5230        self.message.body.has(tag::SECURITY_STATUS)
5231    }
5232
5233
5234
5235
5236    /// Sets `SecuritySubType`, Tag 762.
5237    pub fn set_security_sub_type(&mut self, v: String) {
5238        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
5239    }
5240
5241    /// Gets `SecuritySubType`, Tag 762.
5242    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
5243        let mut fld = field::SecuritySubTypeField::new(String::new());
5244        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
5245        Ok(fld.value().to_string())
5246    }
5247
5248
5249    /// Returns true if `SecuritySubType` is present, Tag 762.
5250    pub fn has_security_sub_type(&self) -> bool {
5251        self.message.body.has(tag::SECURITY_SUB_TYPE)
5252    }
5253
5254
5255
5256
5257    /// Sets `SecurityType`, Tag 167.
5258    pub fn set_security_type(&mut self, v: String) {
5259        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
5260    }
5261
5262    /// Gets `SecurityType`, Tag 167.
5263    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
5264        let mut fld = field::SecurityTypeField::new(String::new());
5265        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
5266        Ok(fld.value().to_string())
5267    }
5268
5269
5270    /// Returns true if `SecurityType` is present, Tag 167.
5271    pub fn has_security_type(&self) -> bool {
5272        self.message.body.has(tag::SECURITY_TYPE)
5273    }
5274
5275
5276
5277
5278    /// Sets `SecurityXML`, Tag 1185.
5279    pub fn set_security_xml(&mut self, v: String) {
5280        self.message.body.set_field(tag::SECURITY_XML, FIXString::from(v));
5281    }
5282
5283    /// Gets `SecurityXML`, Tag 1185.
5284    pub fn get_security_xml(&self) -> Result<String, MessageRejectErrorEnum> {
5285        let mut fld = field::SecurityXMLField::new(String::new());
5286        self.message.body.get_field(tag::SECURITY_XML, &mut fld.0)?;
5287        Ok(fld.value().to_string())
5288    }
5289
5290
5291    /// Returns true if `SecurityXML` is present, Tag 1185.
5292    pub fn has_security_xml(&self) -> bool {
5293        self.message.body.has(tag::SECURITY_XML)
5294    }
5295
5296
5297
5298
5299    /// Sets `SecurityXMLLen`, Tag 1184.
5300    pub fn set_security_xml_len(&mut self, v: isize) {
5301        self.message.body.set_field(tag::SECURITY_XML_LEN, fixer::fix_int::FIXInt::from(v));
5302    }
5303
5304    /// Gets `SecurityXMLLen`, Tag 1184.
5305    pub fn get_security_xml_len(&self) -> Result<isize, MessageRejectErrorEnum> {
5306        let mut fld = field::SecurityXMLLenField::new(0);
5307        self.message.body.get_field(tag::SECURITY_XML_LEN, &mut fld.0)?;
5308        Ok(fld.value())
5309    }
5310
5311
5312    /// Returns true if `SecurityXMLLen` is present, Tag 1184.
5313    pub fn has_security_xml_len(&self) -> bool {
5314        self.message.body.has(tag::SECURITY_XML_LEN)
5315    }
5316
5317
5318
5319
5320    /// Sets `SecurityXMLSchema`, Tag 1186.
5321    pub fn set_security_xml_schema(&mut self, v: String) {
5322        self.message.body.set_field(tag::SECURITY_XML_SCHEMA, FIXString::from(v));
5323    }
5324
5325    /// Gets `SecurityXMLSchema`, Tag 1186.
5326    pub fn get_security_xml_schema(&self) -> Result<String, MessageRejectErrorEnum> {
5327        let mut fld = field::SecurityXMLSchemaField::new(String::new());
5328        self.message.body.get_field(tag::SECURITY_XML_SCHEMA, &mut fld.0)?;
5329        Ok(fld.value().to_string())
5330    }
5331
5332
5333    /// Returns true if `SecurityXMLSchema` is present, Tag 1186.
5334    pub fn has_security_xml_schema(&self) -> bool {
5335        self.message.body.has(tag::SECURITY_XML_SCHEMA)
5336    }
5337
5338
5339
5340
5341    /// Sets `Seniority`, Tag 1450.
5342    pub fn set_seniority(&mut self, v: String) {
5343        self.message.body.set_field(tag::SENIORITY, FIXString::from(v));
5344    }
5345
5346    /// Gets `Seniority`, Tag 1450.
5347    pub fn get_seniority(&self) -> Result<String, MessageRejectErrorEnum> {
5348        let mut fld = field::SeniorityField::new(String::new());
5349        self.message.body.get_field(tag::SENIORITY, &mut fld.0)?;
5350        Ok(fld.value().to_string())
5351    }
5352
5353
5354    /// Returns true if `Seniority` is present, Tag 1450.
5355    pub fn has_seniority(&self) -> bool {
5356        self.message.body.has(tag::SENIORITY)
5357    }
5358
5359
5360
5361
5362    /// Sets `SettlCurrAmt`, Tag 119.
5363    pub fn set_settl_curr_amt(&mut self, val: Decimal, scale: i32) {
5364        self.message.body.set_field(tag::SETTL_CURR_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5365    }
5366
5367    /// Gets `SettlCurrAmt`, Tag 119.
5368    pub fn get_settl_curr_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5369        let mut fld = field::SettlCurrAmtField::new(Decimal::ZERO, 0);
5370        self.message.body.get_field(tag::SETTL_CURR_AMT, &mut fld.0)?;
5371        Ok(fld.value())
5372    }
5373
5374
5375    /// Returns true if `SettlCurrAmt` is present, Tag 119.
5376    pub fn has_settl_curr_amt(&self) -> bool {
5377        self.message.body.has(tag::SETTL_CURR_AMT)
5378    }
5379
5380
5381
5382
5383    /// Sets `SettlCurrFxRate`, Tag 155.
5384    pub fn set_settl_curr_fx_rate(&mut self, val: Decimal, scale: i32) {
5385        self.message.body.set_field(tag::SETTL_CURR_FX_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5386    }
5387
5388    /// Gets `SettlCurrFxRate`, Tag 155.
5389    pub fn get_settl_curr_fx_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5390        let mut fld = field::SettlCurrFxRateField::new(Decimal::ZERO, 0);
5391        self.message.body.get_field(tag::SETTL_CURR_FX_RATE, &mut fld.0)?;
5392        Ok(fld.value())
5393    }
5394
5395
5396    /// Returns true if `SettlCurrFxRate` is present, Tag 155.
5397    pub fn has_settl_curr_fx_rate(&self) -> bool {
5398        self.message.body.has(tag::SETTL_CURR_FX_RATE)
5399    }
5400
5401
5402
5403
5404    /// Sets `SettlCurrFxRateCalc`, Tag 156.
5405    pub fn set_settl_curr_fx_rate_calc(&mut self, v: String) {
5406        self.message.body.set_field(tag::SETTL_CURR_FX_RATE_CALC, FIXString::from(v));
5407    }
5408
5409    /// Gets `SettlCurrFxRateCalc`, Tag 156.
5410    pub fn get_settl_curr_fx_rate_calc(&self) -> Result<String, MessageRejectErrorEnum> {
5411        let mut fld = field::SettlCurrFxRateCalcField::new(String::new());
5412        self.message.body.get_field(tag::SETTL_CURR_FX_RATE_CALC, &mut fld.0)?;
5413        Ok(fld.value().to_string())
5414    }
5415
5416
5417    /// Returns true if `SettlCurrFxRateCalc` is present, Tag 156.
5418    pub fn has_settl_curr_fx_rate_calc(&self) -> bool {
5419        self.message.body.has(tag::SETTL_CURR_FX_RATE_CALC)
5420    }
5421
5422
5423
5424
5425    /// Sets `SettlCurrency`, Tag 120.
5426    pub fn set_settl_currency(&mut self, v: String) {
5427        self.message.body.set_field(tag::SETTL_CURRENCY, FIXString::from(v));
5428    }
5429
5430    /// Gets `SettlCurrency`, Tag 120.
5431    pub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum> {
5432        let mut fld = field::SettlCurrencyField::new(String::new());
5433        self.message.body.get_field(tag::SETTL_CURRENCY, &mut fld.0)?;
5434        Ok(fld.value().to_string())
5435    }
5436
5437
5438    /// Returns true if `SettlCurrency` is present, Tag 120.
5439    pub fn has_settl_currency(&self) -> bool {
5440        self.message.body.has(tag::SETTL_CURRENCY)
5441    }
5442
5443
5444
5445
5446    /// Sets `SettlDate`, Tag 64.
5447    pub fn set_settl_date(&mut self, v: String) {
5448        self.message.body.set_field(tag::SETTL_DATE, FIXString::from(v));
5449    }
5450
5451    /// Gets `SettlDate`, Tag 64.
5452    pub fn get_settl_date(&self) -> Result<String, MessageRejectErrorEnum> {
5453        let mut fld = field::SettlDateField::new(String::new());
5454        self.message.body.get_field(tag::SETTL_DATE, &mut fld.0)?;
5455        Ok(fld.value().to_string())
5456    }
5457
5458
5459    /// Returns true if `SettlDate` is present, Tag 64.
5460    pub fn has_settl_date(&self) -> bool {
5461        self.message.body.has(tag::SETTL_DATE)
5462    }
5463
5464
5465
5466
5467    /// Sets `SettlDate2`, Tag 193.
5468    pub fn set_settl_date2(&mut self, v: String) {
5469        self.message.body.set_field(tag::SETTL_DATE2, FIXString::from(v));
5470    }
5471
5472    /// Gets `SettlDate2`, Tag 193.
5473    pub fn get_settl_date2(&self) -> Result<String, MessageRejectErrorEnum> {
5474        let mut fld = field::SettlDate2Field::new(String::new());
5475        self.message.body.get_field(tag::SETTL_DATE2, &mut fld.0)?;
5476        Ok(fld.value().to_string())
5477    }
5478
5479
5480    /// Returns true if `SettlDate2` is present, Tag 193.
5481    pub fn has_settl_date2(&self) -> bool {
5482        self.message.body.has(tag::SETTL_DATE2)
5483    }
5484
5485
5486
5487
5488    /// Sets `SettlMethod`, Tag 1193.
5489    pub fn set_settl_method(&mut self, v: String) {
5490        self.message.body.set_field(tag::SETTL_METHOD, FIXString::from(v));
5491    }
5492
5493    /// Gets `SettlMethod`, Tag 1193.
5494    pub fn get_settl_method(&self) -> Result<String, MessageRejectErrorEnum> {
5495        let mut fld = field::SettlMethodField::new(String::new());
5496        self.message.body.get_field(tag::SETTL_METHOD, &mut fld.0)?;
5497        Ok(fld.value().to_string())
5498    }
5499
5500
5501    /// Returns true if `SettlMethod` is present, Tag 1193.
5502    pub fn has_settl_method(&self) -> bool {
5503        self.message.body.has(tag::SETTL_METHOD)
5504    }
5505
5506
5507
5508
5509    /// Sets `SettlType`, Tag 63.
5510    pub fn set_settl_type(&mut self, v: String) {
5511        self.message.body.set_field(tag::SETTL_TYPE, FIXString::from(v));
5512    }
5513
5514    /// Gets `SettlType`, Tag 63.
5515    pub fn get_settl_type(&self) -> Result<String, MessageRejectErrorEnum> {
5516        let mut fld = field::SettlTypeField::new(String::new());
5517        self.message.body.get_field(tag::SETTL_TYPE, &mut fld.0)?;
5518        Ok(fld.value().to_string())
5519    }
5520
5521
5522    /// Returns true if `SettlType` is present, Tag 63.
5523    pub fn has_settl_type(&self) -> bool {
5524        self.message.body.has(tag::SETTL_TYPE)
5525    }
5526
5527
5528
5529
5530    /// Sets `SettleOnOpenFlag`, Tag 966.
5531    pub fn set_settle_on_open_flag(&mut self, v: String) {
5532        self.message.body.set_field(tag::SETTLE_ON_OPEN_FLAG, FIXString::from(v));
5533    }
5534
5535    /// Gets `SettleOnOpenFlag`, Tag 966.
5536    pub fn get_settle_on_open_flag(&self) -> Result<String, MessageRejectErrorEnum> {
5537        let mut fld = field::SettleOnOpenFlagField::new(String::new());
5538        self.message.body.get_field(tag::SETTLE_ON_OPEN_FLAG, &mut fld.0)?;
5539        Ok(fld.value().to_string())
5540    }
5541
5542
5543    /// Returns true if `SettleOnOpenFlag` is present, Tag 966.
5544    pub fn has_settle_on_open_flag(&self) -> bool {
5545        self.message.body.has(tag::SETTLE_ON_OPEN_FLAG)
5546    }
5547
5548
5549
5550
5551    /// Sets `Side`, Tag 54.
5552    pub fn set_side(&mut self, v: String) {
5553        self.message.body.set_field(tag::SIDE, FIXString::from(v));
5554    }
5555
5556    /// Gets `Side`, Tag 54.
5557    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
5558        let mut fld = field::SideField::new(String::new());
5559        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
5560        Ok(fld.value().to_string())
5561    }
5562
5563
5564    /// Returns true if `Side` is present, Tag 54.
5565    pub fn has_side(&self) -> bool {
5566        self.message.body.has(tag::SIDE)
5567    }
5568
5569
5570
5571
5572    /// Sets `SolicitedFlag`, Tag 377.
5573    pub fn set_solicited_flag(&mut self, v: bool) {
5574        self.message.body.set_field(tag::SOLICITED_FLAG, fixer::fix_boolean::FIXBoolean::from(v));
5575    }
5576
5577    /// Gets `SolicitedFlag`, Tag 377.
5578    pub fn get_solicited_flag(&self) -> Result<bool, MessageRejectErrorEnum> {
5579        let mut fld = field::SolicitedFlagField::new(false);
5580        self.message.body.get_field(tag::SOLICITED_FLAG, &mut fld.0)?;
5581        Ok(fld.value())
5582    }
5583
5584
5585    /// Returns true if `SolicitedFlag` is present, Tag 377.
5586    pub fn has_solicited_flag(&self) -> bool {
5587        self.message.body.has(tag::SOLICITED_FLAG)
5588    }
5589
5590
5591
5592
5593    /// Sets `Spread`, Tag 218.
5594    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
5595        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5596    }
5597
5598    /// Gets `Spread`, Tag 218.
5599    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5600        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
5601        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
5602        Ok(fld.value())
5603    }
5604
5605
5606    /// Returns true if `Spread` is present, Tag 218.
5607    pub fn has_spread(&self) -> bool {
5608        self.message.body.has(tag::SPREAD)
5609    }
5610
5611
5612
5613
5614    /// Sets `StartCash`, Tag 921.
5615    pub fn set_start_cash(&mut self, val: Decimal, scale: i32) {
5616        self.message.body.set_field(tag::START_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5617    }
5618
5619    /// Gets `StartCash`, Tag 921.
5620    pub fn get_start_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5621        let mut fld = field::StartCashField::new(Decimal::ZERO, 0);
5622        self.message.body.get_field(tag::START_CASH, &mut fld.0)?;
5623        Ok(fld.value())
5624    }
5625
5626
5627    /// Returns true if `StartCash` is present, Tag 921.
5628    pub fn has_start_cash(&self) -> bool {
5629        self.message.body.has(tag::START_CASH)
5630    }
5631
5632
5633
5634
5635    /// Sets `StartDate`, Tag 916.
5636    pub fn set_start_date(&mut self, v: String) {
5637        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
5638    }
5639
5640    /// Gets `StartDate`, Tag 916.
5641    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
5642        let mut fld = field::StartDateField::new(String::new());
5643        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
5644        Ok(fld.value().to_string())
5645    }
5646
5647
5648    /// Returns true if `StartDate` is present, Tag 916.
5649    pub fn has_start_date(&self) -> bool {
5650        self.message.body.has(tag::START_DATE)
5651    }
5652
5653
5654
5655
5656    /// Sets `StateOrProvinceOfIssue`, Tag 471.
5657    pub fn set_state_or_province_of_issue(&mut self, v: String) {
5658        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
5659    }
5660
5661    /// Gets `StateOrProvinceOfIssue`, Tag 471.
5662    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
5663        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
5664        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
5665        Ok(fld.value().to_string())
5666    }
5667
5668
5669    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
5670    pub fn has_state_or_province_of_issue(&self) -> bool {
5671        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
5672    }
5673
5674
5675
5676
5677    /// Sets `StopPx`, Tag 99.
5678    pub fn set_stop_px(&mut self, val: Decimal, scale: i32) {
5679        self.message.body.set_field(tag::STOP_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5680    }
5681
5682    /// Gets `StopPx`, Tag 99.
5683    pub fn get_stop_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5684        let mut fld = field::StopPxField::new(Decimal::ZERO, 0);
5685        self.message.body.get_field(tag::STOP_PX, &mut fld.0)?;
5686        Ok(fld.value())
5687    }
5688
5689
5690    /// Returns true if `StopPx` is present, Tag 99.
5691    pub fn has_stop_px(&self) -> bool {
5692        self.message.body.has(tag::STOP_PX)
5693    }
5694
5695
5696
5697
5698    /// Sets `StrikeCurrency`, Tag 947.
5699    pub fn set_strike_currency(&mut self, v: String) {
5700        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
5701    }
5702
5703    /// Gets `StrikeCurrency`, Tag 947.
5704    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
5705        let mut fld = field::StrikeCurrencyField::new(String::new());
5706        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
5707        Ok(fld.value().to_string())
5708    }
5709
5710
5711    /// Returns true if `StrikeCurrency` is present, Tag 947.
5712    pub fn has_strike_currency(&self) -> bool {
5713        self.message.body.has(tag::STRIKE_CURRENCY)
5714    }
5715
5716
5717
5718
5719    /// Sets `StrikeMultiplier`, Tag 967.
5720    pub fn set_strike_multiplier(&mut self, val: Decimal, scale: i32) {
5721        self.message.body.set_field(tag::STRIKE_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5722    }
5723
5724    /// Gets `StrikeMultiplier`, Tag 967.
5725    pub fn get_strike_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5726        let mut fld = field::StrikeMultiplierField::new(Decimal::ZERO, 0);
5727        self.message.body.get_field(tag::STRIKE_MULTIPLIER, &mut fld.0)?;
5728        Ok(fld.value())
5729    }
5730
5731
5732    /// Returns true if `StrikeMultiplier` is present, Tag 967.
5733    pub fn has_strike_multiplier(&self) -> bool {
5734        self.message.body.has(tag::STRIKE_MULTIPLIER)
5735    }
5736
5737
5738
5739
5740    /// Sets `StrikePrice`, Tag 202.
5741    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
5742        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5743    }
5744
5745    /// Gets `StrikePrice`, Tag 202.
5746    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5747        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
5748        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
5749        Ok(fld.value())
5750    }
5751
5752
5753    /// Returns true if `StrikePrice` is present, Tag 202.
5754    pub fn has_strike_price(&self) -> bool {
5755        self.message.body.has(tag::STRIKE_PRICE)
5756    }
5757
5758
5759
5760
5761    /// Sets `StrikePriceBoundaryMethod`, Tag 1479.
5762    pub fn set_strike_price_boundary_method(&mut self, v: isize) {
5763        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, fixer::fix_int::FIXInt::from(v));
5764    }
5765
5766    /// Gets `StrikePriceBoundaryMethod`, Tag 1479.
5767    pub fn get_strike_price_boundary_method(&self) -> Result<isize, MessageRejectErrorEnum> {
5768        let mut fld = field::StrikePriceBoundaryMethodField::new(0);
5769        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, &mut fld.0)?;
5770        Ok(fld.value())
5771    }
5772
5773
5774    /// Returns true if `StrikePriceBoundaryMethod` is present, Tag 1479.
5775    pub fn has_strike_price_boundary_method(&self) -> bool {
5776        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_METHOD)
5777    }
5778
5779
5780
5781
5782    /// Sets `StrikePriceBoundaryPrecision`, Tag 1480.
5783    pub fn set_strike_price_boundary_precision(&mut self, val: Decimal, scale: i32) {
5784        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5785    }
5786
5787    /// Gets `StrikePriceBoundaryPrecision`, Tag 1480.
5788    pub fn get_strike_price_boundary_precision(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5789        let mut fld = field::StrikePriceBoundaryPrecisionField::new(Decimal::ZERO, 0);
5790        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, &mut fld.0)?;
5791        Ok(fld.value())
5792    }
5793
5794
5795    /// Returns true if `StrikePriceBoundaryPrecision` is present, Tag 1480.
5796    pub fn has_strike_price_boundary_precision(&self) -> bool {
5797        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_PRECISION)
5798    }
5799
5800
5801
5802
5803    /// Sets `StrikePriceDeterminationMethod`, Tag 1478.
5804    pub fn set_strike_price_determination_method(&mut self, v: isize) {
5805        self.message.body.set_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
5806    }
5807
5808    /// Gets `StrikePriceDeterminationMethod`, Tag 1478.
5809    pub fn get_strike_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
5810        let mut fld = field::StrikePriceDeterminationMethodField::new(0);
5811        self.message.body.get_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
5812        Ok(fld.value())
5813    }
5814
5815
5816    /// Returns true if `StrikePriceDeterminationMethod` is present, Tag 1478.
5817    pub fn has_strike_price_determination_method(&self) -> bool {
5818        self.message.body.has(tag::STRIKE_PRICE_DETERMINATION_METHOD)
5819    }
5820
5821
5822
5823
5824    /// Sets `StrikeValue`, Tag 968.
5825    pub fn set_strike_value(&mut self, val: Decimal, scale: i32) {
5826        self.message.body.set_field(tag::STRIKE_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5827    }
5828
5829    /// Gets `StrikeValue`, Tag 968.
5830    pub fn get_strike_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5831        let mut fld = field::StrikeValueField::new(Decimal::ZERO, 0);
5832        self.message.body.get_field(tag::STRIKE_VALUE, &mut fld.0)?;
5833        Ok(fld.value())
5834    }
5835
5836
5837    /// Returns true if `StrikeValue` is present, Tag 968.
5838    pub fn has_strike_value(&self) -> bool {
5839        self.message.body.has(tag::STRIKE_VALUE)
5840    }
5841
5842
5843
5844
5845    /// Sets `Symbol`, Tag 55.
5846    pub fn set_symbol(&mut self, v: String) {
5847        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
5848    }
5849
5850    /// Gets `Symbol`, Tag 55.
5851    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
5852        let mut fld = field::SymbolField::new(String::new());
5853        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
5854        Ok(fld.value().to_string())
5855    }
5856
5857
5858    /// Returns true if `Symbol` is present, Tag 55.
5859    pub fn has_symbol(&self) -> bool {
5860        self.message.body.has(tag::SYMBOL)
5861    }
5862
5863
5864
5865
5866    /// Sets `SymbolSfx`, Tag 65.
5867    pub fn set_symbol_sfx(&mut self, v: String) {
5868        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
5869    }
5870
5871    /// Gets `SymbolSfx`, Tag 65.
5872    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
5873        let mut fld = field::SymbolSfxField::new(String::new());
5874        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
5875        Ok(fld.value().to_string())
5876    }
5877
5878
5879    /// Returns true if `SymbolSfx` is present, Tag 65.
5880    pub fn has_symbol_sfx(&self) -> bool {
5881        self.message.body.has(tag::SYMBOL_SFX)
5882    }
5883
5884
5885
5886
5887    /// Sets `TargetStrategy`, Tag 847.
5888    pub fn set_target_strategy(&mut self, v: isize) {
5889        self.message.body.set_field(tag::TARGET_STRATEGY, fixer::fix_int::FIXInt::from(v));
5890    }
5891
5892    /// Gets `TargetStrategy`, Tag 847.
5893    pub fn get_target_strategy(&self) -> Result<isize, MessageRejectErrorEnum> {
5894        let mut fld = field::TargetStrategyField::new(0);
5895        self.message.body.get_field(tag::TARGET_STRATEGY, &mut fld.0)?;
5896        Ok(fld.value())
5897    }
5898
5899
5900    /// Returns true if `TargetStrategy` is present, Tag 847.
5901    pub fn has_target_strategy(&self) -> bool {
5902        self.message.body.has(tag::TARGET_STRATEGY)
5903    }
5904
5905
5906
5907
5908    /// Sets `TargetStrategyParameters`, Tag 848.
5909    pub fn set_target_strategy_parameters(&mut self, v: String) {
5910        self.message.body.set_field(tag::TARGET_STRATEGY_PARAMETERS, FIXString::from(v));
5911    }
5912
5913    /// Gets `TargetStrategyParameters`, Tag 848.
5914    pub fn get_target_strategy_parameters(&self) -> Result<String, MessageRejectErrorEnum> {
5915        let mut fld = field::TargetStrategyParametersField::new(String::new());
5916        self.message.body.get_field(tag::TARGET_STRATEGY_PARAMETERS, &mut fld.0)?;
5917        Ok(fld.value().to_string())
5918    }
5919
5920
5921    /// Returns true if `TargetStrategyParameters` is present, Tag 848.
5922    pub fn has_target_strategy_parameters(&self) -> bool {
5923        self.message.body.has(tag::TARGET_STRATEGY_PARAMETERS)
5924    }
5925
5926
5927
5928
5929    /// Sets `TargetStrategyPerformance`, Tag 850.
5930    pub fn set_target_strategy_performance(&mut self, val: Decimal, scale: i32) {
5931        self.message.body.set_field(tag::TARGET_STRATEGY_PERFORMANCE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
5932    }
5933
5934    /// Gets `TargetStrategyPerformance`, Tag 850.
5935    pub fn get_target_strategy_performance(&self) -> Result<Decimal, MessageRejectErrorEnum> {
5936        let mut fld = field::TargetStrategyPerformanceField::new(Decimal::ZERO, 0);
5937        self.message.body.get_field(tag::TARGET_STRATEGY_PERFORMANCE, &mut fld.0)?;
5938        Ok(fld.value())
5939    }
5940
5941
5942    /// Returns true if `TargetStrategyPerformance` is present, Tag 850.
5943    pub fn has_target_strategy_performance(&self) -> bool {
5944        self.message.body.has(tag::TARGET_STRATEGY_PERFORMANCE)
5945    }
5946
5947
5948
5949
5950    /// Sets `TerminationType`, Tag 788.
5951    pub fn set_termination_type(&mut self, v: isize) {
5952        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
5953    }
5954
5955    /// Gets `TerminationType`, Tag 788.
5956    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
5957        let mut fld = field::TerminationTypeField::new(0);
5958        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
5959        Ok(fld.value())
5960    }
5961
5962
5963    /// Returns true if `TerminationType` is present, Tag 788.
5964    pub fn has_termination_type(&self) -> bool {
5965        self.message.body.has(tag::TERMINATION_TYPE)
5966    }
5967
5968
5969
5970
5971    /// Sets `Text`, Tag 58.
5972    pub fn set_text(&mut self, v: String) {
5973        self.message.body.set_field(tag::TEXT, FIXString::from(v));
5974    }
5975
5976    /// Gets `Text`, Tag 58.
5977    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
5978        let mut fld = field::TextField::new(String::new());
5979        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
5980        Ok(fld.value().to_string())
5981    }
5982
5983
5984    /// Returns true if `Text` is present, Tag 58.
5985    pub fn has_text(&self) -> bool {
5986        self.message.body.has(tag::TEXT)
5987    }
5988
5989
5990
5991
5992    /// Sets `TimeBracket`, Tag 943.
5993    pub fn set_time_bracket(&mut self, v: String) {
5994        self.message.body.set_field(tag::TIME_BRACKET, FIXString::from(v));
5995    }
5996
5997    /// Gets `TimeBracket`, Tag 943.
5998    pub fn get_time_bracket(&self) -> Result<String, MessageRejectErrorEnum> {
5999        let mut fld = field::TimeBracketField::new(String::new());
6000        self.message.body.get_field(tag::TIME_BRACKET, &mut fld.0)?;
6001        Ok(fld.value().to_string())
6002    }
6003
6004
6005    /// Returns true if `TimeBracket` is present, Tag 943.
6006    pub fn has_time_bracket(&self) -> bool {
6007        self.message.body.has(tag::TIME_BRACKET)
6008    }
6009
6010
6011
6012
6013    /// Sets `TimeInForce`, Tag 59.
6014    pub fn set_time_in_force(&mut self, v: String) {
6015        self.message.body.set_field(tag::TIME_IN_FORCE, FIXString::from(v));
6016    }
6017
6018    /// Gets `TimeInForce`, Tag 59.
6019    pub fn get_time_in_force(&self) -> Result<String, MessageRejectErrorEnum> {
6020        let mut fld = field::TimeInForceField::new(String::new());
6021        self.message.body.get_field(tag::TIME_IN_FORCE, &mut fld.0)?;
6022        Ok(fld.value().to_string())
6023    }
6024
6025
6026    /// Returns true if `TimeInForce` is present, Tag 59.
6027    pub fn has_time_in_force(&self) -> bool {
6028        self.message.body.has(tag::TIME_IN_FORCE)
6029    }
6030
6031
6032
6033
6034    /// Sets `TimeToExpiration`, Tag 1189.
6035    pub fn set_time_to_expiration(&mut self, val: Decimal, scale: i32) {
6036        self.message.body.set_field(tag::TIME_TO_EXPIRATION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6037    }
6038
6039    /// Gets `TimeToExpiration`, Tag 1189.
6040    pub fn get_time_to_expiration(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6041        let mut fld = field::TimeToExpirationField::new(Decimal::ZERO, 0);
6042        self.message.body.get_field(tag::TIME_TO_EXPIRATION, &mut fld.0)?;
6043        Ok(fld.value())
6044    }
6045
6046
6047    /// Returns true if `TimeToExpiration` is present, Tag 1189.
6048    pub fn has_time_to_expiration(&self) -> bool {
6049        self.message.body.has(tag::TIME_TO_EXPIRATION)
6050    }
6051
6052
6053
6054
6055    /// Sets `TimeUnit`, Tag 997.
6056    pub fn set_time_unit(&mut self, v: String) {
6057        self.message.body.set_field(tag::TIME_UNIT, FIXString::from(v));
6058    }
6059
6060    /// Gets `TimeUnit`, Tag 997.
6061    pub fn get_time_unit(&self) -> Result<String, MessageRejectErrorEnum> {
6062        let mut fld = field::TimeUnitField::new(String::new());
6063        self.message.body.get_field(tag::TIME_UNIT, &mut fld.0)?;
6064        Ok(fld.value().to_string())
6065    }
6066
6067
6068    /// Returns true if `TimeUnit` is present, Tag 997.
6069    pub fn has_time_unit(&self) -> bool {
6070        self.message.body.has(tag::TIME_UNIT)
6071    }
6072
6073
6074
6075
6076    /// Sets `TotNoFills`, Tag 1361.
6077    pub fn set_tot_no_fills(&mut self, v: isize) {
6078        self.message.body.set_field(tag::TOT_NO_FILLS, fixer::fix_int::FIXInt::from(v));
6079    }
6080
6081    /// Gets `TotNoFills`, Tag 1361.
6082    pub fn get_tot_no_fills(&self) -> Result<isize, MessageRejectErrorEnum> {
6083        let mut fld = field::TotNoFillsField::new(0);
6084        self.message.body.get_field(tag::TOT_NO_FILLS, &mut fld.0)?;
6085        Ok(fld.value())
6086    }
6087
6088
6089    /// Returns true if `TotNoFills` is present, Tag 1361.
6090    pub fn has_tot_no_fills(&self) -> bool {
6091        self.message.body.has(tag::TOT_NO_FILLS)
6092    }
6093
6094
6095
6096
6097    /// Sets `TotNumReports`, Tag 911.
6098    pub fn set_tot_num_reports(&mut self, v: isize) {
6099        self.message.body.set_field(tag::TOT_NUM_REPORTS, fixer::fix_int::FIXInt::from(v));
6100    }
6101
6102    /// Gets `TotNumReports`, Tag 911.
6103    pub fn get_tot_num_reports(&self) -> Result<isize, MessageRejectErrorEnum> {
6104        let mut fld = field::TotNumReportsField::new(0);
6105        self.message.body.get_field(tag::TOT_NUM_REPORTS, &mut fld.0)?;
6106        Ok(fld.value())
6107    }
6108
6109
6110    /// Returns true if `TotNumReports` is present, Tag 911.
6111    pub fn has_tot_num_reports(&self) -> bool {
6112        self.message.body.has(tag::TOT_NUM_REPORTS)
6113    }
6114
6115
6116
6117
6118    /// Sets `TotalTakedown`, Tag 237.
6119    pub fn set_total_takedown(&mut self, val: Decimal, scale: i32) {
6120        self.message.body.set_field(tag::TOTAL_TAKEDOWN, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6121    }
6122
6123    /// Gets `TotalTakedown`, Tag 237.
6124    pub fn get_total_takedown(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6125        let mut fld = field::TotalTakedownField::new(Decimal::ZERO, 0);
6126        self.message.body.get_field(tag::TOTAL_TAKEDOWN, &mut fld.0)?;
6127        Ok(fld.value())
6128    }
6129
6130
6131    /// Returns true if `TotalTakedown` is present, Tag 237.
6132    pub fn has_total_takedown(&self) -> bool {
6133        self.message.body.has(tag::TOTAL_TAKEDOWN)
6134    }
6135
6136
6137
6138
6139    /// Sets `TradeDate`, Tag 75.
6140    pub fn set_trade_date(&mut self, v: String) {
6141        self.message.body.set_field(tag::TRADE_DATE, FIXString::from(v));
6142    }
6143
6144    /// Gets `TradeDate`, Tag 75.
6145    pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum> {
6146        let mut fld = field::TradeDateField::new(String::new());
6147        self.message.body.get_field(tag::TRADE_DATE, &mut fld.0)?;
6148        Ok(fld.value().to_string())
6149    }
6150
6151
6152    /// Returns true if `TradeDate` is present, Tag 75.
6153    pub fn has_trade_date(&self) -> bool {
6154        self.message.body.has(tag::TRADE_DATE)
6155    }
6156
6157
6158
6159
6160    /// Sets `TradeOriginationDate`, Tag 229.
6161    pub fn set_trade_origination_date(&mut self, v: String) {
6162        self.message.body.set_field(tag::TRADE_ORIGINATION_DATE, FIXString::from(v));
6163    }
6164
6165    /// Gets `TradeOriginationDate`, Tag 229.
6166    pub fn get_trade_origination_date(&self) -> Result<String, MessageRejectErrorEnum> {
6167        let mut fld = field::TradeOriginationDateField::new(String::new());
6168        self.message.body.get_field(tag::TRADE_ORIGINATION_DATE, &mut fld.0)?;
6169        Ok(fld.value().to_string())
6170    }
6171
6172
6173    /// Returns true if `TradeOriginationDate` is present, Tag 229.
6174    pub fn has_trade_origination_date(&self) -> bool {
6175        self.message.body.has(tag::TRADE_ORIGINATION_DATE)
6176    }
6177
6178
6179
6180
6181    /// Sets `TradedFlatSwitch`, Tag 258.
6182    pub fn set_traded_flat_switch(&mut self, v: bool) {
6183        self.message.body.set_field(tag::TRADED_FLAT_SWITCH, fixer::fix_boolean::FIXBoolean::from(v));
6184    }
6185
6186    /// Gets `TradedFlatSwitch`, Tag 258.
6187    pub fn get_traded_flat_switch(&self) -> Result<bool, MessageRejectErrorEnum> {
6188        let mut fld = field::TradedFlatSwitchField::new(false);
6189        self.message.body.get_field(tag::TRADED_FLAT_SWITCH, &mut fld.0)?;
6190        Ok(fld.value())
6191    }
6192
6193
6194    /// Returns true if `TradedFlatSwitch` is present, Tag 258.
6195    pub fn has_traded_flat_switch(&self) -> bool {
6196        self.message.body.has(tag::TRADED_FLAT_SWITCH)
6197    }
6198
6199
6200
6201
6202    /// Sets `TradingSessionID`, Tag 336.
6203    pub fn set_trading_session_id(&mut self, v: String) {
6204        self.message.body.set_field(tag::TRADING_SESSION_ID, FIXString::from(v));
6205    }
6206
6207    /// Gets `TradingSessionID`, Tag 336.
6208    pub fn get_trading_session_id(&self) -> Result<String, MessageRejectErrorEnum> {
6209        let mut fld = field::TradingSessionIDField::new(String::new());
6210        self.message.body.get_field(tag::TRADING_SESSION_ID, &mut fld.0)?;
6211        Ok(fld.value().to_string())
6212    }
6213
6214
6215    /// Returns true if `TradingSessionID` is present, Tag 336.
6216    pub fn has_trading_session_id(&self) -> bool {
6217        self.message.body.has(tag::TRADING_SESSION_ID)
6218    }
6219
6220
6221
6222
6223    /// Sets `TradingSessionSubID`, Tag 625.
6224    pub fn set_trading_session_sub_id(&mut self, v: String) {
6225        self.message.body.set_field(tag::TRADING_SESSION_SUB_ID, FIXString::from(v));
6226    }
6227
6228    /// Gets `TradingSessionSubID`, Tag 625.
6229    pub fn get_trading_session_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
6230        let mut fld = field::TradingSessionSubIDField::new(String::new());
6231        self.message.body.get_field(tag::TRADING_SESSION_SUB_ID, &mut fld.0)?;
6232        Ok(fld.value().to_string())
6233    }
6234
6235
6236    /// Returns true if `TradingSessionSubID` is present, Tag 625.
6237    pub fn has_trading_session_sub_id(&self) -> bool {
6238        self.message.body.has(tag::TRADING_SESSION_SUB_ID)
6239    }
6240
6241
6242
6243
6244    /// Sets `TransBkdTime`, Tag 483.
6245    pub fn set_trans_bkd_time(&mut self, v: Timestamp) {
6246        self.message.body.set_field(tag::TRANS_BKD_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
6247            time: v,
6248            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
6249        });
6250    }
6251
6252    /// Gets `TransBkdTime`, Tag 483.
6253    pub fn get_trans_bkd_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
6254        let mut fld = field::TransBkdTimeField::new(Timestamp::UNIX_EPOCH);
6255        self.message.body.get_field(tag::TRANS_BKD_TIME, &mut fld.0)?;
6256        Ok(fld.value())
6257    }
6258
6259
6260    /// Returns true if `TransBkdTime` is present, Tag 483.
6261    pub fn has_trans_bkd_time(&self) -> bool {
6262        self.message.body.has(tag::TRANS_BKD_TIME)
6263    }
6264
6265
6266
6267
6268    /// Sets `TransactTime`, Tag 60.
6269    pub fn set_transact_time(&mut self, v: Timestamp) {
6270        self.message.body.set_field(tag::TRANSACT_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
6271            time: v,
6272            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
6273        });
6274    }
6275
6276    /// Gets `TransactTime`, Tag 60.
6277    pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
6278        let mut fld = field::TransactTimeField::new(Timestamp::UNIX_EPOCH);
6279        self.message.body.get_field(tag::TRANSACT_TIME, &mut fld.0)?;
6280        Ok(fld.value())
6281    }
6282
6283
6284    /// Returns true if `TransactTime` is present, Tag 60.
6285    pub fn has_transact_time(&self) -> bool {
6286        self.message.body.has(tag::TRANSACT_TIME)
6287    }
6288
6289
6290
6291
6292    /// Sets `TrdMatchID`, Tag 880.
6293    pub fn set_trd_match_id(&mut self, v: String) {
6294        self.message.body.set_field(tag::TRD_MATCH_ID, FIXString::from(v));
6295    }
6296
6297    /// Gets `TrdMatchID`, Tag 880.
6298    pub fn get_trd_match_id(&self) -> Result<String, MessageRejectErrorEnum> {
6299        let mut fld = field::TrdMatchIDField::new(String::new());
6300        self.message.body.get_field(tag::TRD_MATCH_ID, &mut fld.0)?;
6301        Ok(fld.value().to_string())
6302    }
6303
6304
6305    /// Returns true if `TrdMatchID` is present, Tag 880.
6306    pub fn has_trd_match_id(&self) -> bool {
6307        self.message.body.has(tag::TRD_MATCH_ID)
6308    }
6309
6310
6311
6312
6313    /// Sets `TriggerAction`, Tag 1101.
6314    pub fn set_trigger_action(&mut self, v: String) {
6315        self.message.body.set_field(tag::TRIGGER_ACTION, FIXString::from(v));
6316    }
6317
6318    /// Gets `TriggerAction`, Tag 1101.
6319    pub fn get_trigger_action(&self) -> Result<String, MessageRejectErrorEnum> {
6320        let mut fld = field::TriggerActionField::new(String::new());
6321        self.message.body.get_field(tag::TRIGGER_ACTION, &mut fld.0)?;
6322        Ok(fld.value().to_string())
6323    }
6324
6325
6326    /// Returns true if `TriggerAction` is present, Tag 1101.
6327    pub fn has_trigger_action(&self) -> bool {
6328        self.message.body.has(tag::TRIGGER_ACTION)
6329    }
6330
6331
6332
6333
6334    /// Sets `TriggerNewPrice`, Tag 1110.
6335    pub fn set_trigger_new_price(&mut self, val: Decimal, scale: i32) {
6336        self.message.body.set_field(tag::TRIGGER_NEW_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6337    }
6338
6339    /// Gets `TriggerNewPrice`, Tag 1110.
6340    pub fn get_trigger_new_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6341        let mut fld = field::TriggerNewPriceField::new(Decimal::ZERO, 0);
6342        self.message.body.get_field(tag::TRIGGER_NEW_PRICE, &mut fld.0)?;
6343        Ok(fld.value())
6344    }
6345
6346
6347    /// Returns true if `TriggerNewPrice` is present, Tag 1110.
6348    pub fn has_trigger_new_price(&self) -> bool {
6349        self.message.body.has(tag::TRIGGER_NEW_PRICE)
6350    }
6351
6352
6353
6354
6355    /// Sets `TriggerNewQty`, Tag 1112.
6356    pub fn set_trigger_new_qty(&mut self, val: Decimal, scale: i32) {
6357        self.message.body.set_field(tag::TRIGGER_NEW_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6358    }
6359
6360    /// Gets `TriggerNewQty`, Tag 1112.
6361    pub fn get_trigger_new_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6362        let mut fld = field::TriggerNewQtyField::new(Decimal::ZERO, 0);
6363        self.message.body.get_field(tag::TRIGGER_NEW_QTY, &mut fld.0)?;
6364        Ok(fld.value())
6365    }
6366
6367
6368    /// Returns true if `TriggerNewQty` is present, Tag 1112.
6369    pub fn has_trigger_new_qty(&self) -> bool {
6370        self.message.body.has(tag::TRIGGER_NEW_QTY)
6371    }
6372
6373
6374
6375
6376    /// Sets `TriggerOrderType`, Tag 1111.
6377    pub fn set_trigger_order_type(&mut self, v: String) {
6378        self.message.body.set_field(tag::TRIGGER_ORDER_TYPE, FIXString::from(v));
6379    }
6380
6381    /// Gets `TriggerOrderType`, Tag 1111.
6382    pub fn get_trigger_order_type(&self) -> Result<String, MessageRejectErrorEnum> {
6383        let mut fld = field::TriggerOrderTypeField::new(String::new());
6384        self.message.body.get_field(tag::TRIGGER_ORDER_TYPE, &mut fld.0)?;
6385        Ok(fld.value().to_string())
6386    }
6387
6388
6389    /// Returns true if `TriggerOrderType` is present, Tag 1111.
6390    pub fn has_trigger_order_type(&self) -> bool {
6391        self.message.body.has(tag::TRIGGER_ORDER_TYPE)
6392    }
6393
6394
6395
6396
6397    /// Sets `TriggerPrice`, Tag 1102.
6398    pub fn set_trigger_price(&mut self, val: Decimal, scale: i32) {
6399        self.message.body.set_field(tag::TRIGGER_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6400    }
6401
6402    /// Gets `TriggerPrice`, Tag 1102.
6403    pub fn get_trigger_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6404        let mut fld = field::TriggerPriceField::new(Decimal::ZERO, 0);
6405        self.message.body.get_field(tag::TRIGGER_PRICE, &mut fld.0)?;
6406        Ok(fld.value())
6407    }
6408
6409
6410    /// Returns true if `TriggerPrice` is present, Tag 1102.
6411    pub fn has_trigger_price(&self) -> bool {
6412        self.message.body.has(tag::TRIGGER_PRICE)
6413    }
6414
6415
6416
6417
6418    /// Sets `TriggerPriceDirection`, Tag 1109.
6419    pub fn set_trigger_price_direction(&mut self, v: String) {
6420        self.message.body.set_field(tag::TRIGGER_PRICE_DIRECTION, FIXString::from(v));
6421    }
6422
6423    /// Gets `TriggerPriceDirection`, Tag 1109.
6424    pub fn get_trigger_price_direction(&self) -> Result<String, MessageRejectErrorEnum> {
6425        let mut fld = field::TriggerPriceDirectionField::new(String::new());
6426        self.message.body.get_field(tag::TRIGGER_PRICE_DIRECTION, &mut fld.0)?;
6427        Ok(fld.value().to_string())
6428    }
6429
6430
6431    /// Returns true if `TriggerPriceDirection` is present, Tag 1109.
6432    pub fn has_trigger_price_direction(&self) -> bool {
6433        self.message.body.has(tag::TRIGGER_PRICE_DIRECTION)
6434    }
6435
6436
6437
6438
6439    /// Sets `TriggerPriceType`, Tag 1107.
6440    pub fn set_trigger_price_type(&mut self, v: String) {
6441        self.message.body.set_field(tag::TRIGGER_PRICE_TYPE, FIXString::from(v));
6442    }
6443
6444    /// Gets `TriggerPriceType`, Tag 1107.
6445    pub fn get_trigger_price_type(&self) -> Result<String, MessageRejectErrorEnum> {
6446        let mut fld = field::TriggerPriceTypeField::new(String::new());
6447        self.message.body.get_field(tag::TRIGGER_PRICE_TYPE, &mut fld.0)?;
6448        Ok(fld.value().to_string())
6449    }
6450
6451
6452    /// Returns true if `TriggerPriceType` is present, Tag 1107.
6453    pub fn has_trigger_price_type(&self) -> bool {
6454        self.message.body.has(tag::TRIGGER_PRICE_TYPE)
6455    }
6456
6457
6458
6459
6460    /// Sets `TriggerPriceTypeScope`, Tag 1108.
6461    pub fn set_trigger_price_type_scope(&mut self, v: String) {
6462        self.message.body.set_field(tag::TRIGGER_PRICE_TYPE_SCOPE, FIXString::from(v));
6463    }
6464
6465    /// Gets `TriggerPriceTypeScope`, Tag 1108.
6466    pub fn get_trigger_price_type_scope(&self) -> Result<String, MessageRejectErrorEnum> {
6467        let mut fld = field::TriggerPriceTypeScopeField::new(String::new());
6468        self.message.body.get_field(tag::TRIGGER_PRICE_TYPE_SCOPE, &mut fld.0)?;
6469        Ok(fld.value().to_string())
6470    }
6471
6472
6473    /// Returns true if `TriggerPriceTypeScope` is present, Tag 1108.
6474    pub fn has_trigger_price_type_scope(&self) -> bool {
6475        self.message.body.has(tag::TRIGGER_PRICE_TYPE_SCOPE)
6476    }
6477
6478
6479
6480
6481    /// Sets `TriggerSecurityDesc`, Tag 1106.
6482    pub fn set_trigger_security_desc(&mut self, v: String) {
6483        self.message.body.set_field(tag::TRIGGER_SECURITY_DESC, FIXString::from(v));
6484    }
6485
6486    /// Gets `TriggerSecurityDesc`, Tag 1106.
6487    pub fn get_trigger_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
6488        let mut fld = field::TriggerSecurityDescField::new(String::new());
6489        self.message.body.get_field(tag::TRIGGER_SECURITY_DESC, &mut fld.0)?;
6490        Ok(fld.value().to_string())
6491    }
6492
6493
6494    /// Returns true if `TriggerSecurityDesc` is present, Tag 1106.
6495    pub fn has_trigger_security_desc(&self) -> bool {
6496        self.message.body.has(tag::TRIGGER_SECURITY_DESC)
6497    }
6498
6499
6500
6501
6502    /// Sets `TriggerSecurityID`, Tag 1104.
6503    pub fn set_trigger_security_id(&mut self, v: String) {
6504        self.message.body.set_field(tag::TRIGGER_SECURITY_ID, FIXString::from(v));
6505    }
6506
6507    /// Gets `TriggerSecurityID`, Tag 1104.
6508    pub fn get_trigger_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
6509        let mut fld = field::TriggerSecurityIDField::new(String::new());
6510        self.message.body.get_field(tag::TRIGGER_SECURITY_ID, &mut fld.0)?;
6511        Ok(fld.value().to_string())
6512    }
6513
6514
6515    /// Returns true if `TriggerSecurityID` is present, Tag 1104.
6516    pub fn has_trigger_security_id(&self) -> bool {
6517        self.message.body.has(tag::TRIGGER_SECURITY_ID)
6518    }
6519
6520
6521
6522
6523    /// Sets `TriggerSecurityIDSource`, Tag 1105.
6524    pub fn set_trigger_security_id_source(&mut self, v: String) {
6525        self.message.body.set_field(tag::TRIGGER_SECURITY_ID_SOURCE, FIXString::from(v));
6526    }
6527
6528    /// Gets `TriggerSecurityIDSource`, Tag 1105.
6529    pub fn get_trigger_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
6530        let mut fld = field::TriggerSecurityIDSourceField::new(String::new());
6531        self.message.body.get_field(tag::TRIGGER_SECURITY_ID_SOURCE, &mut fld.0)?;
6532        Ok(fld.value().to_string())
6533    }
6534
6535
6536    /// Returns true if `TriggerSecurityIDSource` is present, Tag 1105.
6537    pub fn has_trigger_security_id_source(&self) -> bool {
6538        self.message.body.has(tag::TRIGGER_SECURITY_ID_SOURCE)
6539    }
6540
6541
6542
6543
6544    /// Sets `TriggerSymbol`, Tag 1103.
6545    pub fn set_trigger_symbol(&mut self, v: String) {
6546        self.message.body.set_field(tag::TRIGGER_SYMBOL, FIXString::from(v));
6547    }
6548
6549    /// Gets `TriggerSymbol`, Tag 1103.
6550    pub fn get_trigger_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
6551        let mut fld = field::TriggerSymbolField::new(String::new());
6552        self.message.body.get_field(tag::TRIGGER_SYMBOL, &mut fld.0)?;
6553        Ok(fld.value().to_string())
6554    }
6555
6556
6557    /// Returns true if `TriggerSymbol` is present, Tag 1103.
6558    pub fn has_trigger_symbol(&self) -> bool {
6559        self.message.body.has(tag::TRIGGER_SYMBOL)
6560    }
6561
6562
6563
6564
6565    /// Sets `TriggerTradingSessionID`, Tag 1113.
6566    pub fn set_trigger_trading_session_id(&mut self, v: String) {
6567        self.message.body.set_field(tag::TRIGGER_TRADING_SESSION_ID, FIXString::from(v));
6568    }
6569
6570    /// Gets `TriggerTradingSessionID`, Tag 1113.
6571    pub fn get_trigger_trading_session_id(&self) -> Result<String, MessageRejectErrorEnum> {
6572        let mut fld = field::TriggerTradingSessionIDField::new(String::new());
6573        self.message.body.get_field(tag::TRIGGER_TRADING_SESSION_ID, &mut fld.0)?;
6574        Ok(fld.value().to_string())
6575    }
6576
6577
6578    /// Returns true if `TriggerTradingSessionID` is present, Tag 1113.
6579    pub fn has_trigger_trading_session_id(&self) -> bool {
6580        self.message.body.has(tag::TRIGGER_TRADING_SESSION_ID)
6581    }
6582
6583
6584
6585
6586    /// Sets `TriggerTradingSessionSubID`, Tag 1114.
6587    pub fn set_trigger_trading_session_sub_id(&mut self, v: String) {
6588        self.message.body.set_field(tag::TRIGGER_TRADING_SESSION_SUB_ID, FIXString::from(v));
6589    }
6590
6591    /// Gets `TriggerTradingSessionSubID`, Tag 1114.
6592    pub fn get_trigger_trading_session_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
6593        let mut fld = field::TriggerTradingSessionSubIDField::new(String::new());
6594        self.message.body.get_field(tag::TRIGGER_TRADING_SESSION_SUB_ID, &mut fld.0)?;
6595        Ok(fld.value().to_string())
6596    }
6597
6598
6599    /// Returns true if `TriggerTradingSessionSubID` is present, Tag 1114.
6600    pub fn has_trigger_trading_session_sub_id(&self) -> bool {
6601        self.message.body.has(tag::TRIGGER_TRADING_SESSION_SUB_ID)
6602    }
6603
6604
6605
6606
6607    /// Sets `TriggerType`, Tag 1100.
6608    pub fn set_trigger_type(&mut self, v: String) {
6609        self.message.body.set_field(tag::TRIGGER_TYPE, FIXString::from(v));
6610    }
6611
6612    /// Gets `TriggerType`, Tag 1100.
6613    pub fn get_trigger_type(&self) -> Result<String, MessageRejectErrorEnum> {
6614        let mut fld = field::TriggerTypeField::new(String::new());
6615        self.message.body.get_field(tag::TRIGGER_TYPE, &mut fld.0)?;
6616        Ok(fld.value().to_string())
6617    }
6618
6619
6620    /// Returns true if `TriggerType` is present, Tag 1100.
6621    pub fn has_trigger_type(&self) -> bool {
6622        self.message.body.has(tag::TRIGGER_TYPE)
6623    }
6624
6625
6626
6627
6628    /// Sets `UnderlyingLastPx`, Tag 651.
6629    pub fn set_underlying_last_px(&mut self, val: Decimal, scale: i32) {
6630        self.message.body.set_field(tag::UNDERLYING_LAST_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6631    }
6632
6633    /// Gets `UnderlyingLastPx`, Tag 651.
6634    pub fn get_underlying_last_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6635        let mut fld = field::UnderlyingLastPxField::new(Decimal::ZERO, 0);
6636        self.message.body.get_field(tag::UNDERLYING_LAST_PX, &mut fld.0)?;
6637        Ok(fld.value())
6638    }
6639
6640
6641    /// Returns true if `UnderlyingLastPx` is present, Tag 651.
6642    pub fn has_underlying_last_px(&self) -> bool {
6643        self.message.body.has(tag::UNDERLYING_LAST_PX)
6644    }
6645
6646
6647
6648
6649    /// Sets `UnderlyingLastQty`, Tag 652.
6650    pub fn set_underlying_last_qty(&mut self, val: Decimal, scale: i32) {
6651        self.message.body.set_field(tag::UNDERLYING_LAST_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6652    }
6653
6654    /// Gets `UnderlyingLastQty`, Tag 652.
6655    pub fn get_underlying_last_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6656        let mut fld = field::UnderlyingLastQtyField::new(Decimal::ZERO, 0);
6657        self.message.body.get_field(tag::UNDERLYING_LAST_QTY, &mut fld.0)?;
6658        Ok(fld.value())
6659    }
6660
6661
6662    /// Returns true if `UnderlyingLastQty` is present, Tag 652.
6663    pub fn has_underlying_last_qty(&self) -> bool {
6664        self.message.body.has(tag::UNDERLYING_LAST_QTY)
6665    }
6666
6667
6668
6669
6670    /// Sets `UnderlyingPriceDeterminationMethod`, Tag 1481.
6671    pub fn set_underlying_price_determination_method(&mut self, v: isize) {
6672        self.message.body.set_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
6673    }
6674
6675    /// Gets `UnderlyingPriceDeterminationMethod`, Tag 1481.
6676    pub fn get_underlying_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
6677        let mut fld = field::UnderlyingPriceDeterminationMethodField::new(0);
6678        self.message.body.get_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
6679        Ok(fld.value())
6680    }
6681
6682
6683    /// Returns true if `UnderlyingPriceDeterminationMethod` is present, Tag 1481.
6684    pub fn has_underlying_price_determination_method(&self) -> bool {
6685        self.message.body.has(tag::UNDERLYING_PRICE_DETERMINATION_METHOD)
6686    }
6687
6688
6689
6690
6691    /// Sets `UnitOfMeasure`, Tag 996.
6692    pub fn set_unit_of_measure(&mut self, v: String) {
6693        self.message.body.set_field(tag::UNIT_OF_MEASURE, FIXString::from(v));
6694    }
6695
6696    /// Gets `UnitOfMeasure`, Tag 996.
6697    pub fn get_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
6698        let mut fld = field::UnitOfMeasureField::new(String::new());
6699        self.message.body.get_field(tag::UNIT_OF_MEASURE, &mut fld.0)?;
6700        Ok(fld.value().to_string())
6701    }
6702
6703
6704    /// Returns true if `UnitOfMeasure` is present, Tag 996.
6705    pub fn has_unit_of_measure(&self) -> bool {
6706        self.message.body.has(tag::UNIT_OF_MEASURE)
6707    }
6708
6709
6710
6711
6712    /// Sets `UnitOfMeasureQty`, Tag 1147.
6713    pub fn set_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
6714        self.message.body.set_field(tag::UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6715    }
6716
6717    /// Gets `UnitOfMeasureQty`, Tag 1147.
6718    pub fn get_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6719        let mut fld = field::UnitOfMeasureQtyField::new(Decimal::ZERO, 0);
6720        self.message.body.get_field(tag::UNIT_OF_MEASURE_QTY, &mut fld.0)?;
6721        Ok(fld.value())
6722    }
6723
6724
6725    /// Returns true if `UnitOfMeasureQty` is present, Tag 1147.
6726    pub fn has_unit_of_measure_qty(&self) -> bool {
6727        self.message.body.has(tag::UNIT_OF_MEASURE_QTY)
6728    }
6729
6730
6731
6732
6733    /// Sets `ValuationMethod`, Tag 1197.
6734    pub fn set_valuation_method(&mut self, v: String) {
6735        self.message.body.set_field(tag::VALUATION_METHOD, FIXString::from(v));
6736    }
6737
6738    /// Gets `ValuationMethod`, Tag 1197.
6739    pub fn get_valuation_method(&self) -> Result<String, MessageRejectErrorEnum> {
6740        let mut fld = field::ValuationMethodField::new(String::new());
6741        self.message.body.get_field(tag::VALUATION_METHOD, &mut fld.0)?;
6742        Ok(fld.value().to_string())
6743    }
6744
6745
6746    /// Returns true if `ValuationMethod` is present, Tag 1197.
6747    pub fn has_valuation_method(&self) -> bool {
6748        self.message.body.has(tag::VALUATION_METHOD)
6749    }
6750
6751
6752
6753
6754    /// Sets `Volatility`, Tag 1188.
6755    pub fn set_volatility(&mut self, val: Decimal, scale: i32) {
6756        self.message.body.set_field(tag::VOLATILITY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6757    }
6758
6759    /// Gets `Volatility`, Tag 1188.
6760    pub fn get_volatility(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6761        let mut fld = field::VolatilityField::new(Decimal::ZERO, 0);
6762        self.message.body.get_field(tag::VOLATILITY, &mut fld.0)?;
6763        Ok(fld.value())
6764    }
6765
6766
6767    /// Returns true if `Volatility` is present, Tag 1188.
6768    pub fn has_volatility(&self) -> bool {
6769        self.message.body.has(tag::VOLATILITY)
6770    }
6771
6772
6773
6774
6775    /// Sets `WorkingIndicator`, Tag 636.
6776    pub fn set_working_indicator(&mut self, v: bool) {
6777        self.message.body.set_field(tag::WORKING_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
6778    }
6779
6780    /// Gets `WorkingIndicator`, Tag 636.
6781    pub fn get_working_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
6782        let mut fld = field::WorkingIndicatorField::new(false);
6783        self.message.body.get_field(tag::WORKING_INDICATOR, &mut fld.0)?;
6784        Ok(fld.value())
6785    }
6786
6787
6788    /// Returns true if `WorkingIndicator` is present, Tag 636.
6789    pub fn has_working_indicator(&self) -> bool {
6790        self.message.body.has(tag::WORKING_INDICATOR)
6791    }
6792
6793
6794
6795
6796    /// Sets `Yield`, Tag 236.
6797    pub fn set_yield(&mut self, val: Decimal, scale: i32) {
6798        self.message.body.set_field(tag::YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6799    }
6800
6801    /// Gets `Yield`, Tag 236.
6802    pub fn get_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6803        let mut fld = field::YieldField::new(Decimal::ZERO, 0);
6804        self.message.body.get_field(tag::YIELD, &mut fld.0)?;
6805        Ok(fld.value())
6806    }
6807
6808
6809    /// Returns true if `Yield` is present, Tag 236.
6810    pub fn has_yield(&self) -> bool {
6811        self.message.body.has(tag::YIELD)
6812    }
6813
6814
6815
6816
6817    /// Sets `YieldCalcDate`, Tag 701.
6818    pub fn set_yield_calc_date(&mut self, v: String) {
6819        self.message.body.set_field(tag::YIELD_CALC_DATE, FIXString::from(v));
6820    }
6821
6822    /// Gets `YieldCalcDate`, Tag 701.
6823    pub fn get_yield_calc_date(&self) -> Result<String, MessageRejectErrorEnum> {
6824        let mut fld = field::YieldCalcDateField::new(String::new());
6825        self.message.body.get_field(tag::YIELD_CALC_DATE, &mut fld.0)?;
6826        Ok(fld.value().to_string())
6827    }
6828
6829
6830    /// Returns true if `YieldCalcDate` is present, Tag 701.
6831    pub fn has_yield_calc_date(&self) -> bool {
6832        self.message.body.has(tag::YIELD_CALC_DATE)
6833    }
6834
6835
6836
6837
6838    /// Sets `YieldRedemptionDate`, Tag 696.
6839    pub fn set_yield_redemption_date(&mut self, v: String) {
6840        self.message.body.set_field(tag::YIELD_REDEMPTION_DATE, FIXString::from(v));
6841    }
6842
6843    /// Gets `YieldRedemptionDate`, Tag 696.
6844    pub fn get_yield_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
6845        let mut fld = field::YieldRedemptionDateField::new(String::new());
6846        self.message.body.get_field(tag::YIELD_REDEMPTION_DATE, &mut fld.0)?;
6847        Ok(fld.value().to_string())
6848    }
6849
6850
6851    /// Returns true if `YieldRedemptionDate` is present, Tag 696.
6852    pub fn has_yield_redemption_date(&self) -> bool {
6853        self.message.body.has(tag::YIELD_REDEMPTION_DATE)
6854    }
6855
6856
6857
6858
6859    /// Sets `YieldRedemptionPrice`, Tag 697.
6860    pub fn set_yield_redemption_price(&mut self, val: Decimal, scale: i32) {
6861        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
6862    }
6863
6864    /// Gets `YieldRedemptionPrice`, Tag 697.
6865    pub fn get_yield_redemption_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
6866        let mut fld = field::YieldRedemptionPriceField::new(Decimal::ZERO, 0);
6867        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE, &mut fld.0)?;
6868        Ok(fld.value())
6869    }
6870
6871
6872    /// Returns true if `YieldRedemptionPrice` is present, Tag 697.
6873    pub fn has_yield_redemption_price(&self) -> bool {
6874        self.message.body.has(tag::YIELD_REDEMPTION_PRICE)
6875    }
6876
6877
6878
6879
6880    /// Sets `YieldRedemptionPriceType`, Tag 698.
6881    pub fn set_yield_redemption_price_type(&mut self, v: isize) {
6882        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
6883    }
6884
6885    /// Gets `YieldRedemptionPriceType`, Tag 698.
6886    pub fn get_yield_redemption_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
6887        let mut fld = field::YieldRedemptionPriceTypeField::new(0);
6888        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE_TYPE, &mut fld.0)?;
6889        Ok(fld.value())
6890    }
6891
6892
6893    /// Returns true if `YieldRedemptionPriceType` is present, Tag 698.
6894    pub fn has_yield_redemption_price_type(&self) -> bool {
6895        self.message.body.has(tag::YIELD_REDEMPTION_PRICE_TYPE)
6896    }
6897
6898
6899
6900
6901    /// Sets `YieldType`, Tag 235.
6902    pub fn set_yield_type(&mut self, v: String) {
6903        self.message.body.set_field(tag::YIELD_TYPE, FIXString::from(v));
6904    }
6905
6906    /// Gets `YieldType`, Tag 235.
6907    pub fn get_yield_type(&self) -> Result<String, MessageRejectErrorEnum> {
6908        let mut fld = field::YieldTypeField::new(String::new());
6909        self.message.body.get_field(tag::YIELD_TYPE, &mut fld.0)?;
6910        Ok(fld.value().to_string())
6911    }
6912
6913
6914    /// Returns true if `YieldType` is present, Tag 235.
6915    pub fn has_yield_type(&self) -> bool {
6916        self.message.body.has(tag::YIELD_TYPE)
6917    }
6918
6919
6920}
6921
6922/// `RouteOut` is the callback type for routing `ExecutionReport` messages.
6923pub type RouteOut = fn(msg: ExecutionReport, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
6924
6925/// Route type returned by the `route` function.
6926pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
6927
6928/// Returns the begin string, message type, and route function for `ExecutionReport`.
6929pub fn route(router: RouteOut) -> Route {
6930    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
6931        router(ExecutionReport::from_message(msg.clone()), session_id)
6932    };
6933    ("9", "8", Box::new(r))
6934}