Skip to main content

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