Skip to main content

fixer_fix/fix50/
new_order_single.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/// `NewOrderSingle` is the `fix50` `NewOrderSingle` type, `MsgType` = D.
21pub struct NewOrderSingle {
22    pub message: Message,
23}
24
25impl NewOrderSingle {
26    /// Creates a new `NewOrderSingle` with required fields.
27    pub fn new(cl_ord_id: field::ClOrdIDField, side: field::SideField, transact_time: field::TransactTimeField, ord_type: field::OrdTypeField) -> Self {
28        let mut msg = Message::new();
29        msg.header.set_field(tag::MSG_TYPE, FIXString::from("D".to_string()));
30
31        msg.body.set_field(tag::CL_ORD_ID, cl_ord_id.0);
32
33        msg.body.set_field(tag::SIDE, side.0);
34
35        msg.body.set_field(tag::TRANSACT_TIME, transact_time.0);
36
37        msg.body.set_field(tag::ORD_TYPE, ord_type.0);
38
39        Self { message: msg }
40    }
41
42    /// Creates a `NewOrderSingle` from an existing `Message`.
43    pub fn from_message(msg: Message) -> Self {
44        Self { message: msg }
45    }
46
47    /// Returns the underlying `Message`.
48    pub fn to_message(self) -> Message {
49        self.message
50    }
51
52
53
54
55    /// Sets `Account`, Tag 1.
56    pub fn set_account(&mut self, v: String) {
57        self.message.body.set_field(tag::ACCOUNT, FIXString::from(v));
58    }
59
60    /// Gets `Account`, Tag 1.
61    pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum> {
62        let mut fld = field::AccountField::new(String::new());
63        self.message.body.get_field(tag::ACCOUNT, &mut fld.0)?;
64        Ok(fld.value().to_string())
65    }
66
67
68    /// Returns true if `Account` is present, Tag 1.
69    pub fn has_account(&self) -> bool {
70        self.message.body.has(tag::ACCOUNT)
71    }
72
73
74
75
76    /// Sets `AccountType`, Tag 581.
77    pub fn set_account_type(&mut self, v: isize) {
78        self.message.body.set_field(tag::ACCOUNT_TYPE, fixer::fix_int::FIXInt::from(v));
79    }
80
81    /// Gets `AccountType`, Tag 581.
82    pub fn get_account_type(&self) -> Result<isize, MessageRejectErrorEnum> {
83        let mut fld = field::AccountTypeField::new(0);
84        self.message.body.get_field(tag::ACCOUNT_TYPE, &mut fld.0)?;
85        Ok(fld.value())
86    }
87
88
89    /// Returns true if `AccountType` is present, Tag 581.
90    pub fn has_account_type(&self) -> bool {
91        self.message.body.has(tag::ACCOUNT_TYPE)
92    }
93
94
95
96
97    /// Sets `AcctIDSource`, Tag 660.
98    pub fn set_acct_id_source(&mut self, v: isize) {
99        self.message.body.set_field(tag::ACCT_ID_SOURCE, fixer::fix_int::FIXInt::from(v));
100    }
101
102    /// Gets `AcctIDSource`, Tag 660.
103    pub fn get_acct_id_source(&self) -> Result<isize, MessageRejectErrorEnum> {
104        let mut fld = field::AcctIDSourceField::new(0);
105        self.message.body.get_field(tag::ACCT_ID_SOURCE, &mut fld.0)?;
106        Ok(fld.value())
107    }
108
109
110    /// Returns true if `AcctIDSource` is present, Tag 660.
111    pub fn has_acct_id_source(&self) -> bool {
112        self.message.body.has(tag::ACCT_ID_SOURCE)
113    }
114
115
116
117
118    /// Sets `AgreementCurrency`, Tag 918.
119    pub fn set_agreement_currency(&mut self, v: String) {
120        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
121    }
122
123    /// Gets `AgreementCurrency`, Tag 918.
124    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
125        let mut fld = field::AgreementCurrencyField::new(String::new());
126        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
127        Ok(fld.value().to_string())
128    }
129
130
131    /// Returns true if `AgreementCurrency` is present, Tag 918.
132    pub fn has_agreement_currency(&self) -> bool {
133        self.message.body.has(tag::AGREEMENT_CURRENCY)
134    }
135
136
137
138
139    /// Sets `AgreementDate`, Tag 915.
140    pub fn set_agreement_date(&mut self, v: String) {
141        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
142    }
143
144    /// Gets `AgreementDate`, Tag 915.
145    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
146        let mut fld = field::AgreementDateField::new(String::new());
147        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
148        Ok(fld.value().to_string())
149    }
150
151
152    /// Returns true if `AgreementDate` is present, Tag 915.
153    pub fn has_agreement_date(&self) -> bool {
154        self.message.body.has(tag::AGREEMENT_DATE)
155    }
156
157
158
159
160    /// Sets `AgreementDesc`, Tag 913.
161    pub fn set_agreement_desc(&mut self, v: String) {
162        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
163    }
164
165    /// Gets `AgreementDesc`, Tag 913.
166    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
167        let mut fld = field::AgreementDescField::new(String::new());
168        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
169        Ok(fld.value().to_string())
170    }
171
172
173    /// Returns true if `AgreementDesc` is present, Tag 913.
174    pub fn has_agreement_desc(&self) -> bool {
175        self.message.body.has(tag::AGREEMENT_DESC)
176    }
177
178
179
180
181    /// Sets `AgreementID`, Tag 914.
182    pub fn set_agreement_id(&mut self, v: String) {
183        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
184    }
185
186    /// Gets `AgreementID`, Tag 914.
187    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
188        let mut fld = field::AgreementIDField::new(String::new());
189        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
190        Ok(fld.value().to_string())
191    }
192
193
194    /// Returns true if `AgreementID` is present, Tag 914.
195    pub fn has_agreement_id(&self) -> bool {
196        self.message.body.has(tag::AGREEMENT_ID)
197    }
198
199
200
201
202    /// Sets `AllocID`, Tag 70.
203    pub fn set_alloc_id(&mut self, v: String) {
204        self.message.body.set_field(tag::ALLOC_ID, FIXString::from(v));
205    }
206
207    /// Gets `AllocID`, Tag 70.
208    pub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
209        let mut fld = field::AllocIDField::new(String::new());
210        self.message.body.get_field(tag::ALLOC_ID, &mut fld.0)?;
211        Ok(fld.value().to_string())
212    }
213
214
215    /// Returns true if `AllocID` is present, Tag 70.
216    pub fn has_alloc_id(&self) -> bool {
217        self.message.body.has(tag::ALLOC_ID)
218    }
219
220
221
222
223    /// Sets `BenchmarkCurveCurrency`, Tag 220.
224    pub fn set_benchmark_curve_currency(&mut self, v: String) {
225        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
226    }
227
228    /// Gets `BenchmarkCurveCurrency`, Tag 220.
229    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
230        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
231        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
232        Ok(fld.value().to_string())
233    }
234
235
236    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
237    pub fn has_benchmark_curve_currency(&self) -> bool {
238        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
239    }
240
241
242
243
244    /// Sets `BenchmarkCurveName`, Tag 221.
245    pub fn set_benchmark_curve_name(&mut self, v: String) {
246        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
247    }
248
249    /// Gets `BenchmarkCurveName`, Tag 221.
250    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
251        let mut fld = field::BenchmarkCurveNameField::new(String::new());
252        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
253        Ok(fld.value().to_string())
254    }
255
256
257    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
258    pub fn has_benchmark_curve_name(&self) -> bool {
259        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
260    }
261
262
263
264
265    /// Sets `BenchmarkCurvePoint`, Tag 222.
266    pub fn set_benchmark_curve_point(&mut self, v: String) {
267        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
268    }
269
270    /// Gets `BenchmarkCurvePoint`, Tag 222.
271    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
272        let mut fld = field::BenchmarkCurvePointField::new(String::new());
273        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
274        Ok(fld.value().to_string())
275    }
276
277
278    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
279    pub fn has_benchmark_curve_point(&self) -> bool {
280        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
281    }
282
283
284
285
286    /// Sets `BenchmarkPrice`, Tag 662.
287    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
288        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
289    }
290
291    /// Gets `BenchmarkPrice`, Tag 662.
292    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
293        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
294        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
295        Ok(fld.value())
296    }
297
298
299    /// Returns true if `BenchmarkPrice` is present, Tag 662.
300    pub fn has_benchmark_price(&self) -> bool {
301        self.message.body.has(tag::BENCHMARK_PRICE)
302    }
303
304
305
306
307    /// Sets `BenchmarkPriceType`, Tag 663.
308    pub fn set_benchmark_price_type(&mut self, v: isize) {
309        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
310    }
311
312    /// Gets `BenchmarkPriceType`, Tag 663.
313    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
314        let mut fld = field::BenchmarkPriceTypeField::new(0);
315        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
316        Ok(fld.value())
317    }
318
319
320    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
321    pub fn has_benchmark_price_type(&self) -> bool {
322        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
323    }
324
325
326
327
328    /// Sets `BenchmarkSecurityID`, Tag 699.
329    pub fn set_benchmark_security_id(&mut self, v: String) {
330        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
331    }
332
333    /// Gets `BenchmarkSecurityID`, Tag 699.
334    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
335        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
336        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
337        Ok(fld.value().to_string())
338    }
339
340
341    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
342    pub fn has_benchmark_security_id(&self) -> bool {
343        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
344    }
345
346
347
348
349    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
350    pub fn set_benchmark_security_id_source(&mut self, v: String) {
351        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
352    }
353
354    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
355    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
356        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
357        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
358        Ok(fld.value().to_string())
359    }
360
361
362    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
363    pub fn has_benchmark_security_id_source(&self) -> bool {
364        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
365    }
366
367
368
369
370    /// Sets `BookingType`, Tag 775.
371    pub fn set_booking_type(&mut self, v: isize) {
372        self.message.body.set_field(tag::BOOKING_TYPE, fixer::fix_int::FIXInt::from(v));
373    }
374
375    /// Gets `BookingType`, Tag 775.
376    pub fn get_booking_type(&self) -> Result<isize, MessageRejectErrorEnum> {
377        let mut fld = field::BookingTypeField::new(0);
378        self.message.body.get_field(tag::BOOKING_TYPE, &mut fld.0)?;
379        Ok(fld.value())
380    }
381
382
383    /// Returns true if `BookingType` is present, Tag 775.
384    pub fn has_booking_type(&self) -> bool {
385        self.message.body.has(tag::BOOKING_TYPE)
386    }
387
388
389
390
391    /// Sets `BookingUnit`, Tag 590.
392    pub fn set_booking_unit(&mut self, v: String) {
393        self.message.body.set_field(tag::BOOKING_UNIT, FIXString::from(v));
394    }
395
396    /// Gets `BookingUnit`, Tag 590.
397    pub fn get_booking_unit(&self) -> Result<String, MessageRejectErrorEnum> {
398        let mut fld = field::BookingUnitField::new(String::new());
399        self.message.body.get_field(tag::BOOKING_UNIT, &mut fld.0)?;
400        Ok(fld.value().to_string())
401    }
402
403
404    /// Returns true if `BookingUnit` is present, Tag 590.
405    pub fn has_booking_unit(&self) -> bool {
406        self.message.body.has(tag::BOOKING_UNIT)
407    }
408
409
410
411
412    /// Sets `CFICode`, Tag 461.
413    pub fn set_cfi_code(&mut self, v: String) {
414        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
415    }
416
417    /// Gets `CFICode`, Tag 461.
418    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
419        let mut fld = field::CFICodeField::new(String::new());
420        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
421        Ok(fld.value().to_string())
422    }
423
424
425    /// Returns true if `CFICode` is present, Tag 461.
426    pub fn has_cfi_code(&self) -> bool {
427        self.message.body.has(tag::CFI_CODE)
428    }
429
430
431
432
433    /// Sets `CPProgram`, Tag 875.
434    pub fn set_cp_program(&mut self, v: isize) {
435        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
436    }
437
438    /// Gets `CPProgram`, Tag 875.
439    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
440        let mut fld = field::CPProgramField::new(0);
441        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
442        Ok(fld.value())
443    }
444
445
446    /// Returns true if `CPProgram` is present, Tag 875.
447    pub fn has_cp_program(&self) -> bool {
448        self.message.body.has(tag::CP_PROGRAM)
449    }
450
451
452
453
454    /// Sets `CPRegType`, Tag 876.
455    pub fn set_cp_reg_type(&mut self, v: String) {
456        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
457    }
458
459    /// Gets `CPRegType`, Tag 876.
460    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
461        let mut fld = field::CPRegTypeField::new(String::new());
462        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
463        Ok(fld.value().to_string())
464    }
465
466
467    /// Returns true if `CPRegType` is present, Tag 876.
468    pub fn has_cp_reg_type(&self) -> bool {
469        self.message.body.has(tag::CP_REG_TYPE)
470    }
471
472
473
474
475    /// Sets `CancellationRights`, Tag 480.
476    pub fn set_cancellation_rights(&mut self, v: String) {
477        self.message.body.set_field(tag::CANCELLATION_RIGHTS, FIXString::from(v));
478    }
479
480    /// Gets `CancellationRights`, Tag 480.
481    pub fn get_cancellation_rights(&self) -> Result<String, MessageRejectErrorEnum> {
482        let mut fld = field::CancellationRightsField::new(String::new());
483        self.message.body.get_field(tag::CANCELLATION_RIGHTS, &mut fld.0)?;
484        Ok(fld.value().to_string())
485    }
486
487
488    /// Returns true if `CancellationRights` is present, Tag 480.
489    pub fn has_cancellation_rights(&self) -> bool {
490        self.message.body.has(tag::CANCELLATION_RIGHTS)
491    }
492
493
494
495
496    /// Sets `CashMargin`, Tag 544.
497    pub fn set_cash_margin(&mut self, v: String) {
498        self.message.body.set_field(tag::CASH_MARGIN, FIXString::from(v));
499    }
500
501    /// Gets `CashMargin`, Tag 544.
502    pub fn get_cash_margin(&self) -> Result<String, MessageRejectErrorEnum> {
503        let mut fld = field::CashMarginField::new(String::new());
504        self.message.body.get_field(tag::CASH_MARGIN, &mut fld.0)?;
505        Ok(fld.value().to_string())
506    }
507
508
509    /// Returns true if `CashMargin` is present, Tag 544.
510    pub fn has_cash_margin(&self) -> bool {
511        self.message.body.has(tag::CASH_MARGIN)
512    }
513
514
515
516
517    /// Sets `CashOrderQty`, Tag 152.
518    pub fn set_cash_order_qty(&mut self, val: Decimal, scale: i32) {
519        self.message.body.set_field(tag::CASH_ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
520    }
521
522    /// Gets `CashOrderQty`, Tag 152.
523    pub fn get_cash_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
524        let mut fld = field::CashOrderQtyField::new(Decimal::ZERO, 0);
525        self.message.body.get_field(tag::CASH_ORDER_QTY, &mut fld.0)?;
526        Ok(fld.value())
527    }
528
529
530    /// Returns true if `CashOrderQty` is present, Tag 152.
531    pub fn has_cash_order_qty(&self) -> bool {
532        self.message.body.has(tag::CASH_ORDER_QTY)
533    }
534
535
536
537
538    /// Sets `ClOrdID`, Tag 11.
539    pub fn set_cl_ord_id(&mut self, v: String) {
540        self.message.body.set_field(tag::CL_ORD_ID, FIXString::from(v));
541    }
542
543    /// Gets `ClOrdID`, Tag 11.
544    pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
545        let mut fld = field::ClOrdIDField::new(String::new());
546        self.message.body.get_field(tag::CL_ORD_ID, &mut fld.0)?;
547        Ok(fld.value().to_string())
548    }
549
550
551    /// Returns true if `ClOrdID` is present, Tag 11.
552    pub fn has_cl_ord_id(&self) -> bool {
553        self.message.body.has(tag::CL_ORD_ID)
554    }
555
556
557
558
559    /// Sets `ClOrdLinkID`, Tag 583.
560    pub fn set_cl_ord_link_id(&mut self, v: String) {
561        self.message.body.set_field(tag::CL_ORD_LINK_ID, FIXString::from(v));
562    }
563
564    /// Gets `ClOrdLinkID`, Tag 583.
565    pub fn get_cl_ord_link_id(&self) -> Result<String, MessageRejectErrorEnum> {
566        let mut fld = field::ClOrdLinkIDField::new(String::new());
567        self.message.body.get_field(tag::CL_ORD_LINK_ID, &mut fld.0)?;
568        Ok(fld.value().to_string())
569    }
570
571
572    /// Returns true if `ClOrdLinkID` is present, Tag 583.
573    pub fn has_cl_ord_link_id(&self) -> bool {
574        self.message.body.has(tag::CL_ORD_LINK_ID)
575    }
576
577
578
579
580    /// Sets `ClearingFeeIndicator`, Tag 635.
581    pub fn set_clearing_fee_indicator(&mut self, v: String) {
582        self.message.body.set_field(tag::CLEARING_FEE_INDICATOR, FIXString::from(v));
583    }
584
585    /// Gets `ClearingFeeIndicator`, Tag 635.
586    pub fn get_clearing_fee_indicator(&self) -> Result<String, MessageRejectErrorEnum> {
587        let mut fld = field::ClearingFeeIndicatorField::new(String::new());
588        self.message.body.get_field(tag::CLEARING_FEE_INDICATOR, &mut fld.0)?;
589        Ok(fld.value().to_string())
590    }
591
592
593    /// Returns true if `ClearingFeeIndicator` is present, Tag 635.
594    pub fn has_clearing_fee_indicator(&self) -> bool {
595        self.message.body.has(tag::CLEARING_FEE_INDICATOR)
596    }
597
598
599
600
601    /// Sets `CommCurrency`, Tag 479.
602    pub fn set_comm_currency(&mut self, v: String) {
603        self.message.body.set_field(tag::COMM_CURRENCY, FIXString::from(v));
604    }
605
606    /// Gets `CommCurrency`, Tag 479.
607    pub fn get_comm_currency(&self) -> Result<String, MessageRejectErrorEnum> {
608        let mut fld = field::CommCurrencyField::new(String::new());
609        self.message.body.get_field(tag::COMM_CURRENCY, &mut fld.0)?;
610        Ok(fld.value().to_string())
611    }
612
613
614    /// Returns true if `CommCurrency` is present, Tag 479.
615    pub fn has_comm_currency(&self) -> bool {
616        self.message.body.has(tag::COMM_CURRENCY)
617    }
618
619
620
621
622    /// Sets `CommType`, Tag 13.
623    pub fn set_comm_type(&mut self, v: String) {
624        self.message.body.set_field(tag::COMM_TYPE, FIXString::from(v));
625    }
626
627    /// Gets `CommType`, Tag 13.
628    pub fn get_comm_type(&self) -> Result<String, MessageRejectErrorEnum> {
629        let mut fld = field::CommTypeField::new(String::new());
630        self.message.body.get_field(tag::COMM_TYPE, &mut fld.0)?;
631        Ok(fld.value().to_string())
632    }
633
634
635    /// Returns true if `CommType` is present, Tag 13.
636    pub fn has_comm_type(&self) -> bool {
637        self.message.body.has(tag::COMM_TYPE)
638    }
639
640
641
642
643    /// Sets `Commission`, Tag 12.
644    pub fn set_commission(&mut self, val: Decimal, scale: i32) {
645        self.message.body.set_field(tag::COMMISSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
646    }
647
648    /// Gets `Commission`, Tag 12.
649    pub fn get_commission(&self) -> Result<Decimal, MessageRejectErrorEnum> {
650        let mut fld = field::CommissionField::new(Decimal::ZERO, 0);
651        self.message.body.get_field(tag::COMMISSION, &mut fld.0)?;
652        Ok(fld.value())
653    }
654
655
656    /// Returns true if `Commission` is present, Tag 12.
657    pub fn has_commission(&self) -> bool {
658        self.message.body.has(tag::COMMISSION)
659    }
660
661
662
663
664    /// Sets `ComplianceID`, Tag 376.
665    pub fn set_compliance_id(&mut self, v: String) {
666        self.message.body.set_field(tag::COMPLIANCE_ID, FIXString::from(v));
667    }
668
669    /// Gets `ComplianceID`, Tag 376.
670    pub fn get_compliance_id(&self) -> Result<String, MessageRejectErrorEnum> {
671        let mut fld = field::ComplianceIDField::new(String::new());
672        self.message.body.get_field(tag::COMPLIANCE_ID, &mut fld.0)?;
673        Ok(fld.value().to_string())
674    }
675
676
677    /// Returns true if `ComplianceID` is present, Tag 376.
678    pub fn has_compliance_id(&self) -> bool {
679        self.message.body.has(tag::COMPLIANCE_ID)
680    }
681
682
683
684
685    /// Sets `ContractMultiplier`, Tag 231.
686    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
687        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
688    }
689
690    /// Gets `ContractMultiplier`, Tag 231.
691    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
692        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
693        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
694        Ok(fld.value())
695    }
696
697
698    /// Returns true if `ContractMultiplier` is present, Tag 231.
699    pub fn has_contract_multiplier(&self) -> bool {
700        self.message.body.has(tag::CONTRACT_MULTIPLIER)
701    }
702
703
704
705
706    /// Sets `ContractSettlMonth`, Tag 667.
707    pub fn set_contract_settl_month(&mut self, v: String) {
708        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
709    }
710
711    /// Gets `ContractSettlMonth`, Tag 667.
712    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
713        let mut fld = field::ContractSettlMonthField::new(String::new());
714        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
715        Ok(fld.value().to_string())
716    }
717
718
719    /// Returns true if `ContractSettlMonth` is present, Tag 667.
720    pub fn has_contract_settl_month(&self) -> bool {
721        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
722    }
723
724
725
726
727    /// Sets `CountryOfIssue`, Tag 470.
728    pub fn set_country_of_issue(&mut self, v: String) {
729        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
730    }
731
732    /// Gets `CountryOfIssue`, Tag 470.
733    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
734        let mut fld = field::CountryOfIssueField::new(String::new());
735        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
736        Ok(fld.value().to_string())
737    }
738
739
740    /// Returns true if `CountryOfIssue` is present, Tag 470.
741    pub fn has_country_of_issue(&self) -> bool {
742        self.message.body.has(tag::COUNTRY_OF_ISSUE)
743    }
744
745
746
747
748    /// Sets `CouponPaymentDate`, Tag 224.
749    pub fn set_coupon_payment_date(&mut self, v: String) {
750        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
751    }
752
753    /// Gets `CouponPaymentDate`, Tag 224.
754    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
755        let mut fld = field::CouponPaymentDateField::new(String::new());
756        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
757        Ok(fld.value().to_string())
758    }
759
760
761    /// Returns true if `CouponPaymentDate` is present, Tag 224.
762    pub fn has_coupon_payment_date(&self) -> bool {
763        self.message.body.has(tag::COUPON_PAYMENT_DATE)
764    }
765
766
767
768
769    /// Sets `CouponRate`, Tag 223.
770    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
771        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
772    }
773
774    /// Gets `CouponRate`, Tag 223.
775    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
776        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
777        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
778        Ok(fld.value())
779    }
780
781
782    /// Returns true if `CouponRate` is present, Tag 223.
783    pub fn has_coupon_rate(&self) -> bool {
784        self.message.body.has(tag::COUPON_RATE)
785    }
786
787
788
789
790    /// Sets `CoveredOrUncovered`, Tag 203.
791    pub fn set_covered_or_uncovered(&mut self, v: isize) {
792        self.message.body.set_field(tag::COVERED_OR_UNCOVERED, fixer::fix_int::FIXInt::from(v));
793    }
794
795    /// Gets `CoveredOrUncovered`, Tag 203.
796    pub fn get_covered_or_uncovered(&self) -> Result<isize, MessageRejectErrorEnum> {
797        let mut fld = field::CoveredOrUncoveredField::new(0);
798        self.message.body.get_field(tag::COVERED_OR_UNCOVERED, &mut fld.0)?;
799        Ok(fld.value())
800    }
801
802
803    /// Returns true if `CoveredOrUncovered` is present, Tag 203.
804    pub fn has_covered_or_uncovered(&self) -> bool {
805        self.message.body.has(tag::COVERED_OR_UNCOVERED)
806    }
807
808
809
810
811    /// Sets `CreditRating`, Tag 255.
812    pub fn set_credit_rating(&mut self, v: String) {
813        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
814    }
815
816    /// Gets `CreditRating`, Tag 255.
817    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
818        let mut fld = field::CreditRatingField::new(String::new());
819        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
820        Ok(fld.value().to_string())
821    }
822
823
824    /// Returns true if `CreditRating` is present, Tag 255.
825    pub fn has_credit_rating(&self) -> bool {
826        self.message.body.has(tag::CREDIT_RATING)
827    }
828
829
830
831
832    /// Sets `Currency`, Tag 15.
833    pub fn set_currency(&mut self, v: String) {
834        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
835    }
836
837    /// Gets `Currency`, Tag 15.
838    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
839        let mut fld = field::CurrencyField::new(String::new());
840        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
841        Ok(fld.value().to_string())
842    }
843
844
845    /// Returns true if `Currency` is present, Tag 15.
846    pub fn has_currency(&self) -> bool {
847        self.message.body.has(tag::CURRENCY)
848    }
849
850
851
852
853    /// Sets `CustDirectedOrder`, Tag 1029.
854    pub fn set_cust_directed_order(&mut self, v: bool) {
855        self.message.body.set_field(tag::CUST_DIRECTED_ORDER, fixer::fix_boolean::FIXBoolean::from(v));
856    }
857
858    /// Gets `CustDirectedOrder`, Tag 1029.
859    pub fn get_cust_directed_order(&self) -> Result<bool, MessageRejectErrorEnum> {
860        let mut fld = field::CustDirectedOrderField::new(false);
861        self.message.body.get_field(tag::CUST_DIRECTED_ORDER, &mut fld.0)?;
862        Ok(fld.value())
863    }
864
865
866    /// Returns true if `CustDirectedOrder` is present, Tag 1029.
867    pub fn has_cust_directed_order(&self) -> bool {
868        self.message.body.has(tag::CUST_DIRECTED_ORDER)
869    }
870
871
872
873
874    /// Sets `CustOrderCapacity`, Tag 582.
875    pub fn set_cust_order_capacity(&mut self, v: isize) {
876        self.message.body.set_field(tag::CUST_ORDER_CAPACITY, fixer::fix_int::FIXInt::from(v));
877    }
878
879    /// Gets `CustOrderCapacity`, Tag 582.
880    pub fn get_cust_order_capacity(&self) -> Result<isize, MessageRejectErrorEnum> {
881        let mut fld = field::CustOrderCapacityField::new(0);
882        self.message.body.get_field(tag::CUST_ORDER_CAPACITY, &mut fld.0)?;
883        Ok(fld.value())
884    }
885
886
887    /// Returns true if `CustOrderCapacity` is present, Tag 582.
888    pub fn has_cust_order_capacity(&self) -> bool {
889        self.message.body.has(tag::CUST_ORDER_CAPACITY)
890    }
891
892
893
894
895    /// Sets `CustOrderHandlingInst`, Tag 1031.
896    pub fn set_cust_order_handling_inst(&mut self, v: String) {
897        self.message.body.set_field(tag::CUST_ORDER_HANDLING_INST, FIXString::from(v));
898    }
899
900    /// Gets `CustOrderHandlingInst`, Tag 1031.
901    pub fn get_cust_order_handling_inst(&self) -> Result<String, MessageRejectErrorEnum> {
902        let mut fld = field::CustOrderHandlingInstField::new(String::new());
903        self.message.body.get_field(tag::CUST_ORDER_HANDLING_INST, &mut fld.0)?;
904        Ok(fld.value().to_string())
905    }
906
907
908    /// Returns true if `CustOrderHandlingInst` is present, Tag 1031.
909    pub fn has_cust_order_handling_inst(&self) -> bool {
910        self.message.body.has(tag::CUST_ORDER_HANDLING_INST)
911    }
912
913
914
915
916    /// Sets `DatedDate`, Tag 873.
917    pub fn set_dated_date(&mut self, v: String) {
918        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
919    }
920
921    /// Gets `DatedDate`, Tag 873.
922    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
923        let mut fld = field::DatedDateField::new(String::new());
924        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
925        Ok(fld.value().to_string())
926    }
927
928
929    /// Returns true if `DatedDate` is present, Tag 873.
930    pub fn has_dated_date(&self) -> bool {
931        self.message.body.has(tag::DATED_DATE)
932    }
933
934
935
936
937    /// Sets `DayBookingInst`, Tag 589.
938    pub fn set_day_booking_inst(&mut self, v: String) {
939        self.message.body.set_field(tag::DAY_BOOKING_INST, FIXString::from(v));
940    }
941
942    /// Gets `DayBookingInst`, Tag 589.
943    pub fn get_day_booking_inst(&self) -> Result<String, MessageRejectErrorEnum> {
944        let mut fld = field::DayBookingInstField::new(String::new());
945        self.message.body.get_field(tag::DAY_BOOKING_INST, &mut fld.0)?;
946        Ok(fld.value().to_string())
947    }
948
949
950    /// Returns true if `DayBookingInst` is present, Tag 589.
951    pub fn has_day_booking_inst(&self) -> bool {
952        self.message.body.has(tag::DAY_BOOKING_INST)
953    }
954
955
956
957
958    /// Sets `DeliveryType`, Tag 919.
959    pub fn set_delivery_type(&mut self, v: isize) {
960        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
961    }
962
963    /// Gets `DeliveryType`, Tag 919.
964    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
965        let mut fld = field::DeliveryTypeField::new(0);
966        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
967        Ok(fld.value())
968    }
969
970
971    /// Returns true if `DeliveryType` is present, Tag 919.
972    pub fn has_delivery_type(&self) -> bool {
973        self.message.body.has(tag::DELIVERY_TYPE)
974    }
975
976
977
978
979    /// Sets `Designation`, Tag 494.
980    pub fn set_designation(&mut self, v: String) {
981        self.message.body.set_field(tag::DESIGNATION, FIXString::from(v));
982    }
983
984    /// Gets `Designation`, Tag 494.
985    pub fn get_designation(&self) -> Result<String, MessageRejectErrorEnum> {
986        let mut fld = field::DesignationField::new(String::new());
987        self.message.body.get_field(tag::DESIGNATION, &mut fld.0)?;
988        Ok(fld.value().to_string())
989    }
990
991
992    /// Returns true if `Designation` is present, Tag 494.
993    pub fn has_designation(&self) -> bool {
994        self.message.body.has(tag::DESIGNATION)
995    }
996
997
998
999
1000    /// Sets `DiscretionInst`, Tag 388.
1001    pub fn set_discretion_inst(&mut self, v: String) {
1002        self.message.body.set_field(tag::DISCRETION_INST, FIXString::from(v));
1003    }
1004
1005    /// Gets `DiscretionInst`, Tag 388.
1006    pub fn get_discretion_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1007        let mut fld = field::DiscretionInstField::new(String::new());
1008        self.message.body.get_field(tag::DISCRETION_INST, &mut fld.0)?;
1009        Ok(fld.value().to_string())
1010    }
1011
1012
1013    /// Returns true if `DiscretionInst` is present, Tag 388.
1014    pub fn has_discretion_inst(&self) -> bool {
1015        self.message.body.has(tag::DISCRETION_INST)
1016    }
1017
1018
1019
1020
1021    /// Sets `DiscretionLimitType`, Tag 843.
1022    pub fn set_discretion_limit_type(&mut self, v: isize) {
1023        self.message.body.set_field(tag::DISCRETION_LIMIT_TYPE, fixer::fix_int::FIXInt::from(v));
1024    }
1025
1026    /// Gets `DiscretionLimitType`, Tag 843.
1027    pub fn get_discretion_limit_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1028        let mut fld = field::DiscretionLimitTypeField::new(0);
1029        self.message.body.get_field(tag::DISCRETION_LIMIT_TYPE, &mut fld.0)?;
1030        Ok(fld.value())
1031    }
1032
1033
1034    /// Returns true if `DiscretionLimitType` is present, Tag 843.
1035    pub fn has_discretion_limit_type(&self) -> bool {
1036        self.message.body.has(tag::DISCRETION_LIMIT_TYPE)
1037    }
1038
1039
1040
1041
1042    /// Sets `DiscretionMoveType`, Tag 841.
1043    pub fn set_discretion_move_type(&mut self, v: isize) {
1044        self.message.body.set_field(tag::DISCRETION_MOVE_TYPE, fixer::fix_int::FIXInt::from(v));
1045    }
1046
1047    /// Gets `DiscretionMoveType`, Tag 841.
1048    pub fn get_discretion_move_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1049        let mut fld = field::DiscretionMoveTypeField::new(0);
1050        self.message.body.get_field(tag::DISCRETION_MOVE_TYPE, &mut fld.0)?;
1051        Ok(fld.value())
1052    }
1053
1054
1055    /// Returns true if `DiscretionMoveType` is present, Tag 841.
1056    pub fn has_discretion_move_type(&self) -> bool {
1057        self.message.body.has(tag::DISCRETION_MOVE_TYPE)
1058    }
1059
1060
1061
1062
1063    /// Sets `DiscretionOffsetType`, Tag 842.
1064    pub fn set_discretion_offset_type(&mut self, v: isize) {
1065        self.message.body.set_field(tag::DISCRETION_OFFSET_TYPE, fixer::fix_int::FIXInt::from(v));
1066    }
1067
1068    /// Gets `DiscretionOffsetType`, Tag 842.
1069    pub fn get_discretion_offset_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1070        let mut fld = field::DiscretionOffsetTypeField::new(0);
1071        self.message.body.get_field(tag::DISCRETION_OFFSET_TYPE, &mut fld.0)?;
1072        Ok(fld.value())
1073    }
1074
1075
1076    /// Returns true if `DiscretionOffsetType` is present, Tag 842.
1077    pub fn has_discretion_offset_type(&self) -> bool {
1078        self.message.body.has(tag::DISCRETION_OFFSET_TYPE)
1079    }
1080
1081
1082
1083
1084    /// Sets `DiscretionOffsetValue`, Tag 389.
1085    pub fn set_discretion_offset_value(&mut self, val: Decimal, scale: i32) {
1086        self.message.body.set_field(tag::DISCRETION_OFFSET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1087    }
1088
1089    /// Gets `DiscretionOffsetValue`, Tag 389.
1090    pub fn get_discretion_offset_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1091        let mut fld = field::DiscretionOffsetValueField::new(Decimal::ZERO, 0);
1092        self.message.body.get_field(tag::DISCRETION_OFFSET_VALUE, &mut fld.0)?;
1093        Ok(fld.value())
1094    }
1095
1096
1097    /// Returns true if `DiscretionOffsetValue` is present, Tag 389.
1098    pub fn has_discretion_offset_value(&self) -> bool {
1099        self.message.body.has(tag::DISCRETION_OFFSET_VALUE)
1100    }
1101
1102
1103
1104
1105    /// Sets `DiscretionRoundDirection`, Tag 844.
1106    pub fn set_discretion_round_direction(&mut self, v: isize) {
1107        self.message.body.set_field(tag::DISCRETION_ROUND_DIRECTION, fixer::fix_int::FIXInt::from(v));
1108    }
1109
1110    /// Gets `DiscretionRoundDirection`, Tag 844.
1111    pub fn get_discretion_round_direction(&self) -> Result<isize, MessageRejectErrorEnum> {
1112        let mut fld = field::DiscretionRoundDirectionField::new(0);
1113        self.message.body.get_field(tag::DISCRETION_ROUND_DIRECTION, &mut fld.0)?;
1114        Ok(fld.value())
1115    }
1116
1117
1118    /// Returns true if `DiscretionRoundDirection` is present, Tag 844.
1119    pub fn has_discretion_round_direction(&self) -> bool {
1120        self.message.body.has(tag::DISCRETION_ROUND_DIRECTION)
1121    }
1122
1123
1124
1125
1126    /// Sets `DiscretionScope`, Tag 846.
1127    pub fn set_discretion_scope(&mut self, v: isize) {
1128        self.message.body.set_field(tag::DISCRETION_SCOPE, fixer::fix_int::FIXInt::from(v));
1129    }
1130
1131    /// Gets `DiscretionScope`, Tag 846.
1132    pub fn get_discretion_scope(&self) -> Result<isize, MessageRejectErrorEnum> {
1133        let mut fld = field::DiscretionScopeField::new(0);
1134        self.message.body.get_field(tag::DISCRETION_SCOPE, &mut fld.0)?;
1135        Ok(fld.value())
1136    }
1137
1138
1139    /// Returns true if `DiscretionScope` is present, Tag 846.
1140    pub fn has_discretion_scope(&self) -> bool {
1141        self.message.body.has(tag::DISCRETION_SCOPE)
1142    }
1143
1144
1145
1146
1147    /// Sets `DisplayHighQty`, Tag 1086.
1148    pub fn set_display_high_qty(&mut self, val: Decimal, scale: i32) {
1149        self.message.body.set_field(tag::DISPLAY_HIGH_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1150    }
1151
1152    /// Gets `DisplayHighQty`, Tag 1086.
1153    pub fn get_display_high_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1154        let mut fld = field::DisplayHighQtyField::new(Decimal::ZERO, 0);
1155        self.message.body.get_field(tag::DISPLAY_HIGH_QTY, &mut fld.0)?;
1156        Ok(fld.value())
1157    }
1158
1159
1160    /// Returns true if `DisplayHighQty` is present, Tag 1086.
1161    pub fn has_display_high_qty(&self) -> bool {
1162        self.message.body.has(tag::DISPLAY_HIGH_QTY)
1163    }
1164
1165
1166
1167
1168    /// Sets `DisplayLowQty`, Tag 1085.
1169    pub fn set_display_low_qty(&mut self, val: Decimal, scale: i32) {
1170        self.message.body.set_field(tag::DISPLAY_LOW_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1171    }
1172
1173    /// Gets `DisplayLowQty`, Tag 1085.
1174    pub fn get_display_low_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1175        let mut fld = field::DisplayLowQtyField::new(Decimal::ZERO, 0);
1176        self.message.body.get_field(tag::DISPLAY_LOW_QTY, &mut fld.0)?;
1177        Ok(fld.value())
1178    }
1179
1180
1181    /// Returns true if `DisplayLowQty` is present, Tag 1085.
1182    pub fn has_display_low_qty(&self) -> bool {
1183        self.message.body.has(tag::DISPLAY_LOW_QTY)
1184    }
1185
1186
1187
1188
1189    /// Sets `DisplayMethod`, Tag 1084.
1190    pub fn set_display_method(&mut self, v: String) {
1191        self.message.body.set_field(tag::DISPLAY_METHOD, FIXString::from(v));
1192    }
1193
1194    /// Gets `DisplayMethod`, Tag 1084.
1195    pub fn get_display_method(&self) -> Result<String, MessageRejectErrorEnum> {
1196        let mut fld = field::DisplayMethodField::new(String::new());
1197        self.message.body.get_field(tag::DISPLAY_METHOD, &mut fld.0)?;
1198        Ok(fld.value().to_string())
1199    }
1200
1201
1202    /// Returns true if `DisplayMethod` is present, Tag 1084.
1203    pub fn has_display_method(&self) -> bool {
1204        self.message.body.has(tag::DISPLAY_METHOD)
1205    }
1206
1207
1208
1209
1210    /// Sets `DisplayMinIncr`, Tag 1087.
1211    pub fn set_display_min_incr(&mut self, val: Decimal, scale: i32) {
1212        self.message.body.set_field(tag::DISPLAY_MIN_INCR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1213    }
1214
1215    /// Gets `DisplayMinIncr`, Tag 1087.
1216    pub fn get_display_min_incr(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1217        let mut fld = field::DisplayMinIncrField::new(Decimal::ZERO, 0);
1218        self.message.body.get_field(tag::DISPLAY_MIN_INCR, &mut fld.0)?;
1219        Ok(fld.value())
1220    }
1221
1222
1223    /// Returns true if `DisplayMinIncr` is present, Tag 1087.
1224    pub fn has_display_min_incr(&self) -> bool {
1225        self.message.body.has(tag::DISPLAY_MIN_INCR)
1226    }
1227
1228
1229
1230
1231    /// Sets `DisplayQty`, Tag 1138.
1232    pub fn set_display_qty(&mut self, val: Decimal, scale: i32) {
1233        self.message.body.set_field(tag::DISPLAY_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1234    }
1235
1236    /// Gets `DisplayQty`, Tag 1138.
1237    pub fn get_display_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1238        let mut fld = field::DisplayQtyField::new(Decimal::ZERO, 0);
1239        self.message.body.get_field(tag::DISPLAY_QTY, &mut fld.0)?;
1240        Ok(fld.value())
1241    }
1242
1243
1244    /// Returns true if `DisplayQty` is present, Tag 1138.
1245    pub fn has_display_qty(&self) -> bool {
1246        self.message.body.has(tag::DISPLAY_QTY)
1247    }
1248
1249
1250
1251
1252    /// Sets `DisplayWhen`, Tag 1083.
1253    pub fn set_display_when(&mut self, v: String) {
1254        self.message.body.set_field(tag::DISPLAY_WHEN, FIXString::from(v));
1255    }
1256
1257    /// Gets `DisplayWhen`, Tag 1083.
1258    pub fn get_display_when(&self) -> Result<String, MessageRejectErrorEnum> {
1259        let mut fld = field::DisplayWhenField::new(String::new());
1260        self.message.body.get_field(tag::DISPLAY_WHEN, &mut fld.0)?;
1261        Ok(fld.value().to_string())
1262    }
1263
1264
1265    /// Returns true if `DisplayWhen` is present, Tag 1083.
1266    pub fn has_display_when(&self) -> bool {
1267        self.message.body.has(tag::DISPLAY_WHEN)
1268    }
1269
1270
1271
1272
1273    /// Sets `EffectiveTime`, Tag 168.
1274    pub fn set_effective_time(&mut self, v: Timestamp) {
1275        self.message.body.set_field(tag::EFFECTIVE_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
1276            time: v,
1277            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
1278        });
1279    }
1280
1281    /// Gets `EffectiveTime`, Tag 168.
1282    pub fn get_effective_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
1283        let mut fld = field::EffectiveTimeField::new(Timestamp::UNIX_EPOCH);
1284        self.message.body.get_field(tag::EFFECTIVE_TIME, &mut fld.0)?;
1285        Ok(fld.value())
1286    }
1287
1288
1289    /// Returns true if `EffectiveTime` is present, Tag 168.
1290    pub fn has_effective_time(&self) -> bool {
1291        self.message.body.has(tag::EFFECTIVE_TIME)
1292    }
1293
1294
1295
1296
1297    /// Sets `EncodedIssuer`, Tag 349.
1298    pub fn set_encoded_issuer(&mut self, v: String) {
1299        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
1300    }
1301
1302    /// Gets `EncodedIssuer`, Tag 349.
1303    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1304        let mut fld = field::EncodedIssuerField::new(String::new());
1305        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
1306        Ok(fld.value().to_string())
1307    }
1308
1309
1310    /// Returns true if `EncodedIssuer` is present, Tag 349.
1311    pub fn has_encoded_issuer(&self) -> bool {
1312        self.message.body.has(tag::ENCODED_ISSUER)
1313    }
1314
1315
1316
1317
1318    /// Sets `EncodedIssuerLen`, Tag 348.
1319    pub fn set_encoded_issuer_len(&mut self, v: isize) {
1320        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
1321    }
1322
1323    /// Gets `EncodedIssuerLen`, Tag 348.
1324    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1325        let mut fld = field::EncodedIssuerLenField::new(0);
1326        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
1327        Ok(fld.value())
1328    }
1329
1330
1331    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
1332    pub fn has_encoded_issuer_len(&self) -> bool {
1333        self.message.body.has(tag::ENCODED_ISSUER_LEN)
1334    }
1335
1336
1337
1338
1339    /// Sets `EncodedSecurityDesc`, Tag 351.
1340    pub fn set_encoded_security_desc(&mut self, v: String) {
1341        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
1342    }
1343
1344    /// Gets `EncodedSecurityDesc`, Tag 351.
1345    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1346        let mut fld = field::EncodedSecurityDescField::new(String::new());
1347        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
1348        Ok(fld.value().to_string())
1349    }
1350
1351
1352    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
1353    pub fn has_encoded_security_desc(&self) -> bool {
1354        self.message.body.has(tag::ENCODED_SECURITY_DESC)
1355    }
1356
1357
1358
1359
1360    /// Sets `EncodedSecurityDescLen`, Tag 350.
1361    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
1362        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
1363    }
1364
1365    /// Gets `EncodedSecurityDescLen`, Tag 350.
1366    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1367        let mut fld = field::EncodedSecurityDescLenField::new(0);
1368        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
1369        Ok(fld.value())
1370    }
1371
1372
1373    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
1374    pub fn has_encoded_security_desc_len(&self) -> bool {
1375        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
1376    }
1377
1378
1379
1380
1381    /// Sets `EncodedText`, Tag 355.
1382    pub fn set_encoded_text(&mut self, v: String) {
1383        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
1384    }
1385
1386    /// Gets `EncodedText`, Tag 355.
1387    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
1388        let mut fld = field::EncodedTextField::new(String::new());
1389        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
1390        Ok(fld.value().to_string())
1391    }
1392
1393
1394    /// Returns true if `EncodedText` is present, Tag 355.
1395    pub fn has_encoded_text(&self) -> bool {
1396        self.message.body.has(tag::ENCODED_TEXT)
1397    }
1398
1399
1400
1401
1402    /// Sets `EncodedTextLen`, Tag 354.
1403    pub fn set_encoded_text_len(&mut self, v: isize) {
1404        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
1405    }
1406
1407    /// Gets `EncodedTextLen`, Tag 354.
1408    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1409        let mut fld = field::EncodedTextLenField::new(0);
1410        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
1411        Ok(fld.value())
1412    }
1413
1414
1415    /// Returns true if `EncodedTextLen` is present, Tag 354.
1416    pub fn has_encoded_text_len(&self) -> bool {
1417        self.message.body.has(tag::ENCODED_TEXT_LEN)
1418    }
1419
1420
1421
1422
1423    /// Sets `EndDate`, Tag 917.
1424    pub fn set_end_date(&mut self, v: String) {
1425        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
1426    }
1427
1428    /// Gets `EndDate`, Tag 917.
1429    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
1430        let mut fld = field::EndDateField::new(String::new());
1431        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
1432        Ok(fld.value().to_string())
1433    }
1434
1435
1436    /// Returns true if `EndDate` is present, Tag 917.
1437    pub fn has_end_date(&self) -> bool {
1438        self.message.body.has(tag::END_DATE)
1439    }
1440
1441
1442
1443
1444    /// Sets `ExDestination`, Tag 100.
1445    pub fn set_ex_destination(&mut self, v: String) {
1446        self.message.body.set_field(tag::EX_DESTINATION, FIXString::from(v));
1447    }
1448
1449    /// Gets `ExDestination`, Tag 100.
1450    pub fn get_ex_destination(&self) -> Result<String, MessageRejectErrorEnum> {
1451        let mut fld = field::ExDestinationField::new(String::new());
1452        self.message.body.get_field(tag::EX_DESTINATION, &mut fld.0)?;
1453        Ok(fld.value().to_string())
1454    }
1455
1456
1457    /// Returns true if `ExDestination` is present, Tag 100.
1458    pub fn has_ex_destination(&self) -> bool {
1459        self.message.body.has(tag::EX_DESTINATION)
1460    }
1461
1462
1463
1464
1465    /// Sets `ExDestinationIDSource`, Tag 1133.
1466    pub fn set_ex_destination_id_source(&mut self, v: String) {
1467        self.message.body.set_field(tag::EX_DESTINATION_ID_SOURCE, FIXString::from(v));
1468    }
1469
1470    /// Gets `ExDestinationIDSource`, Tag 1133.
1471    pub fn get_ex_destination_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
1472        let mut fld = field::ExDestinationIDSourceField::new(String::new());
1473        self.message.body.get_field(tag::EX_DESTINATION_ID_SOURCE, &mut fld.0)?;
1474        Ok(fld.value().to_string())
1475    }
1476
1477
1478    /// Returns true if `ExDestinationIDSource` is present, Tag 1133.
1479    pub fn has_ex_destination_id_source(&self) -> bool {
1480        self.message.body.has(tag::EX_DESTINATION_ID_SOURCE)
1481    }
1482
1483
1484
1485
1486    /// Sets `ExecInst`, Tag 18.
1487    pub fn set_exec_inst(&mut self, v: String) {
1488        self.message.body.set_field(tag::EXEC_INST, FIXString::from(v));
1489    }
1490
1491    /// Gets `ExecInst`, Tag 18.
1492    pub fn get_exec_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1493        let mut fld = field::ExecInstField::new(String::new());
1494        self.message.body.get_field(tag::EXEC_INST, &mut fld.0)?;
1495        Ok(fld.value().to_string())
1496    }
1497
1498
1499    /// Returns true if `ExecInst` is present, Tag 18.
1500    pub fn has_exec_inst(&self) -> bool {
1501        self.message.body.has(tag::EXEC_INST)
1502    }
1503
1504
1505
1506
1507    /// Sets `ExpireDate`, Tag 432.
1508    pub fn set_expire_date(&mut self, v: String) {
1509        self.message.body.set_field(tag::EXPIRE_DATE, FIXString::from(v));
1510    }
1511
1512    /// Gets `ExpireDate`, Tag 432.
1513    pub fn get_expire_date(&self) -> Result<String, MessageRejectErrorEnum> {
1514        let mut fld = field::ExpireDateField::new(String::new());
1515        self.message.body.get_field(tag::EXPIRE_DATE, &mut fld.0)?;
1516        Ok(fld.value().to_string())
1517    }
1518
1519
1520    /// Returns true if `ExpireDate` is present, Tag 432.
1521    pub fn has_expire_date(&self) -> bool {
1522        self.message.body.has(tag::EXPIRE_DATE)
1523    }
1524
1525
1526
1527
1528    /// Sets `ExpireTime`, Tag 126.
1529    pub fn set_expire_time(&mut self, v: Timestamp) {
1530        self.message.body.set_field(tag::EXPIRE_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
1531            time: v,
1532            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
1533        });
1534    }
1535
1536    /// Gets `ExpireTime`, Tag 126.
1537    pub fn get_expire_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
1538        let mut fld = field::ExpireTimeField::new(Timestamp::UNIX_EPOCH);
1539        self.message.body.get_field(tag::EXPIRE_TIME, &mut fld.0)?;
1540        Ok(fld.value())
1541    }
1542
1543
1544    /// Returns true if `ExpireTime` is present, Tag 126.
1545    pub fn has_expire_time(&self) -> bool {
1546        self.message.body.has(tag::EXPIRE_TIME)
1547    }
1548
1549
1550
1551
1552    /// Sets `Factor`, Tag 228.
1553    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
1554        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1555    }
1556
1557    /// Gets `Factor`, Tag 228.
1558    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1559        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
1560        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
1561        Ok(fld.value())
1562    }
1563
1564
1565    /// Returns true if `Factor` is present, Tag 228.
1566    pub fn has_factor(&self) -> bool {
1567        self.message.body.has(tag::FACTOR)
1568    }
1569
1570
1571
1572
1573    /// Sets `ForexReq`, Tag 121.
1574    pub fn set_forex_req(&mut self, v: bool) {
1575        self.message.body.set_field(tag::FOREX_REQ, fixer::fix_boolean::FIXBoolean::from(v));
1576    }
1577
1578    /// Gets `ForexReq`, Tag 121.
1579    pub fn get_forex_req(&self) -> Result<bool, MessageRejectErrorEnum> {
1580        let mut fld = field::ForexReqField::new(false);
1581        self.message.body.get_field(tag::FOREX_REQ, &mut fld.0)?;
1582        Ok(fld.value())
1583    }
1584
1585
1586    /// Returns true if `ForexReq` is present, Tag 121.
1587    pub fn has_forex_req(&self) -> bool {
1588        self.message.body.has(tag::FOREX_REQ)
1589    }
1590
1591
1592
1593
1594    /// Sets `FundRenewWaiv`, Tag 497.
1595    pub fn set_fund_renew_waiv(&mut self, v: String) {
1596        self.message.body.set_field(tag::FUND_RENEW_WAIV, FIXString::from(v));
1597    }
1598
1599    /// Gets `FundRenewWaiv`, Tag 497.
1600    pub fn get_fund_renew_waiv(&self) -> Result<String, MessageRejectErrorEnum> {
1601        let mut fld = field::FundRenewWaivField::new(String::new());
1602        self.message.body.get_field(tag::FUND_RENEW_WAIV, &mut fld.0)?;
1603        Ok(fld.value().to_string())
1604    }
1605
1606
1607    /// Returns true if `FundRenewWaiv` is present, Tag 497.
1608    pub fn has_fund_renew_waiv(&self) -> bool {
1609        self.message.body.has(tag::FUND_RENEW_WAIV)
1610    }
1611
1612
1613
1614
1615    /// Sets `GTBookingInst`, Tag 427.
1616    pub fn set_gt_booking_inst(&mut self, v: isize) {
1617        self.message.body.set_field(tag::GT_BOOKING_INST, fixer::fix_int::FIXInt::from(v));
1618    }
1619
1620    /// Gets `GTBookingInst`, Tag 427.
1621    pub fn get_gt_booking_inst(&self) -> Result<isize, MessageRejectErrorEnum> {
1622        let mut fld = field::GTBookingInstField::new(0);
1623        self.message.body.get_field(tag::GT_BOOKING_INST, &mut fld.0)?;
1624        Ok(fld.value())
1625    }
1626
1627
1628    /// Returns true if `GTBookingInst` is present, Tag 427.
1629    pub fn has_gt_booking_inst(&self) -> bool {
1630        self.message.body.has(tag::GT_BOOKING_INST)
1631    }
1632
1633
1634
1635
1636    /// Sets `HandlInst`, Tag 21.
1637    pub fn set_handl_inst(&mut self, v: String) {
1638        self.message.body.set_field(tag::HANDL_INST, FIXString::from(v));
1639    }
1640
1641    /// Gets `HandlInst`, Tag 21.
1642    pub fn get_handl_inst(&self) -> Result<String, MessageRejectErrorEnum> {
1643        let mut fld = field::HandlInstField::new(String::new());
1644        self.message.body.get_field(tag::HANDL_INST, &mut fld.0)?;
1645        Ok(fld.value().to_string())
1646    }
1647
1648
1649    /// Returns true if `HandlInst` is present, Tag 21.
1650    pub fn has_handl_inst(&self) -> bool {
1651        self.message.body.has(tag::HANDL_INST)
1652    }
1653
1654
1655
1656
1657    /// Sets `IOIID`, Tag 23.
1658    pub fn set_ioiid(&mut self, v: String) {
1659        self.message.body.set_field(tag::IOIID, FIXString::from(v));
1660    }
1661
1662    /// Gets `IOIID`, Tag 23.
1663    pub fn get_ioiid(&self) -> Result<String, MessageRejectErrorEnum> {
1664        let mut fld = field::IOIIDField::new(String::new());
1665        self.message.body.get_field(tag::IOIID, &mut fld.0)?;
1666        Ok(fld.value().to_string())
1667    }
1668
1669
1670    /// Returns true if `IOIID` is present, Tag 23.
1671    pub fn has_ioiid(&self) -> bool {
1672        self.message.body.has(tag::IOIID)
1673    }
1674
1675
1676
1677
1678    /// Sets `InstrRegistry`, Tag 543.
1679    pub fn set_instr_registry(&mut self, v: String) {
1680        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
1681    }
1682
1683    /// Gets `InstrRegistry`, Tag 543.
1684    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
1685        let mut fld = field::InstrRegistryField::new(String::new());
1686        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
1687        Ok(fld.value().to_string())
1688    }
1689
1690
1691    /// Returns true if `InstrRegistry` is present, Tag 543.
1692    pub fn has_instr_registry(&self) -> bool {
1693        self.message.body.has(tag::INSTR_REGISTRY)
1694    }
1695
1696
1697
1698
1699    /// Sets `InstrmtAssignmentMethod`, Tag 1049.
1700    pub fn set_instrmt_assignment_method(&mut self, v: String) {
1701        self.message.body.set_field(tag::INSTRMT_ASSIGNMENT_METHOD, FIXString::from(v));
1702    }
1703
1704    /// Gets `InstrmtAssignmentMethod`, Tag 1049.
1705    pub fn get_instrmt_assignment_method(&self) -> Result<String, MessageRejectErrorEnum> {
1706        let mut fld = field::InstrmtAssignmentMethodField::new(String::new());
1707        self.message.body.get_field(tag::INSTRMT_ASSIGNMENT_METHOD, &mut fld.0)?;
1708        Ok(fld.value().to_string())
1709    }
1710
1711
1712    /// Returns true if `InstrmtAssignmentMethod` is present, Tag 1049.
1713    pub fn has_instrmt_assignment_method(&self) -> bool {
1714        self.message.body.has(tag::INSTRMT_ASSIGNMENT_METHOD)
1715    }
1716
1717
1718
1719
1720    /// Sets `InterestAccrualDate`, Tag 874.
1721    pub fn set_interest_accrual_date(&mut self, v: String) {
1722        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
1723    }
1724
1725    /// Gets `InterestAccrualDate`, Tag 874.
1726    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
1727        let mut fld = field::InterestAccrualDateField::new(String::new());
1728        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
1729        Ok(fld.value().to_string())
1730    }
1731
1732
1733    /// Returns true if `InterestAccrualDate` is present, Tag 874.
1734    pub fn has_interest_accrual_date(&self) -> bool {
1735        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
1736    }
1737
1738
1739
1740
1741    /// Sets `IssueDate`, Tag 225.
1742    pub fn set_issue_date(&mut self, v: String) {
1743        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
1744    }
1745
1746    /// Gets `IssueDate`, Tag 225.
1747    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
1748        let mut fld = field::IssueDateField::new(String::new());
1749        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
1750        Ok(fld.value().to_string())
1751    }
1752
1753
1754    /// Returns true if `IssueDate` is present, Tag 225.
1755    pub fn has_issue_date(&self) -> bool {
1756        self.message.body.has(tag::ISSUE_DATE)
1757    }
1758
1759
1760
1761
1762    /// Sets `Issuer`, Tag 106.
1763    pub fn set_issuer(&mut self, v: String) {
1764        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
1765    }
1766
1767    /// Gets `Issuer`, Tag 106.
1768    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1769        let mut fld = field::IssuerField::new(String::new());
1770        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
1771        Ok(fld.value().to_string())
1772    }
1773
1774
1775    /// Returns true if `Issuer` is present, Tag 106.
1776    pub fn has_issuer(&self) -> bool {
1777        self.message.body.has(tag::ISSUER)
1778    }
1779
1780
1781
1782
1783    /// Sets `LocaleOfIssue`, Tag 472.
1784    pub fn set_locale_of_issue(&mut self, v: String) {
1785        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
1786    }
1787
1788    /// Gets `LocaleOfIssue`, Tag 472.
1789    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1790        let mut fld = field::LocaleOfIssueField::new(String::new());
1791        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
1792        Ok(fld.value().to_string())
1793    }
1794
1795
1796    /// Returns true if `LocaleOfIssue` is present, Tag 472.
1797    pub fn has_locale_of_issue(&self) -> bool {
1798        self.message.body.has(tag::LOCALE_OF_ISSUE)
1799    }
1800
1801
1802
1803
1804    /// Sets `LocateReqd`, Tag 114.
1805    pub fn set_locate_reqd(&mut self, v: bool) {
1806        self.message.body.set_field(tag::LOCATE_REQD, fixer::fix_boolean::FIXBoolean::from(v));
1807    }
1808
1809    /// Gets `LocateReqd`, Tag 114.
1810    pub fn get_locate_reqd(&self) -> Result<bool, MessageRejectErrorEnum> {
1811        let mut fld = field::LocateReqdField::new(false);
1812        self.message.body.get_field(tag::LOCATE_REQD, &mut fld.0)?;
1813        Ok(fld.value())
1814    }
1815
1816
1817    /// Returns true if `LocateReqd` is present, Tag 114.
1818    pub fn has_locate_reqd(&self) -> bool {
1819        self.message.body.has(tag::LOCATE_REQD)
1820    }
1821
1822
1823
1824
1825    /// Sets `ManualOrderIndicator`, Tag 1028.
1826    pub fn set_manual_order_indicator(&mut self, v: bool) {
1827        self.message.body.set_field(tag::MANUAL_ORDER_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
1828    }
1829
1830    /// Gets `ManualOrderIndicator`, Tag 1028.
1831    pub fn get_manual_order_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
1832        let mut fld = field::ManualOrderIndicatorField::new(false);
1833        self.message.body.get_field(tag::MANUAL_ORDER_INDICATOR, &mut fld.0)?;
1834        Ok(fld.value())
1835    }
1836
1837
1838    /// Returns true if `ManualOrderIndicator` is present, Tag 1028.
1839    pub fn has_manual_order_indicator(&self) -> bool {
1840        self.message.body.has(tag::MANUAL_ORDER_INDICATOR)
1841    }
1842
1843
1844
1845
1846    /// Sets `MarginRatio`, Tag 898.
1847    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
1848        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1849    }
1850
1851    /// Gets `MarginRatio`, Tag 898.
1852    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1853        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
1854        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
1855        Ok(fld.value())
1856    }
1857
1858
1859    /// Returns true if `MarginRatio` is present, Tag 898.
1860    pub fn has_margin_ratio(&self) -> bool {
1861        self.message.body.has(tag::MARGIN_RATIO)
1862    }
1863
1864
1865
1866
1867    /// Sets `MatchIncrement`, Tag 1089.
1868    pub fn set_match_increment(&mut self, val: Decimal, scale: i32) {
1869        self.message.body.set_field(tag::MATCH_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1870    }
1871
1872    /// Gets `MatchIncrement`, Tag 1089.
1873    pub fn get_match_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1874        let mut fld = field::MatchIncrementField::new(Decimal::ZERO, 0);
1875        self.message.body.get_field(tag::MATCH_INCREMENT, &mut fld.0)?;
1876        Ok(fld.value())
1877    }
1878
1879
1880    /// Returns true if `MatchIncrement` is present, Tag 1089.
1881    pub fn has_match_increment(&self) -> bool {
1882        self.message.body.has(tag::MATCH_INCREMENT)
1883    }
1884
1885
1886
1887
1888    /// Sets `MaturityDate`, Tag 541.
1889    pub fn set_maturity_date(&mut self, v: String) {
1890        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
1891    }
1892
1893    /// Gets `MaturityDate`, Tag 541.
1894    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
1895        let mut fld = field::MaturityDateField::new(String::new());
1896        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
1897        Ok(fld.value().to_string())
1898    }
1899
1900
1901    /// Returns true if `MaturityDate` is present, Tag 541.
1902    pub fn has_maturity_date(&self) -> bool {
1903        self.message.body.has(tag::MATURITY_DATE)
1904    }
1905
1906
1907
1908
1909    /// Sets `MaturityMonthYear`, Tag 200.
1910    pub fn set_maturity_month_year(&mut self, v: String) {
1911        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
1912    }
1913
1914    /// Gets `MaturityMonthYear`, Tag 200.
1915    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
1916        let mut fld = field::MaturityMonthYearField::new(String::new());
1917        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
1918        Ok(fld.value().to_string())
1919    }
1920
1921
1922    /// Returns true if `MaturityMonthYear` is present, Tag 200.
1923    pub fn has_maturity_month_year(&self) -> bool {
1924        self.message.body.has(tag::MATURITY_MONTH_YEAR)
1925    }
1926
1927
1928
1929
1930    /// Sets `MaturityTime`, Tag 1079.
1931    pub fn set_maturity_time(&mut self, v: String) {
1932        self.message.body.set_field(tag::MATURITY_TIME, FIXString::from(v));
1933    }
1934
1935    /// Gets `MaturityTime`, Tag 1079.
1936    pub fn get_maturity_time(&self) -> Result<String, MessageRejectErrorEnum> {
1937        let mut fld = field::MaturityTimeField::new(String::new());
1938        self.message.body.get_field(tag::MATURITY_TIME, &mut fld.0)?;
1939        Ok(fld.value().to_string())
1940    }
1941
1942
1943    /// Returns true if `MaturityTime` is present, Tag 1079.
1944    pub fn has_maturity_time(&self) -> bool {
1945        self.message.body.has(tag::MATURITY_TIME)
1946    }
1947
1948
1949
1950
1951    /// Sets `MaxFloor`, Tag 111.
1952    pub fn set_max_floor(&mut self, val: Decimal, scale: i32) {
1953        self.message.body.set_field(tag::MAX_FLOOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1954    }
1955
1956    /// Gets `MaxFloor`, Tag 111.
1957    pub fn get_max_floor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1958        let mut fld = field::MaxFloorField::new(Decimal::ZERO, 0);
1959        self.message.body.get_field(tag::MAX_FLOOR, &mut fld.0)?;
1960        Ok(fld.value())
1961    }
1962
1963
1964    /// Returns true if `MaxFloor` is present, Tag 111.
1965    pub fn has_max_floor(&self) -> bool {
1966        self.message.body.has(tag::MAX_FLOOR)
1967    }
1968
1969
1970
1971
1972    /// Sets `MaxPriceLevels`, Tag 1090.
1973    pub fn set_max_price_levels(&mut self, v: isize) {
1974        self.message.body.set_field(tag::MAX_PRICE_LEVELS, fixer::fix_int::FIXInt::from(v));
1975    }
1976
1977    /// Gets `MaxPriceLevels`, Tag 1090.
1978    pub fn get_max_price_levels(&self) -> Result<isize, MessageRejectErrorEnum> {
1979        let mut fld = field::MaxPriceLevelsField::new(0);
1980        self.message.body.get_field(tag::MAX_PRICE_LEVELS, &mut fld.0)?;
1981        Ok(fld.value())
1982    }
1983
1984
1985    /// Returns true if `MaxPriceLevels` is present, Tag 1090.
1986    pub fn has_max_price_levels(&self) -> bool {
1987        self.message.body.has(tag::MAX_PRICE_LEVELS)
1988    }
1989
1990
1991
1992
1993    /// Sets `MaxShow`, Tag 210.
1994    pub fn set_max_show(&mut self, val: Decimal, scale: i32) {
1995        self.message.body.set_field(tag::MAX_SHOW, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1996    }
1997
1998    /// Gets `MaxShow`, Tag 210.
1999    pub fn get_max_show(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2000        let mut fld = field::MaxShowField::new(Decimal::ZERO, 0);
2001        self.message.body.get_field(tag::MAX_SHOW, &mut fld.0)?;
2002        Ok(fld.value())
2003    }
2004
2005
2006    /// Returns true if `MaxShow` is present, Tag 210.
2007    pub fn has_max_show(&self) -> bool {
2008        self.message.body.has(tag::MAX_SHOW)
2009    }
2010
2011
2012
2013
2014    /// Sets `MinPriceIncrement`, Tag 969.
2015    pub fn set_min_price_increment(&mut self, val: Decimal, scale: i32) {
2016        self.message.body.set_field(tag::MIN_PRICE_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2017    }
2018
2019    /// Gets `MinPriceIncrement`, Tag 969.
2020    pub fn get_min_price_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2021        let mut fld = field::MinPriceIncrementField::new(Decimal::ZERO, 0);
2022        self.message.body.get_field(tag::MIN_PRICE_INCREMENT, &mut fld.0)?;
2023        Ok(fld.value())
2024    }
2025
2026
2027    /// Returns true if `MinPriceIncrement` is present, Tag 969.
2028    pub fn has_min_price_increment(&self) -> bool {
2029        self.message.body.has(tag::MIN_PRICE_INCREMENT)
2030    }
2031
2032
2033
2034
2035    /// Sets `MinQty`, Tag 110.
2036    pub fn set_min_qty(&mut self, val: Decimal, scale: i32) {
2037        self.message.body.set_field(tag::MIN_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2038    }
2039
2040    /// Gets `MinQty`, Tag 110.
2041    pub fn get_min_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2042        let mut fld = field::MinQtyField::new(Decimal::ZERO, 0);
2043        self.message.body.get_field(tag::MIN_QTY, &mut fld.0)?;
2044        Ok(fld.value())
2045    }
2046
2047
2048    /// Returns true if `MinQty` is present, Tag 110.
2049    pub fn has_min_qty(&self) -> bool {
2050        self.message.body.has(tag::MIN_QTY)
2051    }
2052
2053
2054
2055
2056    /// Sets `MoneyLaunderingStatus`, Tag 481.
2057    pub fn set_money_laundering_status(&mut self, v: String) {
2058        self.message.body.set_field(tag::MONEY_LAUNDERING_STATUS, FIXString::from(v));
2059    }
2060
2061    /// Gets `MoneyLaunderingStatus`, Tag 481.
2062    pub fn get_money_laundering_status(&self) -> Result<String, MessageRejectErrorEnum> {
2063        let mut fld = field::MoneyLaunderingStatusField::new(String::new());
2064        self.message.body.get_field(tag::MONEY_LAUNDERING_STATUS, &mut fld.0)?;
2065        Ok(fld.value().to_string())
2066    }
2067
2068
2069    /// Returns true if `MoneyLaunderingStatus` is present, Tag 481.
2070    pub fn has_money_laundering_status(&self) -> bool {
2071        self.message.body.has(tag::MONEY_LAUNDERING_STATUS)
2072    }
2073
2074
2075
2076
2077    /// Sets `NTPositionLimit`, Tag 971.
2078    pub fn set_nt_position_limit(&mut self, v: isize) {
2079        self.message.body.set_field(tag::NT_POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
2080    }
2081
2082    /// Gets `NTPositionLimit`, Tag 971.
2083    pub fn get_nt_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
2084        let mut fld = field::NTPositionLimitField::new(0);
2085        self.message.body.get_field(tag::NT_POSITION_LIMIT, &mut fld.0)?;
2086        Ok(fld.value())
2087    }
2088
2089
2090    /// Returns true if `NTPositionLimit` is present, Tag 971.
2091    pub fn has_nt_position_limit(&self) -> bool {
2092        self.message.body.has(tag::NT_POSITION_LIMIT)
2093    }
2094
2095
2096
2097
2098    /// Sets `NoAllocs`, Tag 78.
2099    pub fn set_no_allocs(&mut self, v: isize) {
2100        self.message.body.set_field(tag::NO_ALLOCS, fixer::fix_int::FIXInt::from(v));
2101    }
2102
2103    /// Gets `NoAllocs`, Tag 78.
2104    pub fn get_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum> {
2105        let mut fld = field::NoAllocsField::new(0);
2106        self.message.body.get_field(tag::NO_ALLOCS, &mut fld.0)?;
2107        Ok(fld.value())
2108    }
2109
2110
2111    /// Returns true if `NoAllocs` is present, Tag 78.
2112    pub fn has_no_allocs(&self) -> bool {
2113        self.message.body.has(tag::NO_ALLOCS)
2114    }
2115
2116
2117
2118
2119    /// Sets `NoEvents`, Tag 864.
2120    pub fn set_no_events(&mut self, v: isize) {
2121        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
2122    }
2123
2124    /// Gets `NoEvents`, Tag 864.
2125    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
2126        let mut fld = field::NoEventsField::new(0);
2127        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
2128        Ok(fld.value())
2129    }
2130
2131
2132    /// Returns true if `NoEvents` is present, Tag 864.
2133    pub fn has_no_events(&self) -> bool {
2134        self.message.body.has(tag::NO_EVENTS)
2135    }
2136
2137
2138
2139
2140    /// Sets `NoInstrumentParties`, Tag 1018.
2141    pub fn set_no_instrument_parties(&mut self, v: isize) {
2142        self.message.body.set_field(tag::NO_INSTRUMENT_PARTIES, fixer::fix_int::FIXInt::from(v));
2143    }
2144
2145    /// Gets `NoInstrumentParties`, Tag 1018.
2146    pub fn get_no_instrument_parties(&self) -> Result<isize, MessageRejectErrorEnum> {
2147        let mut fld = field::NoInstrumentPartiesField::new(0);
2148        self.message.body.get_field(tag::NO_INSTRUMENT_PARTIES, &mut fld.0)?;
2149        Ok(fld.value())
2150    }
2151
2152
2153    /// Returns true if `NoInstrumentParties` is present, Tag 1018.
2154    pub fn has_no_instrument_parties(&self) -> bool {
2155        self.message.body.has(tag::NO_INSTRUMENT_PARTIES)
2156    }
2157
2158
2159
2160
2161    /// Sets `NoPartyIDs`, Tag 453.
2162    pub fn set_no_party_i_ds(&mut self, v: isize) {
2163        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
2164    }
2165
2166    /// Gets `NoPartyIDs`, Tag 453.
2167    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
2168        let mut fld = field::NoPartyIDsField::new(0);
2169        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
2170        Ok(fld.value())
2171    }
2172
2173
2174    /// Returns true if `NoPartyIDs` is present, Tag 453.
2175    pub fn has_no_party_i_ds(&self) -> bool {
2176        self.message.body.has(tag::NO_PARTY_I_DS)
2177    }
2178
2179
2180
2181
2182    /// Sets `NoSecurityAltID`, Tag 454.
2183    pub fn set_no_security_alt_id(&mut self, v: isize) {
2184        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
2185    }
2186
2187    /// Gets `NoSecurityAltID`, Tag 454.
2188    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
2189        let mut fld = field::NoSecurityAltIDField::new(0);
2190        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
2191        Ok(fld.value())
2192    }
2193
2194
2195    /// Returns true if `NoSecurityAltID` is present, Tag 454.
2196    pub fn has_no_security_alt_id(&self) -> bool {
2197        self.message.body.has(tag::NO_SECURITY_ALT_ID)
2198    }
2199
2200
2201
2202
2203    /// Sets `NoStipulations`, Tag 232.
2204    pub fn set_no_stipulations(&mut self, v: isize) {
2205        self.message.body.set_field(tag::NO_STIPULATIONS, fixer::fix_int::FIXInt::from(v));
2206    }
2207
2208    /// Gets `NoStipulations`, Tag 232.
2209    pub fn get_no_stipulations(&self) -> Result<isize, MessageRejectErrorEnum> {
2210        let mut fld = field::NoStipulationsField::new(0);
2211        self.message.body.get_field(tag::NO_STIPULATIONS, &mut fld.0)?;
2212        Ok(fld.value())
2213    }
2214
2215
2216    /// Returns true if `NoStipulations` is present, Tag 232.
2217    pub fn has_no_stipulations(&self) -> bool {
2218        self.message.body.has(tag::NO_STIPULATIONS)
2219    }
2220
2221
2222
2223
2224    /// Sets `NoStrategyParameters`, Tag 957.
2225    pub fn set_no_strategy_parameters(&mut self, v: isize) {
2226        self.message.body.set_field(tag::NO_STRATEGY_PARAMETERS, fixer::fix_int::FIXInt::from(v));
2227    }
2228
2229    /// Gets `NoStrategyParameters`, Tag 957.
2230    pub fn get_no_strategy_parameters(&self) -> Result<isize, MessageRejectErrorEnum> {
2231        let mut fld = field::NoStrategyParametersField::new(0);
2232        self.message.body.get_field(tag::NO_STRATEGY_PARAMETERS, &mut fld.0)?;
2233        Ok(fld.value())
2234    }
2235
2236
2237    /// Returns true if `NoStrategyParameters` is present, Tag 957.
2238    pub fn has_no_strategy_parameters(&self) -> bool {
2239        self.message.body.has(tag::NO_STRATEGY_PARAMETERS)
2240    }
2241
2242
2243
2244
2245    /// Sets `NoTradingSessions`, Tag 386.
2246    pub fn set_no_trading_sessions(&mut self, v: isize) {
2247        self.message.body.set_field(tag::NO_TRADING_SESSIONS, fixer::fix_int::FIXInt::from(v));
2248    }
2249
2250    /// Gets `NoTradingSessions`, Tag 386.
2251    pub fn get_no_trading_sessions(&self) -> Result<isize, MessageRejectErrorEnum> {
2252        let mut fld = field::NoTradingSessionsField::new(0);
2253        self.message.body.get_field(tag::NO_TRADING_SESSIONS, &mut fld.0)?;
2254        Ok(fld.value())
2255    }
2256
2257
2258    /// Returns true if `NoTradingSessions` is present, Tag 386.
2259    pub fn has_no_trading_sessions(&self) -> bool {
2260        self.message.body.has(tag::NO_TRADING_SESSIONS)
2261    }
2262
2263
2264
2265
2266    /// Sets `NoTrdRegTimestamps`, Tag 768.
2267    pub fn set_no_trd_reg_timestamps(&mut self, v: isize) {
2268        self.message.body.set_field(tag::NO_TRD_REG_TIMESTAMPS, fixer::fix_int::FIXInt::from(v));
2269    }
2270
2271    /// Gets `NoTrdRegTimestamps`, Tag 768.
2272    pub fn get_no_trd_reg_timestamps(&self) -> Result<isize, MessageRejectErrorEnum> {
2273        let mut fld = field::NoTrdRegTimestampsField::new(0);
2274        self.message.body.get_field(tag::NO_TRD_REG_TIMESTAMPS, &mut fld.0)?;
2275        Ok(fld.value())
2276    }
2277
2278
2279    /// Returns true if `NoTrdRegTimestamps` is present, Tag 768.
2280    pub fn has_no_trd_reg_timestamps(&self) -> bool {
2281        self.message.body.has(tag::NO_TRD_REG_TIMESTAMPS)
2282    }
2283
2284
2285
2286
2287    /// Sets `NoUnderlyings`, Tag 711.
2288    pub fn set_no_underlyings(&mut self, v: isize) {
2289        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
2290    }
2291
2292    /// Gets `NoUnderlyings`, Tag 711.
2293    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
2294        let mut fld = field::NoUnderlyingsField::new(0);
2295        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
2296        Ok(fld.value())
2297    }
2298
2299
2300    /// Returns true if `NoUnderlyings` is present, Tag 711.
2301    pub fn has_no_underlyings(&self) -> bool {
2302        self.message.body.has(tag::NO_UNDERLYINGS)
2303    }
2304
2305
2306
2307
2308    /// Sets `OptAttribute`, Tag 206.
2309    pub fn set_opt_attribute(&mut self, v: String) {
2310        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
2311    }
2312
2313    /// Gets `OptAttribute`, Tag 206.
2314    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
2315        let mut fld = field::OptAttributeField::new(String::new());
2316        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
2317        Ok(fld.value().to_string())
2318    }
2319
2320
2321    /// Returns true if `OptAttribute` is present, Tag 206.
2322    pub fn has_opt_attribute(&self) -> bool {
2323        self.message.body.has(tag::OPT_ATTRIBUTE)
2324    }
2325
2326
2327
2328
2329    /// Sets `OrdType`, Tag 40.
2330    pub fn set_ord_type(&mut self, v: String) {
2331        self.message.body.set_field(tag::ORD_TYPE, FIXString::from(v));
2332    }
2333
2334    /// Gets `OrdType`, Tag 40.
2335    pub fn get_ord_type(&self) -> Result<String, MessageRejectErrorEnum> {
2336        let mut fld = field::OrdTypeField::new(String::new());
2337        self.message.body.get_field(tag::ORD_TYPE, &mut fld.0)?;
2338        Ok(fld.value().to_string())
2339    }
2340
2341
2342    /// Returns true if `OrdType` is present, Tag 40.
2343    pub fn has_ord_type(&self) -> bool {
2344        self.message.body.has(tag::ORD_TYPE)
2345    }
2346
2347
2348
2349
2350    /// Sets `OrderCapacity`, Tag 528.
2351    pub fn set_order_capacity(&mut self, v: String) {
2352        self.message.body.set_field(tag::ORDER_CAPACITY, FIXString::from(v));
2353    }
2354
2355    /// Gets `OrderCapacity`, Tag 528.
2356    pub fn get_order_capacity(&self) -> Result<String, MessageRejectErrorEnum> {
2357        let mut fld = field::OrderCapacityField::new(String::new());
2358        self.message.body.get_field(tag::ORDER_CAPACITY, &mut fld.0)?;
2359        Ok(fld.value().to_string())
2360    }
2361
2362
2363    /// Returns true if `OrderCapacity` is present, Tag 528.
2364    pub fn has_order_capacity(&self) -> bool {
2365        self.message.body.has(tag::ORDER_CAPACITY)
2366    }
2367
2368
2369
2370
2371    /// Sets `OrderHandlingInstSource`, Tag 1032.
2372    pub fn set_order_handling_inst_source(&mut self, v: isize) {
2373        self.message.body.set_field(tag::ORDER_HANDLING_INST_SOURCE, fixer::fix_int::FIXInt::from(v));
2374    }
2375
2376    /// Gets `OrderHandlingInstSource`, Tag 1032.
2377    pub fn get_order_handling_inst_source(&self) -> Result<isize, MessageRejectErrorEnum> {
2378        let mut fld = field::OrderHandlingInstSourceField::new(0);
2379        self.message.body.get_field(tag::ORDER_HANDLING_INST_SOURCE, &mut fld.0)?;
2380        Ok(fld.value())
2381    }
2382
2383
2384    /// Returns true if `OrderHandlingInstSource` is present, Tag 1032.
2385    pub fn has_order_handling_inst_source(&self) -> bool {
2386        self.message.body.has(tag::ORDER_HANDLING_INST_SOURCE)
2387    }
2388
2389
2390
2391
2392    /// Sets `OrderPercent`, Tag 516.
2393    pub fn set_order_percent(&mut self, val: Decimal, scale: i32) {
2394        self.message.body.set_field(tag::ORDER_PERCENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2395    }
2396
2397    /// Gets `OrderPercent`, Tag 516.
2398    pub fn get_order_percent(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2399        let mut fld = field::OrderPercentField::new(Decimal::ZERO, 0);
2400        self.message.body.get_field(tag::ORDER_PERCENT, &mut fld.0)?;
2401        Ok(fld.value())
2402    }
2403
2404
2405    /// Returns true if `OrderPercent` is present, Tag 516.
2406    pub fn has_order_percent(&self) -> bool {
2407        self.message.body.has(tag::ORDER_PERCENT)
2408    }
2409
2410
2411
2412
2413    /// Sets `OrderQty`, Tag 38.
2414    pub fn set_order_qty(&mut self, val: Decimal, scale: i32) {
2415        self.message.body.set_field(tag::ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2416    }
2417
2418    /// Gets `OrderQty`, Tag 38.
2419    pub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2420        let mut fld = field::OrderQtyField::new(Decimal::ZERO, 0);
2421        self.message.body.get_field(tag::ORDER_QTY, &mut fld.0)?;
2422        Ok(fld.value())
2423    }
2424
2425
2426    /// Returns true if `OrderQty` is present, Tag 38.
2427    pub fn has_order_qty(&self) -> bool {
2428        self.message.body.has(tag::ORDER_QTY)
2429    }
2430
2431
2432
2433
2434    /// Sets `OrderQty2`, Tag 192.
2435    pub fn set_order_qty2(&mut self, val: Decimal, scale: i32) {
2436        self.message.body.set_field(tag::ORDER_QTY2, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2437    }
2438
2439    /// Gets `OrderQty2`, Tag 192.
2440    pub fn get_order_qty2(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2441        let mut fld = field::OrderQty2Field::new(Decimal::ZERO, 0);
2442        self.message.body.get_field(tag::ORDER_QTY2, &mut fld.0)?;
2443        Ok(fld.value())
2444    }
2445
2446
2447    /// Returns true if `OrderQty2` is present, Tag 192.
2448    pub fn has_order_qty2(&self) -> bool {
2449        self.message.body.has(tag::ORDER_QTY2)
2450    }
2451
2452
2453
2454
2455    /// Sets `OrderRestrictions`, Tag 529.
2456    pub fn set_order_restrictions(&mut self, v: String) {
2457        self.message.body.set_field(tag::ORDER_RESTRICTIONS, FIXString::from(v));
2458    }
2459
2460    /// Gets `OrderRestrictions`, Tag 529.
2461    pub fn get_order_restrictions(&self) -> Result<String, MessageRejectErrorEnum> {
2462        let mut fld = field::OrderRestrictionsField::new(String::new());
2463        self.message.body.get_field(tag::ORDER_RESTRICTIONS, &mut fld.0)?;
2464        Ok(fld.value().to_string())
2465    }
2466
2467
2468    /// Returns true if `OrderRestrictions` is present, Tag 529.
2469    pub fn has_order_restrictions(&self) -> bool {
2470        self.message.body.has(tag::ORDER_RESTRICTIONS)
2471    }
2472
2473
2474
2475
2476    /// Sets `ParticipationRate`, Tag 849.
2477    pub fn set_participation_rate(&mut self, val: Decimal, scale: i32) {
2478        self.message.body.set_field(tag::PARTICIPATION_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2479    }
2480
2481    /// Gets `ParticipationRate`, Tag 849.
2482    pub fn get_participation_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2483        let mut fld = field::ParticipationRateField::new(Decimal::ZERO, 0);
2484        self.message.body.get_field(tag::PARTICIPATION_RATE, &mut fld.0)?;
2485        Ok(fld.value())
2486    }
2487
2488
2489    /// Returns true if `ParticipationRate` is present, Tag 849.
2490    pub fn has_participation_rate(&self) -> bool {
2491        self.message.body.has(tag::PARTICIPATION_RATE)
2492    }
2493
2494
2495
2496
2497    /// Sets `PegLimitType`, Tag 837.
2498    pub fn set_peg_limit_type(&mut self, v: isize) {
2499        self.message.body.set_field(tag::PEG_LIMIT_TYPE, fixer::fix_int::FIXInt::from(v));
2500    }
2501
2502    /// Gets `PegLimitType`, Tag 837.
2503    pub fn get_peg_limit_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2504        let mut fld = field::PegLimitTypeField::new(0);
2505        self.message.body.get_field(tag::PEG_LIMIT_TYPE, &mut fld.0)?;
2506        Ok(fld.value())
2507    }
2508
2509
2510    /// Returns true if `PegLimitType` is present, Tag 837.
2511    pub fn has_peg_limit_type(&self) -> bool {
2512        self.message.body.has(tag::PEG_LIMIT_TYPE)
2513    }
2514
2515
2516
2517
2518    /// Sets `PegMoveType`, Tag 835.
2519    pub fn set_peg_move_type(&mut self, v: isize) {
2520        self.message.body.set_field(tag::PEG_MOVE_TYPE, fixer::fix_int::FIXInt::from(v));
2521    }
2522
2523    /// Gets `PegMoveType`, Tag 835.
2524    pub fn get_peg_move_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2525        let mut fld = field::PegMoveTypeField::new(0);
2526        self.message.body.get_field(tag::PEG_MOVE_TYPE, &mut fld.0)?;
2527        Ok(fld.value())
2528    }
2529
2530
2531    /// Returns true if `PegMoveType` is present, Tag 835.
2532    pub fn has_peg_move_type(&self) -> bool {
2533        self.message.body.has(tag::PEG_MOVE_TYPE)
2534    }
2535
2536
2537
2538
2539    /// Sets `PegOffsetType`, Tag 836.
2540    pub fn set_peg_offset_type(&mut self, v: isize) {
2541        self.message.body.set_field(tag::PEG_OFFSET_TYPE, fixer::fix_int::FIXInt::from(v));
2542    }
2543
2544    /// Gets `PegOffsetType`, Tag 836.
2545    pub fn get_peg_offset_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2546        let mut fld = field::PegOffsetTypeField::new(0);
2547        self.message.body.get_field(tag::PEG_OFFSET_TYPE, &mut fld.0)?;
2548        Ok(fld.value())
2549    }
2550
2551
2552    /// Returns true if `PegOffsetType` is present, Tag 836.
2553    pub fn has_peg_offset_type(&self) -> bool {
2554        self.message.body.has(tag::PEG_OFFSET_TYPE)
2555    }
2556
2557
2558
2559
2560    /// Sets `PegOffsetValue`, Tag 211.
2561    pub fn set_peg_offset_value(&mut self, val: Decimal, scale: i32) {
2562        self.message.body.set_field(tag::PEG_OFFSET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2563    }
2564
2565    /// Gets `PegOffsetValue`, Tag 211.
2566    pub fn get_peg_offset_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2567        let mut fld = field::PegOffsetValueField::new(Decimal::ZERO, 0);
2568        self.message.body.get_field(tag::PEG_OFFSET_VALUE, &mut fld.0)?;
2569        Ok(fld.value())
2570    }
2571
2572
2573    /// Returns true if `PegOffsetValue` is present, Tag 211.
2574    pub fn has_peg_offset_value(&self) -> bool {
2575        self.message.body.has(tag::PEG_OFFSET_VALUE)
2576    }
2577
2578
2579
2580
2581    /// Sets `PegPriceType`, Tag 1094.
2582    pub fn set_peg_price_type(&mut self, v: isize) {
2583        self.message.body.set_field(tag::PEG_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
2584    }
2585
2586    /// Gets `PegPriceType`, Tag 1094.
2587    pub fn get_peg_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2588        let mut fld = field::PegPriceTypeField::new(0);
2589        self.message.body.get_field(tag::PEG_PRICE_TYPE, &mut fld.0)?;
2590        Ok(fld.value())
2591    }
2592
2593
2594    /// Returns true if `PegPriceType` is present, Tag 1094.
2595    pub fn has_peg_price_type(&self) -> bool {
2596        self.message.body.has(tag::PEG_PRICE_TYPE)
2597    }
2598
2599
2600
2601
2602    /// Sets `PegRoundDirection`, Tag 838.
2603    pub fn set_peg_round_direction(&mut self, v: isize) {
2604        self.message.body.set_field(tag::PEG_ROUND_DIRECTION, fixer::fix_int::FIXInt::from(v));
2605    }
2606
2607    /// Gets `PegRoundDirection`, Tag 838.
2608    pub fn get_peg_round_direction(&self) -> Result<isize, MessageRejectErrorEnum> {
2609        let mut fld = field::PegRoundDirectionField::new(0);
2610        self.message.body.get_field(tag::PEG_ROUND_DIRECTION, &mut fld.0)?;
2611        Ok(fld.value())
2612    }
2613
2614
2615    /// Returns true if `PegRoundDirection` is present, Tag 838.
2616    pub fn has_peg_round_direction(&self) -> bool {
2617        self.message.body.has(tag::PEG_ROUND_DIRECTION)
2618    }
2619
2620
2621
2622
2623    /// Sets `PegScope`, Tag 840.
2624    pub fn set_peg_scope(&mut self, v: isize) {
2625        self.message.body.set_field(tag::PEG_SCOPE, fixer::fix_int::FIXInt::from(v));
2626    }
2627
2628    /// Gets `PegScope`, Tag 840.
2629    pub fn get_peg_scope(&self) -> Result<isize, MessageRejectErrorEnum> {
2630        let mut fld = field::PegScopeField::new(0);
2631        self.message.body.get_field(tag::PEG_SCOPE, &mut fld.0)?;
2632        Ok(fld.value())
2633    }
2634
2635
2636    /// Returns true if `PegScope` is present, Tag 840.
2637    pub fn has_peg_scope(&self) -> bool {
2638        self.message.body.has(tag::PEG_SCOPE)
2639    }
2640
2641
2642
2643
2644    /// Sets `PegSecurityDesc`, Tag 1099.
2645    pub fn set_peg_security_desc(&mut self, v: String) {
2646        self.message.body.set_field(tag::PEG_SECURITY_DESC, FIXString::from(v));
2647    }
2648
2649    /// Gets `PegSecurityDesc`, Tag 1099.
2650    pub fn get_peg_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
2651        let mut fld = field::PegSecurityDescField::new(String::new());
2652        self.message.body.get_field(tag::PEG_SECURITY_DESC, &mut fld.0)?;
2653        Ok(fld.value().to_string())
2654    }
2655
2656
2657    /// Returns true if `PegSecurityDesc` is present, Tag 1099.
2658    pub fn has_peg_security_desc(&self) -> bool {
2659        self.message.body.has(tag::PEG_SECURITY_DESC)
2660    }
2661
2662
2663
2664
2665    /// Sets `PegSecurityID`, Tag 1097.
2666    pub fn set_peg_security_id(&mut self, v: String) {
2667        self.message.body.set_field(tag::PEG_SECURITY_ID, FIXString::from(v));
2668    }
2669
2670    /// Gets `PegSecurityID`, Tag 1097.
2671    pub fn get_peg_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
2672        let mut fld = field::PegSecurityIDField::new(String::new());
2673        self.message.body.get_field(tag::PEG_SECURITY_ID, &mut fld.0)?;
2674        Ok(fld.value().to_string())
2675    }
2676
2677
2678    /// Returns true if `PegSecurityID` is present, Tag 1097.
2679    pub fn has_peg_security_id(&self) -> bool {
2680        self.message.body.has(tag::PEG_SECURITY_ID)
2681    }
2682
2683
2684
2685
2686    /// Sets `PegSecurityIDSource`, Tag 1096.
2687    pub fn set_peg_security_id_source(&mut self, v: String) {
2688        self.message.body.set_field(tag::PEG_SECURITY_ID_SOURCE, FIXString::from(v));
2689    }
2690
2691    /// Gets `PegSecurityIDSource`, Tag 1096.
2692    pub fn get_peg_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
2693        let mut fld = field::PegSecurityIDSourceField::new(String::new());
2694        self.message.body.get_field(tag::PEG_SECURITY_ID_SOURCE, &mut fld.0)?;
2695        Ok(fld.value().to_string())
2696    }
2697
2698
2699    /// Returns true if `PegSecurityIDSource` is present, Tag 1096.
2700    pub fn has_peg_security_id_source(&self) -> bool {
2701        self.message.body.has(tag::PEG_SECURITY_ID_SOURCE)
2702    }
2703
2704
2705
2706
2707    /// Sets `PegSymbol`, Tag 1098.
2708    pub fn set_peg_symbol(&mut self, v: String) {
2709        self.message.body.set_field(tag::PEG_SYMBOL, FIXString::from(v));
2710    }
2711
2712    /// Gets `PegSymbol`, Tag 1098.
2713    pub fn get_peg_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
2714        let mut fld = field::PegSymbolField::new(String::new());
2715        self.message.body.get_field(tag::PEG_SYMBOL, &mut fld.0)?;
2716        Ok(fld.value().to_string())
2717    }
2718
2719
2720    /// Returns true if `PegSymbol` is present, Tag 1098.
2721    pub fn has_peg_symbol(&self) -> bool {
2722        self.message.body.has(tag::PEG_SYMBOL)
2723    }
2724
2725
2726
2727
2728    /// Sets `Pool`, Tag 691.
2729    pub fn set_pool(&mut self, v: String) {
2730        self.message.body.set_field(tag::POOL, FIXString::from(v));
2731    }
2732
2733    /// Gets `Pool`, Tag 691.
2734    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
2735        let mut fld = field::PoolField::new(String::new());
2736        self.message.body.get_field(tag::POOL, &mut fld.0)?;
2737        Ok(fld.value().to_string())
2738    }
2739
2740
2741    /// Returns true if `Pool` is present, Tag 691.
2742    pub fn has_pool(&self) -> bool {
2743        self.message.body.has(tag::POOL)
2744    }
2745
2746
2747
2748
2749    /// Sets `PositionEffect`, Tag 77.
2750    pub fn set_position_effect(&mut self, v: String) {
2751        self.message.body.set_field(tag::POSITION_EFFECT, FIXString::from(v));
2752    }
2753
2754    /// Gets `PositionEffect`, Tag 77.
2755    pub fn get_position_effect(&self) -> Result<String, MessageRejectErrorEnum> {
2756        let mut fld = field::PositionEffectField::new(String::new());
2757        self.message.body.get_field(tag::POSITION_EFFECT, &mut fld.0)?;
2758        Ok(fld.value().to_string())
2759    }
2760
2761
2762    /// Returns true if `PositionEffect` is present, Tag 77.
2763    pub fn has_position_effect(&self) -> bool {
2764        self.message.body.has(tag::POSITION_EFFECT)
2765    }
2766
2767
2768
2769
2770    /// Sets `PositionLimit`, Tag 970.
2771    pub fn set_position_limit(&mut self, v: isize) {
2772        self.message.body.set_field(tag::POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
2773    }
2774
2775    /// Gets `PositionLimit`, Tag 970.
2776    pub fn get_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
2777        let mut fld = field::PositionLimitField::new(0);
2778        self.message.body.get_field(tag::POSITION_LIMIT, &mut fld.0)?;
2779        Ok(fld.value())
2780    }
2781
2782
2783    /// Returns true if `PositionLimit` is present, Tag 970.
2784    pub fn has_position_limit(&self) -> bool {
2785        self.message.body.has(tag::POSITION_LIMIT)
2786    }
2787
2788
2789
2790
2791    /// Sets `PreTradeAnonymity`, Tag 1091.
2792    pub fn set_pre_trade_anonymity(&mut self, v: bool) {
2793        self.message.body.set_field(tag::PRE_TRADE_ANONYMITY, fixer::fix_boolean::FIXBoolean::from(v));
2794    }
2795
2796    /// Gets `PreTradeAnonymity`, Tag 1091.
2797    pub fn get_pre_trade_anonymity(&self) -> Result<bool, MessageRejectErrorEnum> {
2798        let mut fld = field::PreTradeAnonymityField::new(false);
2799        self.message.body.get_field(tag::PRE_TRADE_ANONYMITY, &mut fld.0)?;
2800        Ok(fld.value())
2801    }
2802
2803
2804    /// Returns true if `PreTradeAnonymity` is present, Tag 1091.
2805    pub fn has_pre_trade_anonymity(&self) -> bool {
2806        self.message.body.has(tag::PRE_TRADE_ANONYMITY)
2807    }
2808
2809
2810
2811
2812    /// Sets `PreallocMethod`, Tag 591.
2813    pub fn set_prealloc_method(&mut self, v: String) {
2814        self.message.body.set_field(tag::PREALLOC_METHOD, FIXString::from(v));
2815    }
2816
2817    /// Gets `PreallocMethod`, Tag 591.
2818    pub fn get_prealloc_method(&self) -> Result<String, MessageRejectErrorEnum> {
2819        let mut fld = field::PreallocMethodField::new(String::new());
2820        self.message.body.get_field(tag::PREALLOC_METHOD, &mut fld.0)?;
2821        Ok(fld.value().to_string())
2822    }
2823
2824
2825    /// Returns true if `PreallocMethod` is present, Tag 591.
2826    pub fn has_prealloc_method(&self) -> bool {
2827        self.message.body.has(tag::PREALLOC_METHOD)
2828    }
2829
2830
2831
2832
2833    /// Sets `PrevClosePx`, Tag 140.
2834    pub fn set_prev_close_px(&mut self, val: Decimal, scale: i32) {
2835        self.message.body.set_field(tag::PREV_CLOSE_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2836    }
2837
2838    /// Gets `PrevClosePx`, Tag 140.
2839    pub fn get_prev_close_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2840        let mut fld = field::PrevClosePxField::new(Decimal::ZERO, 0);
2841        self.message.body.get_field(tag::PREV_CLOSE_PX, &mut fld.0)?;
2842        Ok(fld.value())
2843    }
2844
2845
2846    /// Returns true if `PrevClosePx` is present, Tag 140.
2847    pub fn has_prev_close_px(&self) -> bool {
2848        self.message.body.has(tag::PREV_CLOSE_PX)
2849    }
2850
2851
2852
2853
2854    /// Sets `Price`, Tag 44.
2855    pub fn set_price(&mut self, val: Decimal, scale: i32) {
2856        self.message.body.set_field(tag::PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2857    }
2858
2859    /// Gets `Price`, Tag 44.
2860    pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2861        let mut fld = field::PriceField::new(Decimal::ZERO, 0);
2862        self.message.body.get_field(tag::PRICE, &mut fld.0)?;
2863        Ok(fld.value())
2864    }
2865
2866
2867    /// Returns true if `Price` is present, Tag 44.
2868    pub fn has_price(&self) -> bool {
2869        self.message.body.has(tag::PRICE)
2870    }
2871
2872
2873
2874
2875    /// Sets `Price2`, Tag 640.
2876    pub fn set_price2(&mut self, val: Decimal, scale: i32) {
2877        self.message.body.set_field(tag::PRICE2, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2878    }
2879
2880    /// Gets `Price2`, Tag 640.
2881    pub fn get_price2(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2882        let mut fld = field::Price2Field::new(Decimal::ZERO, 0);
2883        self.message.body.get_field(tag::PRICE2, &mut fld.0)?;
2884        Ok(fld.value())
2885    }
2886
2887
2888    /// Returns true if `Price2` is present, Tag 640.
2889    pub fn has_price2(&self) -> bool {
2890        self.message.body.has(tag::PRICE2)
2891    }
2892
2893
2894
2895
2896    /// Sets `PriceProtectionScope`, Tag 1092.
2897    pub fn set_price_protection_scope(&mut self, v: String) {
2898        self.message.body.set_field(tag::PRICE_PROTECTION_SCOPE, FIXString::from(v));
2899    }
2900
2901    /// Gets `PriceProtectionScope`, Tag 1092.
2902    pub fn get_price_protection_scope(&self) -> Result<String, MessageRejectErrorEnum> {
2903        let mut fld = field::PriceProtectionScopeField::new(String::new());
2904        self.message.body.get_field(tag::PRICE_PROTECTION_SCOPE, &mut fld.0)?;
2905        Ok(fld.value().to_string())
2906    }
2907
2908
2909    /// Returns true if `PriceProtectionScope` is present, Tag 1092.
2910    pub fn has_price_protection_scope(&self) -> bool {
2911        self.message.body.has(tag::PRICE_PROTECTION_SCOPE)
2912    }
2913
2914
2915
2916
2917    /// Sets `PriceType`, Tag 423.
2918    pub fn set_price_type(&mut self, v: isize) {
2919        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
2920    }
2921
2922    /// Gets `PriceType`, Tag 423.
2923    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2924        let mut fld = field::PriceTypeField::new(0);
2925        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
2926        Ok(fld.value())
2927    }
2928
2929
2930    /// Returns true if `PriceType` is present, Tag 423.
2931    pub fn has_price_type(&self) -> bool {
2932        self.message.body.has(tag::PRICE_TYPE)
2933    }
2934
2935
2936
2937
2938    /// Sets `ProcessCode`, Tag 81.
2939    pub fn set_process_code(&mut self, v: String) {
2940        self.message.body.set_field(tag::PROCESS_CODE, FIXString::from(v));
2941    }
2942
2943    /// Gets `ProcessCode`, Tag 81.
2944    pub fn get_process_code(&self) -> Result<String, MessageRejectErrorEnum> {
2945        let mut fld = field::ProcessCodeField::new(String::new());
2946        self.message.body.get_field(tag::PROCESS_CODE, &mut fld.0)?;
2947        Ok(fld.value().to_string())
2948    }
2949
2950
2951    /// Returns true if `ProcessCode` is present, Tag 81.
2952    pub fn has_process_code(&self) -> bool {
2953        self.message.body.has(tag::PROCESS_CODE)
2954    }
2955
2956
2957
2958
2959    /// Sets `Product`, Tag 460.
2960    pub fn set_product(&mut self, v: isize) {
2961        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
2962    }
2963
2964    /// Gets `Product`, Tag 460.
2965    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
2966        let mut fld = field::ProductField::new(0);
2967        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
2968        Ok(fld.value())
2969    }
2970
2971
2972    /// Returns true if `Product` is present, Tag 460.
2973    pub fn has_product(&self) -> bool {
2974        self.message.body.has(tag::PRODUCT)
2975    }
2976
2977
2978
2979
2980    /// Sets `QtyType`, Tag 854.
2981    pub fn set_qty_type(&mut self, v: isize) {
2982        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
2983    }
2984
2985    /// Gets `QtyType`, Tag 854.
2986    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2987        let mut fld = field::QtyTypeField::new(0);
2988        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
2989        Ok(fld.value())
2990    }
2991
2992
2993    /// Returns true if `QtyType` is present, Tag 854.
2994    pub fn has_qty_type(&self) -> bool {
2995        self.message.body.has(tag::QTY_TYPE)
2996    }
2997
2998
2999
3000
3001    /// Sets `QuoteID`, Tag 117.
3002    pub fn set_quote_id(&mut self, v: String) {
3003        self.message.body.set_field(tag::QUOTE_ID, FIXString::from(v));
3004    }
3005
3006    /// Gets `QuoteID`, Tag 117.
3007    pub fn get_quote_id(&self) -> Result<String, MessageRejectErrorEnum> {
3008        let mut fld = field::QuoteIDField::new(String::new());
3009        self.message.body.get_field(tag::QUOTE_ID, &mut fld.0)?;
3010        Ok(fld.value().to_string())
3011    }
3012
3013
3014    /// Returns true if `QuoteID` is present, Tag 117.
3015    pub fn has_quote_id(&self) -> bool {
3016        self.message.body.has(tag::QUOTE_ID)
3017    }
3018
3019
3020
3021
3022    /// Sets `ReceivedDeptID`, Tag 1030.
3023    pub fn set_received_dept_id(&mut self, v: String) {
3024        self.message.body.set_field(tag::RECEIVED_DEPT_ID, FIXString::from(v));
3025    }
3026
3027    /// Gets `ReceivedDeptID`, Tag 1030.
3028    pub fn get_received_dept_id(&self) -> Result<String, MessageRejectErrorEnum> {
3029        let mut fld = field::ReceivedDeptIDField::new(String::new());
3030        self.message.body.get_field(tag::RECEIVED_DEPT_ID, &mut fld.0)?;
3031        Ok(fld.value().to_string())
3032    }
3033
3034
3035    /// Returns true if `ReceivedDeptID` is present, Tag 1030.
3036    pub fn has_received_dept_id(&self) -> bool {
3037        self.message.body.has(tag::RECEIVED_DEPT_ID)
3038    }
3039
3040
3041
3042
3043    /// Sets `RedemptionDate`, Tag 240.
3044    pub fn set_redemption_date(&mut self, v: String) {
3045        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
3046    }
3047
3048    /// Gets `RedemptionDate`, Tag 240.
3049    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
3050        let mut fld = field::RedemptionDateField::new(String::new());
3051        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
3052        Ok(fld.value().to_string())
3053    }
3054
3055
3056    /// Returns true if `RedemptionDate` is present, Tag 240.
3057    pub fn has_redemption_date(&self) -> bool {
3058        self.message.body.has(tag::REDEMPTION_DATE)
3059    }
3060
3061
3062
3063
3064    /// Sets `RefOrderID`, Tag 1080.
3065    pub fn set_ref_order_id(&mut self, v: String) {
3066        self.message.body.set_field(tag::REF_ORDER_ID, FIXString::from(v));
3067    }
3068
3069    /// Gets `RefOrderID`, Tag 1080.
3070    pub fn get_ref_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
3071        let mut fld = field::RefOrderIDField::new(String::new());
3072        self.message.body.get_field(tag::REF_ORDER_ID, &mut fld.0)?;
3073        Ok(fld.value().to_string())
3074    }
3075
3076
3077    /// Returns true if `RefOrderID` is present, Tag 1080.
3078    pub fn has_ref_order_id(&self) -> bool {
3079        self.message.body.has(tag::REF_ORDER_ID)
3080    }
3081
3082
3083
3084
3085    /// Sets `RefOrderIDSource`, Tag 1081.
3086    pub fn set_ref_order_id_source(&mut self, v: String) {
3087        self.message.body.set_field(tag::REF_ORDER_ID_SOURCE, FIXString::from(v));
3088    }
3089
3090    /// Gets `RefOrderIDSource`, Tag 1081.
3091    pub fn get_ref_order_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
3092        let mut fld = field::RefOrderIDSourceField::new(String::new());
3093        self.message.body.get_field(tag::REF_ORDER_ID_SOURCE, &mut fld.0)?;
3094        Ok(fld.value().to_string())
3095    }
3096
3097
3098    /// Returns true if `RefOrderIDSource` is present, Tag 1081.
3099    pub fn has_ref_order_id_source(&self) -> bool {
3100        self.message.body.has(tag::REF_ORDER_ID_SOURCE)
3101    }
3102
3103
3104
3105
3106    /// Sets `RefreshQty`, Tag 1088.
3107    pub fn set_refresh_qty(&mut self, val: Decimal, scale: i32) {
3108        self.message.body.set_field(tag::REFRESH_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3109    }
3110
3111    /// Gets `RefreshQty`, Tag 1088.
3112    pub fn get_refresh_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3113        let mut fld = field::RefreshQtyField::new(Decimal::ZERO, 0);
3114        self.message.body.get_field(tag::REFRESH_QTY, &mut fld.0)?;
3115        Ok(fld.value())
3116    }
3117
3118
3119    /// Returns true if `RefreshQty` is present, Tag 1088.
3120    pub fn has_refresh_qty(&self) -> bool {
3121        self.message.body.has(tag::REFRESH_QTY)
3122    }
3123
3124
3125
3126
3127    /// Sets `RegistID`, Tag 513.
3128    pub fn set_regist_id(&mut self, v: String) {
3129        self.message.body.set_field(tag::REGIST_ID, FIXString::from(v));
3130    }
3131
3132    /// Gets `RegistID`, Tag 513.
3133    pub fn get_regist_id(&self) -> Result<String, MessageRejectErrorEnum> {
3134        let mut fld = field::RegistIDField::new(String::new());
3135        self.message.body.get_field(tag::REGIST_ID, &mut fld.0)?;
3136        Ok(fld.value().to_string())
3137    }
3138
3139
3140    /// Returns true if `RegistID` is present, Tag 513.
3141    pub fn has_regist_id(&self) -> bool {
3142        self.message.body.has(tag::REGIST_ID)
3143    }
3144
3145
3146
3147
3148    /// Sets `RepoCollateralSecurityType`, Tag 239.
3149    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
3150        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
3151    }
3152
3153    /// Gets `RepoCollateralSecurityType`, Tag 239.
3154    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3155        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
3156        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
3157        Ok(fld.value())
3158    }
3159
3160
3161    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
3162    pub fn has_repo_collateral_security_type(&self) -> bool {
3163        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
3164    }
3165
3166
3167
3168
3169    /// Sets `RepurchaseRate`, Tag 227.
3170    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
3171        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3172    }
3173
3174    /// Gets `RepurchaseRate`, Tag 227.
3175    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3176        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
3177        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
3178        Ok(fld.value())
3179    }
3180
3181
3182    /// Returns true if `RepurchaseRate` is present, Tag 227.
3183    pub fn has_repurchase_rate(&self) -> bool {
3184        self.message.body.has(tag::REPURCHASE_RATE)
3185    }
3186
3187
3188
3189
3190    /// Sets `RepurchaseTerm`, Tag 226.
3191    pub fn set_repurchase_term(&mut self, v: isize) {
3192        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
3193    }
3194
3195    /// Gets `RepurchaseTerm`, Tag 226.
3196    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
3197        let mut fld = field::RepurchaseTermField::new(0);
3198        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
3199        Ok(fld.value())
3200    }
3201
3202
3203    /// Returns true if `RepurchaseTerm` is present, Tag 226.
3204    pub fn has_repurchase_term(&self) -> bool {
3205        self.message.body.has(tag::REPURCHASE_TERM)
3206    }
3207
3208
3209
3210
3211    /// Sets `RoundingDirection`, Tag 468.
3212    pub fn set_rounding_direction(&mut self, v: String) {
3213        self.message.body.set_field(tag::ROUNDING_DIRECTION, FIXString::from(v));
3214    }
3215
3216    /// Gets `RoundingDirection`, Tag 468.
3217    pub fn get_rounding_direction(&self) -> Result<String, MessageRejectErrorEnum> {
3218        let mut fld = field::RoundingDirectionField::new(String::new());
3219        self.message.body.get_field(tag::ROUNDING_DIRECTION, &mut fld.0)?;
3220        Ok(fld.value().to_string())
3221    }
3222
3223
3224    /// Returns true if `RoundingDirection` is present, Tag 468.
3225    pub fn has_rounding_direction(&self) -> bool {
3226        self.message.body.has(tag::ROUNDING_DIRECTION)
3227    }
3228
3229
3230
3231
3232    /// Sets `RoundingModulus`, Tag 469.
3233    pub fn set_rounding_modulus(&mut self, val: Decimal, scale: i32) {
3234        self.message.body.set_field(tag::ROUNDING_MODULUS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3235    }
3236
3237    /// Gets `RoundingModulus`, Tag 469.
3238    pub fn get_rounding_modulus(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3239        let mut fld = field::RoundingModulusField::new(Decimal::ZERO, 0);
3240        self.message.body.get_field(tag::ROUNDING_MODULUS, &mut fld.0)?;
3241        Ok(fld.value())
3242    }
3243
3244
3245    /// Returns true if `RoundingModulus` is present, Tag 469.
3246    pub fn has_rounding_modulus(&self) -> bool {
3247        self.message.body.has(tag::ROUNDING_MODULUS)
3248    }
3249
3250
3251
3252
3253    /// Sets `SecondaryClOrdID`, Tag 526.
3254    pub fn set_secondary_cl_ord_id(&mut self, v: String) {
3255        self.message.body.set_field(tag::SECONDARY_CL_ORD_ID, FIXString::from(v));
3256    }
3257
3258    /// Gets `SecondaryClOrdID`, Tag 526.
3259    pub fn get_secondary_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
3260        let mut fld = field::SecondaryClOrdIDField::new(String::new());
3261        self.message.body.get_field(tag::SECONDARY_CL_ORD_ID, &mut fld.0)?;
3262        Ok(fld.value().to_string())
3263    }
3264
3265
3266    /// Returns true if `SecondaryClOrdID` is present, Tag 526.
3267    pub fn has_secondary_cl_ord_id(&self) -> bool {
3268        self.message.body.has(tag::SECONDARY_CL_ORD_ID)
3269    }
3270
3271
3272
3273
3274    /// Sets `SecondaryDisplayQty`, Tag 1082.
3275    pub fn set_secondary_display_qty(&mut self, val: Decimal, scale: i32) {
3276        self.message.body.set_field(tag::SECONDARY_DISPLAY_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3277    }
3278
3279    /// Gets `SecondaryDisplayQty`, Tag 1082.
3280    pub fn get_secondary_display_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3281        let mut fld = field::SecondaryDisplayQtyField::new(Decimal::ZERO, 0);
3282        self.message.body.get_field(tag::SECONDARY_DISPLAY_QTY, &mut fld.0)?;
3283        Ok(fld.value())
3284    }
3285
3286
3287    /// Returns true if `SecondaryDisplayQty` is present, Tag 1082.
3288    pub fn has_secondary_display_qty(&self) -> bool {
3289        self.message.body.has(tag::SECONDARY_DISPLAY_QTY)
3290    }
3291
3292
3293
3294
3295    /// Sets `SecurityDesc`, Tag 107.
3296    pub fn set_security_desc(&mut self, v: String) {
3297        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
3298    }
3299
3300    /// Gets `SecurityDesc`, Tag 107.
3301    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
3302        let mut fld = field::SecurityDescField::new(String::new());
3303        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
3304        Ok(fld.value().to_string())
3305    }
3306
3307
3308    /// Returns true if `SecurityDesc` is present, Tag 107.
3309    pub fn has_security_desc(&self) -> bool {
3310        self.message.body.has(tag::SECURITY_DESC)
3311    }
3312
3313
3314
3315
3316    /// Sets `SecurityExchange`, Tag 207.
3317    pub fn set_security_exchange(&mut self, v: String) {
3318        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
3319    }
3320
3321    /// Gets `SecurityExchange`, Tag 207.
3322    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
3323        let mut fld = field::SecurityExchangeField::new(String::new());
3324        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
3325        Ok(fld.value().to_string())
3326    }
3327
3328
3329    /// Returns true if `SecurityExchange` is present, Tag 207.
3330    pub fn has_security_exchange(&self) -> bool {
3331        self.message.body.has(tag::SECURITY_EXCHANGE)
3332    }
3333
3334
3335
3336
3337    /// Sets `SecurityID`, Tag 48.
3338    pub fn set_security_id(&mut self, v: String) {
3339        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
3340    }
3341
3342    /// Gets `SecurityID`, Tag 48.
3343    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
3344        let mut fld = field::SecurityIDField::new(String::new());
3345        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
3346        Ok(fld.value().to_string())
3347    }
3348
3349
3350    /// Returns true if `SecurityID` is present, Tag 48.
3351    pub fn has_security_id(&self) -> bool {
3352        self.message.body.has(tag::SECURITY_ID)
3353    }
3354
3355
3356
3357
3358    /// Sets `SecurityIDSource`, Tag 22.
3359    pub fn set_security_id_source(&mut self, v: String) {
3360        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
3361    }
3362
3363    /// Gets `SecurityIDSource`, Tag 22.
3364    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
3365        let mut fld = field::SecurityIDSourceField::new(String::new());
3366        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
3367        Ok(fld.value().to_string())
3368    }
3369
3370
3371    /// Returns true if `SecurityIDSource` is present, Tag 22.
3372    pub fn has_security_id_source(&self) -> bool {
3373        self.message.body.has(tag::SECURITY_ID_SOURCE)
3374    }
3375
3376
3377
3378
3379    /// Sets `SecurityStatus`, Tag 965.
3380    pub fn set_security_status(&mut self, v: String) {
3381        self.message.body.set_field(tag::SECURITY_STATUS, FIXString::from(v));
3382    }
3383
3384    /// Gets `SecurityStatus`, Tag 965.
3385    pub fn get_security_status(&self) -> Result<String, MessageRejectErrorEnum> {
3386        let mut fld = field::SecurityStatusField::new(String::new());
3387        self.message.body.get_field(tag::SECURITY_STATUS, &mut fld.0)?;
3388        Ok(fld.value().to_string())
3389    }
3390
3391
3392    /// Returns true if `SecurityStatus` is present, Tag 965.
3393    pub fn has_security_status(&self) -> bool {
3394        self.message.body.has(tag::SECURITY_STATUS)
3395    }
3396
3397
3398
3399
3400    /// Sets `SecuritySubType`, Tag 762.
3401    pub fn set_security_sub_type(&mut self, v: String) {
3402        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
3403    }
3404
3405    /// Gets `SecuritySubType`, Tag 762.
3406    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
3407        let mut fld = field::SecuritySubTypeField::new(String::new());
3408        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
3409        Ok(fld.value().to_string())
3410    }
3411
3412
3413    /// Returns true if `SecuritySubType` is present, Tag 762.
3414    pub fn has_security_sub_type(&self) -> bool {
3415        self.message.body.has(tag::SECURITY_SUB_TYPE)
3416    }
3417
3418
3419
3420
3421    /// Sets `SecurityType`, Tag 167.
3422    pub fn set_security_type(&mut self, v: String) {
3423        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
3424    }
3425
3426    /// Gets `SecurityType`, Tag 167.
3427    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
3428        let mut fld = field::SecurityTypeField::new(String::new());
3429        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
3430        Ok(fld.value().to_string())
3431    }
3432
3433
3434    /// Returns true if `SecurityType` is present, Tag 167.
3435    pub fn has_security_type(&self) -> bool {
3436        self.message.body.has(tag::SECURITY_TYPE)
3437    }
3438
3439
3440
3441
3442    /// Sets `SettlCurrency`, Tag 120.
3443    pub fn set_settl_currency(&mut self, v: String) {
3444        self.message.body.set_field(tag::SETTL_CURRENCY, FIXString::from(v));
3445    }
3446
3447    /// Gets `SettlCurrency`, Tag 120.
3448    pub fn get_settl_currency(&self) -> Result<String, MessageRejectErrorEnum> {
3449        let mut fld = field::SettlCurrencyField::new(String::new());
3450        self.message.body.get_field(tag::SETTL_CURRENCY, &mut fld.0)?;
3451        Ok(fld.value().to_string())
3452    }
3453
3454
3455    /// Returns true if `SettlCurrency` is present, Tag 120.
3456    pub fn has_settl_currency(&self) -> bool {
3457        self.message.body.has(tag::SETTL_CURRENCY)
3458    }
3459
3460
3461
3462
3463    /// Sets `SettlDate`, Tag 64.
3464    pub fn set_settl_date(&mut self, v: String) {
3465        self.message.body.set_field(tag::SETTL_DATE, FIXString::from(v));
3466    }
3467
3468    /// Gets `SettlDate`, Tag 64.
3469    pub fn get_settl_date(&self) -> Result<String, MessageRejectErrorEnum> {
3470        let mut fld = field::SettlDateField::new(String::new());
3471        self.message.body.get_field(tag::SETTL_DATE, &mut fld.0)?;
3472        Ok(fld.value().to_string())
3473    }
3474
3475
3476    /// Returns true if `SettlDate` is present, Tag 64.
3477    pub fn has_settl_date(&self) -> bool {
3478        self.message.body.has(tag::SETTL_DATE)
3479    }
3480
3481
3482
3483
3484    /// Sets `SettlDate2`, Tag 193.
3485    pub fn set_settl_date2(&mut self, v: String) {
3486        self.message.body.set_field(tag::SETTL_DATE2, FIXString::from(v));
3487    }
3488
3489    /// Gets `SettlDate2`, Tag 193.
3490    pub fn get_settl_date2(&self) -> Result<String, MessageRejectErrorEnum> {
3491        let mut fld = field::SettlDate2Field::new(String::new());
3492        self.message.body.get_field(tag::SETTL_DATE2, &mut fld.0)?;
3493        Ok(fld.value().to_string())
3494    }
3495
3496
3497    /// Returns true if `SettlDate2` is present, Tag 193.
3498    pub fn has_settl_date2(&self) -> bool {
3499        self.message.body.has(tag::SETTL_DATE2)
3500    }
3501
3502
3503
3504
3505    /// Sets `SettlType`, Tag 63.
3506    pub fn set_settl_type(&mut self, v: String) {
3507        self.message.body.set_field(tag::SETTL_TYPE, FIXString::from(v));
3508    }
3509
3510    /// Gets `SettlType`, Tag 63.
3511    pub fn get_settl_type(&self) -> Result<String, MessageRejectErrorEnum> {
3512        let mut fld = field::SettlTypeField::new(String::new());
3513        self.message.body.get_field(tag::SETTL_TYPE, &mut fld.0)?;
3514        Ok(fld.value().to_string())
3515    }
3516
3517
3518    /// Returns true if `SettlType` is present, Tag 63.
3519    pub fn has_settl_type(&self) -> bool {
3520        self.message.body.has(tag::SETTL_TYPE)
3521    }
3522
3523
3524
3525
3526    /// Sets `SettleOnOpenFlag`, Tag 966.
3527    pub fn set_settle_on_open_flag(&mut self, v: String) {
3528        self.message.body.set_field(tag::SETTLE_ON_OPEN_FLAG, FIXString::from(v));
3529    }
3530
3531    /// Gets `SettleOnOpenFlag`, Tag 966.
3532    pub fn get_settle_on_open_flag(&self) -> Result<String, MessageRejectErrorEnum> {
3533        let mut fld = field::SettleOnOpenFlagField::new(String::new());
3534        self.message.body.get_field(tag::SETTLE_ON_OPEN_FLAG, &mut fld.0)?;
3535        Ok(fld.value().to_string())
3536    }
3537
3538
3539    /// Returns true if `SettleOnOpenFlag` is present, Tag 966.
3540    pub fn has_settle_on_open_flag(&self) -> bool {
3541        self.message.body.has(tag::SETTLE_ON_OPEN_FLAG)
3542    }
3543
3544
3545
3546
3547    /// Sets `Side`, Tag 54.
3548    pub fn set_side(&mut self, v: String) {
3549        self.message.body.set_field(tag::SIDE, FIXString::from(v));
3550    }
3551
3552    /// Gets `Side`, Tag 54.
3553    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
3554        let mut fld = field::SideField::new(String::new());
3555        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
3556        Ok(fld.value().to_string())
3557    }
3558
3559
3560    /// Returns true if `Side` is present, Tag 54.
3561    pub fn has_side(&self) -> bool {
3562        self.message.body.has(tag::SIDE)
3563    }
3564
3565
3566
3567
3568    /// Sets `SolicitedFlag`, Tag 377.
3569    pub fn set_solicited_flag(&mut self, v: bool) {
3570        self.message.body.set_field(tag::SOLICITED_FLAG, fixer::fix_boolean::FIXBoolean::from(v));
3571    }
3572
3573    /// Gets `SolicitedFlag`, Tag 377.
3574    pub fn get_solicited_flag(&self) -> Result<bool, MessageRejectErrorEnum> {
3575        let mut fld = field::SolicitedFlagField::new(false);
3576        self.message.body.get_field(tag::SOLICITED_FLAG, &mut fld.0)?;
3577        Ok(fld.value())
3578    }
3579
3580
3581    /// Returns true if `SolicitedFlag` is present, Tag 377.
3582    pub fn has_solicited_flag(&self) -> bool {
3583        self.message.body.has(tag::SOLICITED_FLAG)
3584    }
3585
3586
3587
3588
3589    /// Sets `Spread`, Tag 218.
3590    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
3591        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3592    }
3593
3594    /// Gets `Spread`, Tag 218.
3595    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3596        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
3597        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
3598        Ok(fld.value())
3599    }
3600
3601
3602    /// Returns true if `Spread` is present, Tag 218.
3603    pub fn has_spread(&self) -> bool {
3604        self.message.body.has(tag::SPREAD)
3605    }
3606
3607
3608
3609
3610    /// Sets `StartDate`, Tag 916.
3611    pub fn set_start_date(&mut self, v: String) {
3612        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
3613    }
3614
3615    /// Gets `StartDate`, Tag 916.
3616    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
3617        let mut fld = field::StartDateField::new(String::new());
3618        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
3619        Ok(fld.value().to_string())
3620    }
3621
3622
3623    /// Returns true if `StartDate` is present, Tag 916.
3624    pub fn has_start_date(&self) -> bool {
3625        self.message.body.has(tag::START_DATE)
3626    }
3627
3628
3629
3630
3631    /// Sets `StateOrProvinceOfIssue`, Tag 471.
3632    pub fn set_state_or_province_of_issue(&mut self, v: String) {
3633        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
3634    }
3635
3636    /// Gets `StateOrProvinceOfIssue`, Tag 471.
3637    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
3638        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
3639        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
3640        Ok(fld.value().to_string())
3641    }
3642
3643
3644    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
3645    pub fn has_state_or_province_of_issue(&self) -> bool {
3646        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
3647    }
3648
3649
3650
3651
3652    /// Sets `StopPx`, Tag 99.
3653    pub fn set_stop_px(&mut self, val: Decimal, scale: i32) {
3654        self.message.body.set_field(tag::STOP_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3655    }
3656
3657    /// Gets `StopPx`, Tag 99.
3658    pub fn get_stop_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3659        let mut fld = field::StopPxField::new(Decimal::ZERO, 0);
3660        self.message.body.get_field(tag::STOP_PX, &mut fld.0)?;
3661        Ok(fld.value())
3662    }
3663
3664
3665    /// Returns true if `StopPx` is present, Tag 99.
3666    pub fn has_stop_px(&self) -> bool {
3667        self.message.body.has(tag::STOP_PX)
3668    }
3669
3670
3671
3672
3673    /// Sets `StrikeCurrency`, Tag 947.
3674    pub fn set_strike_currency(&mut self, v: String) {
3675        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
3676    }
3677
3678    /// Gets `StrikeCurrency`, Tag 947.
3679    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
3680        let mut fld = field::StrikeCurrencyField::new(String::new());
3681        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
3682        Ok(fld.value().to_string())
3683    }
3684
3685
3686    /// Returns true if `StrikeCurrency` is present, Tag 947.
3687    pub fn has_strike_currency(&self) -> bool {
3688        self.message.body.has(tag::STRIKE_CURRENCY)
3689    }
3690
3691
3692
3693
3694    /// Sets `StrikeMultiplier`, Tag 967.
3695    pub fn set_strike_multiplier(&mut self, val: Decimal, scale: i32) {
3696        self.message.body.set_field(tag::STRIKE_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3697    }
3698
3699    /// Gets `StrikeMultiplier`, Tag 967.
3700    pub fn get_strike_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3701        let mut fld = field::StrikeMultiplierField::new(Decimal::ZERO, 0);
3702        self.message.body.get_field(tag::STRIKE_MULTIPLIER, &mut fld.0)?;
3703        Ok(fld.value())
3704    }
3705
3706
3707    /// Returns true if `StrikeMultiplier` is present, Tag 967.
3708    pub fn has_strike_multiplier(&self) -> bool {
3709        self.message.body.has(tag::STRIKE_MULTIPLIER)
3710    }
3711
3712
3713
3714
3715    /// Sets `StrikePrice`, Tag 202.
3716    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
3717        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3718    }
3719
3720    /// Gets `StrikePrice`, Tag 202.
3721    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3722        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
3723        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
3724        Ok(fld.value())
3725    }
3726
3727
3728    /// Returns true if `StrikePrice` is present, Tag 202.
3729    pub fn has_strike_price(&self) -> bool {
3730        self.message.body.has(tag::STRIKE_PRICE)
3731    }
3732
3733
3734
3735
3736    /// Sets `StrikeValue`, Tag 968.
3737    pub fn set_strike_value(&mut self, val: Decimal, scale: i32) {
3738        self.message.body.set_field(tag::STRIKE_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3739    }
3740
3741    /// Gets `StrikeValue`, Tag 968.
3742    pub fn get_strike_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3743        let mut fld = field::StrikeValueField::new(Decimal::ZERO, 0);
3744        self.message.body.get_field(tag::STRIKE_VALUE, &mut fld.0)?;
3745        Ok(fld.value())
3746    }
3747
3748
3749    /// Returns true if `StrikeValue` is present, Tag 968.
3750    pub fn has_strike_value(&self) -> bool {
3751        self.message.body.has(tag::STRIKE_VALUE)
3752    }
3753
3754
3755
3756
3757    /// Sets `Symbol`, Tag 55.
3758    pub fn set_symbol(&mut self, v: String) {
3759        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
3760    }
3761
3762    /// Gets `Symbol`, Tag 55.
3763    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
3764        let mut fld = field::SymbolField::new(String::new());
3765        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
3766        Ok(fld.value().to_string())
3767    }
3768
3769
3770    /// Returns true if `Symbol` is present, Tag 55.
3771    pub fn has_symbol(&self) -> bool {
3772        self.message.body.has(tag::SYMBOL)
3773    }
3774
3775
3776
3777
3778    /// Sets `SymbolSfx`, Tag 65.
3779    pub fn set_symbol_sfx(&mut self, v: String) {
3780        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
3781    }
3782
3783    /// Gets `SymbolSfx`, Tag 65.
3784    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
3785        let mut fld = field::SymbolSfxField::new(String::new());
3786        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
3787        Ok(fld.value().to_string())
3788    }
3789
3790
3791    /// Returns true if `SymbolSfx` is present, Tag 65.
3792    pub fn has_symbol_sfx(&self) -> bool {
3793        self.message.body.has(tag::SYMBOL_SFX)
3794    }
3795
3796
3797
3798
3799    /// Sets `TargetStrategy`, Tag 847.
3800    pub fn set_target_strategy(&mut self, v: isize) {
3801        self.message.body.set_field(tag::TARGET_STRATEGY, fixer::fix_int::FIXInt::from(v));
3802    }
3803
3804    /// Gets `TargetStrategy`, Tag 847.
3805    pub fn get_target_strategy(&self) -> Result<isize, MessageRejectErrorEnum> {
3806        let mut fld = field::TargetStrategyField::new(0);
3807        self.message.body.get_field(tag::TARGET_STRATEGY, &mut fld.0)?;
3808        Ok(fld.value())
3809    }
3810
3811
3812    /// Returns true if `TargetStrategy` is present, Tag 847.
3813    pub fn has_target_strategy(&self) -> bool {
3814        self.message.body.has(tag::TARGET_STRATEGY)
3815    }
3816
3817
3818
3819
3820    /// Sets `TargetStrategyParameters`, Tag 848.
3821    pub fn set_target_strategy_parameters(&mut self, v: String) {
3822        self.message.body.set_field(tag::TARGET_STRATEGY_PARAMETERS, FIXString::from(v));
3823    }
3824
3825    /// Gets `TargetStrategyParameters`, Tag 848.
3826    pub fn get_target_strategy_parameters(&self) -> Result<String, MessageRejectErrorEnum> {
3827        let mut fld = field::TargetStrategyParametersField::new(String::new());
3828        self.message.body.get_field(tag::TARGET_STRATEGY_PARAMETERS, &mut fld.0)?;
3829        Ok(fld.value().to_string())
3830    }
3831
3832
3833    /// Returns true if `TargetStrategyParameters` is present, Tag 848.
3834    pub fn has_target_strategy_parameters(&self) -> bool {
3835        self.message.body.has(tag::TARGET_STRATEGY_PARAMETERS)
3836    }
3837
3838
3839
3840
3841    /// Sets `TerminationType`, Tag 788.
3842    pub fn set_termination_type(&mut self, v: isize) {
3843        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
3844    }
3845
3846    /// Gets `TerminationType`, Tag 788.
3847    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3848        let mut fld = field::TerminationTypeField::new(0);
3849        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
3850        Ok(fld.value())
3851    }
3852
3853
3854    /// Returns true if `TerminationType` is present, Tag 788.
3855    pub fn has_termination_type(&self) -> bool {
3856        self.message.body.has(tag::TERMINATION_TYPE)
3857    }
3858
3859
3860
3861
3862    /// Sets `Text`, Tag 58.
3863    pub fn set_text(&mut self, v: String) {
3864        self.message.body.set_field(tag::TEXT, FIXString::from(v));
3865    }
3866
3867    /// Gets `Text`, Tag 58.
3868    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
3869        let mut fld = field::TextField::new(String::new());
3870        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
3871        Ok(fld.value().to_string())
3872    }
3873
3874
3875    /// Returns true if `Text` is present, Tag 58.
3876    pub fn has_text(&self) -> bool {
3877        self.message.body.has(tag::TEXT)
3878    }
3879
3880
3881
3882
3883    /// Sets `TimeInForce`, Tag 59.
3884    pub fn set_time_in_force(&mut self, v: String) {
3885        self.message.body.set_field(tag::TIME_IN_FORCE, FIXString::from(v));
3886    }
3887
3888    /// Gets `TimeInForce`, Tag 59.
3889    pub fn get_time_in_force(&self) -> Result<String, MessageRejectErrorEnum> {
3890        let mut fld = field::TimeInForceField::new(String::new());
3891        self.message.body.get_field(tag::TIME_IN_FORCE, &mut fld.0)?;
3892        Ok(fld.value().to_string())
3893    }
3894
3895
3896    /// Returns true if `TimeInForce` is present, Tag 59.
3897    pub fn has_time_in_force(&self) -> bool {
3898        self.message.body.has(tag::TIME_IN_FORCE)
3899    }
3900
3901
3902
3903
3904    /// Sets `TimeUnit`, Tag 997.
3905    pub fn set_time_unit(&mut self, v: String) {
3906        self.message.body.set_field(tag::TIME_UNIT, FIXString::from(v));
3907    }
3908
3909    /// Gets `TimeUnit`, Tag 997.
3910    pub fn get_time_unit(&self) -> Result<String, MessageRejectErrorEnum> {
3911        let mut fld = field::TimeUnitField::new(String::new());
3912        self.message.body.get_field(tag::TIME_UNIT, &mut fld.0)?;
3913        Ok(fld.value().to_string())
3914    }
3915
3916
3917    /// Returns true if `TimeUnit` is present, Tag 997.
3918    pub fn has_time_unit(&self) -> bool {
3919        self.message.body.has(tag::TIME_UNIT)
3920    }
3921
3922
3923
3924
3925    /// Sets `TradeDate`, Tag 75.
3926    pub fn set_trade_date(&mut self, v: String) {
3927        self.message.body.set_field(tag::TRADE_DATE, FIXString::from(v));
3928    }
3929
3930    /// Gets `TradeDate`, Tag 75.
3931    pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum> {
3932        let mut fld = field::TradeDateField::new(String::new());
3933        self.message.body.get_field(tag::TRADE_DATE, &mut fld.0)?;
3934        Ok(fld.value().to_string())
3935    }
3936
3937
3938    /// Returns true if `TradeDate` is present, Tag 75.
3939    pub fn has_trade_date(&self) -> bool {
3940        self.message.body.has(tag::TRADE_DATE)
3941    }
3942
3943
3944
3945
3946    /// Sets `TradeOriginationDate`, Tag 229.
3947    pub fn set_trade_origination_date(&mut self, v: String) {
3948        self.message.body.set_field(tag::TRADE_ORIGINATION_DATE, FIXString::from(v));
3949    }
3950
3951    /// Gets `TradeOriginationDate`, Tag 229.
3952    pub fn get_trade_origination_date(&self) -> Result<String, MessageRejectErrorEnum> {
3953        let mut fld = field::TradeOriginationDateField::new(String::new());
3954        self.message.body.get_field(tag::TRADE_ORIGINATION_DATE, &mut fld.0)?;
3955        Ok(fld.value().to_string())
3956    }
3957
3958
3959    /// Returns true if `TradeOriginationDate` is present, Tag 229.
3960    pub fn has_trade_origination_date(&self) -> bool {
3961        self.message.body.has(tag::TRADE_ORIGINATION_DATE)
3962    }
3963
3964
3965
3966
3967    /// Sets `TransactTime`, Tag 60.
3968    pub fn set_transact_time(&mut self, v: Timestamp) {
3969        self.message.body.set_field(tag::TRANSACT_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
3970            time: v,
3971            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
3972        });
3973    }
3974
3975    /// Gets `TransactTime`, Tag 60.
3976    pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
3977        let mut fld = field::TransactTimeField::new(Timestamp::UNIX_EPOCH);
3978        self.message.body.get_field(tag::TRANSACT_TIME, &mut fld.0)?;
3979        Ok(fld.value())
3980    }
3981
3982
3983    /// Returns true if `TransactTime` is present, Tag 60.
3984    pub fn has_transact_time(&self) -> bool {
3985        self.message.body.has(tag::TRANSACT_TIME)
3986    }
3987
3988
3989
3990
3991    /// Sets `TriggerAction`, Tag 1101.
3992    pub fn set_trigger_action(&mut self, v: String) {
3993        self.message.body.set_field(tag::TRIGGER_ACTION, FIXString::from(v));
3994    }
3995
3996    /// Gets `TriggerAction`, Tag 1101.
3997    pub fn get_trigger_action(&self) -> Result<String, MessageRejectErrorEnum> {
3998        let mut fld = field::TriggerActionField::new(String::new());
3999        self.message.body.get_field(tag::TRIGGER_ACTION, &mut fld.0)?;
4000        Ok(fld.value().to_string())
4001    }
4002
4003
4004    /// Returns true if `TriggerAction` is present, Tag 1101.
4005    pub fn has_trigger_action(&self) -> bool {
4006        self.message.body.has(tag::TRIGGER_ACTION)
4007    }
4008
4009
4010
4011
4012    /// Sets `TriggerNewPrice`, Tag 1110.
4013    pub fn set_trigger_new_price(&mut self, val: Decimal, scale: i32) {
4014        self.message.body.set_field(tag::TRIGGER_NEW_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4015    }
4016
4017    /// Gets `TriggerNewPrice`, Tag 1110.
4018    pub fn get_trigger_new_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4019        let mut fld = field::TriggerNewPriceField::new(Decimal::ZERO, 0);
4020        self.message.body.get_field(tag::TRIGGER_NEW_PRICE, &mut fld.0)?;
4021        Ok(fld.value())
4022    }
4023
4024
4025    /// Returns true if `TriggerNewPrice` is present, Tag 1110.
4026    pub fn has_trigger_new_price(&self) -> bool {
4027        self.message.body.has(tag::TRIGGER_NEW_PRICE)
4028    }
4029
4030
4031
4032
4033    /// Sets `TriggerNewQty`, Tag 1112.
4034    pub fn set_trigger_new_qty(&mut self, val: Decimal, scale: i32) {
4035        self.message.body.set_field(tag::TRIGGER_NEW_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4036    }
4037
4038    /// Gets `TriggerNewQty`, Tag 1112.
4039    pub fn get_trigger_new_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4040        let mut fld = field::TriggerNewQtyField::new(Decimal::ZERO, 0);
4041        self.message.body.get_field(tag::TRIGGER_NEW_QTY, &mut fld.0)?;
4042        Ok(fld.value())
4043    }
4044
4045
4046    /// Returns true if `TriggerNewQty` is present, Tag 1112.
4047    pub fn has_trigger_new_qty(&self) -> bool {
4048        self.message.body.has(tag::TRIGGER_NEW_QTY)
4049    }
4050
4051
4052
4053
4054    /// Sets `TriggerOrderType`, Tag 1111.
4055    pub fn set_trigger_order_type(&mut self, v: String) {
4056        self.message.body.set_field(tag::TRIGGER_ORDER_TYPE, FIXString::from(v));
4057    }
4058
4059    /// Gets `TriggerOrderType`, Tag 1111.
4060    pub fn get_trigger_order_type(&self) -> Result<String, MessageRejectErrorEnum> {
4061        let mut fld = field::TriggerOrderTypeField::new(String::new());
4062        self.message.body.get_field(tag::TRIGGER_ORDER_TYPE, &mut fld.0)?;
4063        Ok(fld.value().to_string())
4064    }
4065
4066
4067    /// Returns true if `TriggerOrderType` is present, Tag 1111.
4068    pub fn has_trigger_order_type(&self) -> bool {
4069        self.message.body.has(tag::TRIGGER_ORDER_TYPE)
4070    }
4071
4072
4073
4074
4075    /// Sets `TriggerPrice`, Tag 1102.
4076    pub fn set_trigger_price(&mut self, val: Decimal, scale: i32) {
4077        self.message.body.set_field(tag::TRIGGER_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4078    }
4079
4080    /// Gets `TriggerPrice`, Tag 1102.
4081    pub fn get_trigger_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4082        let mut fld = field::TriggerPriceField::new(Decimal::ZERO, 0);
4083        self.message.body.get_field(tag::TRIGGER_PRICE, &mut fld.0)?;
4084        Ok(fld.value())
4085    }
4086
4087
4088    /// Returns true if `TriggerPrice` is present, Tag 1102.
4089    pub fn has_trigger_price(&self) -> bool {
4090        self.message.body.has(tag::TRIGGER_PRICE)
4091    }
4092
4093
4094
4095
4096    /// Sets `TriggerPriceDirection`, Tag 1109.
4097    pub fn set_trigger_price_direction(&mut self, v: String) {
4098        self.message.body.set_field(tag::TRIGGER_PRICE_DIRECTION, FIXString::from(v));
4099    }
4100
4101    /// Gets `TriggerPriceDirection`, Tag 1109.
4102    pub fn get_trigger_price_direction(&self) -> Result<String, MessageRejectErrorEnum> {
4103        let mut fld = field::TriggerPriceDirectionField::new(String::new());
4104        self.message.body.get_field(tag::TRIGGER_PRICE_DIRECTION, &mut fld.0)?;
4105        Ok(fld.value().to_string())
4106    }
4107
4108
4109    /// Returns true if `TriggerPriceDirection` is present, Tag 1109.
4110    pub fn has_trigger_price_direction(&self) -> bool {
4111        self.message.body.has(tag::TRIGGER_PRICE_DIRECTION)
4112    }
4113
4114
4115
4116
4117    /// Sets `TriggerPriceType`, Tag 1107.
4118    pub fn set_trigger_price_type(&mut self, v: String) {
4119        self.message.body.set_field(tag::TRIGGER_PRICE_TYPE, FIXString::from(v));
4120    }
4121
4122    /// Gets `TriggerPriceType`, Tag 1107.
4123    pub fn get_trigger_price_type(&self) -> Result<String, MessageRejectErrorEnum> {
4124        let mut fld = field::TriggerPriceTypeField::new(String::new());
4125        self.message.body.get_field(tag::TRIGGER_PRICE_TYPE, &mut fld.0)?;
4126        Ok(fld.value().to_string())
4127    }
4128
4129
4130    /// Returns true if `TriggerPriceType` is present, Tag 1107.
4131    pub fn has_trigger_price_type(&self) -> bool {
4132        self.message.body.has(tag::TRIGGER_PRICE_TYPE)
4133    }
4134
4135
4136
4137
4138    /// Sets `TriggerPriceTypeScope`, Tag 1108.
4139    pub fn set_trigger_price_type_scope(&mut self, v: String) {
4140        self.message.body.set_field(tag::TRIGGER_PRICE_TYPE_SCOPE, FIXString::from(v));
4141    }
4142
4143    /// Gets `TriggerPriceTypeScope`, Tag 1108.
4144    pub fn get_trigger_price_type_scope(&self) -> Result<String, MessageRejectErrorEnum> {
4145        let mut fld = field::TriggerPriceTypeScopeField::new(String::new());
4146        self.message.body.get_field(tag::TRIGGER_PRICE_TYPE_SCOPE, &mut fld.0)?;
4147        Ok(fld.value().to_string())
4148    }
4149
4150
4151    /// Returns true if `TriggerPriceTypeScope` is present, Tag 1108.
4152    pub fn has_trigger_price_type_scope(&self) -> bool {
4153        self.message.body.has(tag::TRIGGER_PRICE_TYPE_SCOPE)
4154    }
4155
4156
4157
4158
4159    /// Sets `TriggerSecurityDesc`, Tag 1106.
4160    pub fn set_trigger_security_desc(&mut self, v: String) {
4161        self.message.body.set_field(tag::TRIGGER_SECURITY_DESC, FIXString::from(v));
4162    }
4163
4164    /// Gets `TriggerSecurityDesc`, Tag 1106.
4165    pub fn get_trigger_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
4166        let mut fld = field::TriggerSecurityDescField::new(String::new());
4167        self.message.body.get_field(tag::TRIGGER_SECURITY_DESC, &mut fld.0)?;
4168        Ok(fld.value().to_string())
4169    }
4170
4171
4172    /// Returns true if `TriggerSecurityDesc` is present, Tag 1106.
4173    pub fn has_trigger_security_desc(&self) -> bool {
4174        self.message.body.has(tag::TRIGGER_SECURITY_DESC)
4175    }
4176
4177
4178
4179
4180    /// Sets `TriggerSecurityID`, Tag 1104.
4181    pub fn set_trigger_security_id(&mut self, v: String) {
4182        self.message.body.set_field(tag::TRIGGER_SECURITY_ID, FIXString::from(v));
4183    }
4184
4185    /// Gets `TriggerSecurityID`, Tag 1104.
4186    pub fn get_trigger_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
4187        let mut fld = field::TriggerSecurityIDField::new(String::new());
4188        self.message.body.get_field(tag::TRIGGER_SECURITY_ID, &mut fld.0)?;
4189        Ok(fld.value().to_string())
4190    }
4191
4192
4193    /// Returns true if `TriggerSecurityID` is present, Tag 1104.
4194    pub fn has_trigger_security_id(&self) -> bool {
4195        self.message.body.has(tag::TRIGGER_SECURITY_ID)
4196    }
4197
4198
4199
4200
4201    /// Sets `TriggerSecurityIDSource`, Tag 1105.
4202    pub fn set_trigger_security_id_source(&mut self, v: String) {
4203        self.message.body.set_field(tag::TRIGGER_SECURITY_ID_SOURCE, FIXString::from(v));
4204    }
4205
4206    /// Gets `TriggerSecurityIDSource`, Tag 1105.
4207    pub fn get_trigger_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
4208        let mut fld = field::TriggerSecurityIDSourceField::new(String::new());
4209        self.message.body.get_field(tag::TRIGGER_SECURITY_ID_SOURCE, &mut fld.0)?;
4210        Ok(fld.value().to_string())
4211    }
4212
4213
4214    /// Returns true if `TriggerSecurityIDSource` is present, Tag 1105.
4215    pub fn has_trigger_security_id_source(&self) -> bool {
4216        self.message.body.has(tag::TRIGGER_SECURITY_ID_SOURCE)
4217    }
4218
4219
4220
4221
4222    /// Sets `TriggerSymbol`, Tag 1103.
4223    pub fn set_trigger_symbol(&mut self, v: String) {
4224        self.message.body.set_field(tag::TRIGGER_SYMBOL, FIXString::from(v));
4225    }
4226
4227    /// Gets `TriggerSymbol`, Tag 1103.
4228    pub fn get_trigger_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
4229        let mut fld = field::TriggerSymbolField::new(String::new());
4230        self.message.body.get_field(tag::TRIGGER_SYMBOL, &mut fld.0)?;
4231        Ok(fld.value().to_string())
4232    }
4233
4234
4235    /// Returns true if `TriggerSymbol` is present, Tag 1103.
4236    pub fn has_trigger_symbol(&self) -> bool {
4237        self.message.body.has(tag::TRIGGER_SYMBOL)
4238    }
4239
4240
4241
4242
4243    /// Sets `TriggerTradingSessionID`, Tag 1113.
4244    pub fn set_trigger_trading_session_id(&mut self, v: String) {
4245        self.message.body.set_field(tag::TRIGGER_TRADING_SESSION_ID, FIXString::from(v));
4246    }
4247
4248    /// Gets `TriggerTradingSessionID`, Tag 1113.
4249    pub fn get_trigger_trading_session_id(&self) -> Result<String, MessageRejectErrorEnum> {
4250        let mut fld = field::TriggerTradingSessionIDField::new(String::new());
4251        self.message.body.get_field(tag::TRIGGER_TRADING_SESSION_ID, &mut fld.0)?;
4252        Ok(fld.value().to_string())
4253    }
4254
4255
4256    /// Returns true if `TriggerTradingSessionID` is present, Tag 1113.
4257    pub fn has_trigger_trading_session_id(&self) -> bool {
4258        self.message.body.has(tag::TRIGGER_TRADING_SESSION_ID)
4259    }
4260
4261
4262
4263
4264    /// Sets `TriggerTradingSessionSubID`, Tag 1114.
4265    pub fn set_trigger_trading_session_sub_id(&mut self, v: String) {
4266        self.message.body.set_field(tag::TRIGGER_TRADING_SESSION_SUB_ID, FIXString::from(v));
4267    }
4268
4269    /// Gets `TriggerTradingSessionSubID`, Tag 1114.
4270    pub fn get_trigger_trading_session_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
4271        let mut fld = field::TriggerTradingSessionSubIDField::new(String::new());
4272        self.message.body.get_field(tag::TRIGGER_TRADING_SESSION_SUB_ID, &mut fld.0)?;
4273        Ok(fld.value().to_string())
4274    }
4275
4276
4277    /// Returns true if `TriggerTradingSessionSubID` is present, Tag 1114.
4278    pub fn has_trigger_trading_session_sub_id(&self) -> bool {
4279        self.message.body.has(tag::TRIGGER_TRADING_SESSION_SUB_ID)
4280    }
4281
4282
4283
4284
4285    /// Sets `TriggerType`, Tag 1100.
4286    pub fn set_trigger_type(&mut self, v: String) {
4287        self.message.body.set_field(tag::TRIGGER_TYPE, FIXString::from(v));
4288    }
4289
4290    /// Gets `TriggerType`, Tag 1100.
4291    pub fn get_trigger_type(&self) -> Result<String, MessageRejectErrorEnum> {
4292        let mut fld = field::TriggerTypeField::new(String::new());
4293        self.message.body.get_field(tag::TRIGGER_TYPE, &mut fld.0)?;
4294        Ok(fld.value().to_string())
4295    }
4296
4297
4298    /// Returns true if `TriggerType` is present, Tag 1100.
4299    pub fn has_trigger_type(&self) -> bool {
4300        self.message.body.has(tag::TRIGGER_TYPE)
4301    }
4302
4303
4304
4305
4306    /// Sets `UnitOfMeasure`, Tag 996.
4307    pub fn set_unit_of_measure(&mut self, v: String) {
4308        self.message.body.set_field(tag::UNIT_OF_MEASURE, FIXString::from(v));
4309    }
4310
4311    /// Gets `UnitOfMeasure`, Tag 996.
4312    pub fn get_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
4313        let mut fld = field::UnitOfMeasureField::new(String::new());
4314        self.message.body.get_field(tag::UNIT_OF_MEASURE, &mut fld.0)?;
4315        Ok(fld.value().to_string())
4316    }
4317
4318
4319    /// Returns true if `UnitOfMeasure` is present, Tag 996.
4320    pub fn has_unit_of_measure(&self) -> bool {
4321        self.message.body.has(tag::UNIT_OF_MEASURE)
4322    }
4323
4324
4325
4326
4327    /// Sets `Yield`, Tag 236.
4328    pub fn set_yield(&mut self, val: Decimal, scale: i32) {
4329        self.message.body.set_field(tag::YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4330    }
4331
4332    /// Gets `Yield`, Tag 236.
4333    pub fn get_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4334        let mut fld = field::YieldField::new(Decimal::ZERO, 0);
4335        self.message.body.get_field(tag::YIELD, &mut fld.0)?;
4336        Ok(fld.value())
4337    }
4338
4339
4340    /// Returns true if `Yield` is present, Tag 236.
4341    pub fn has_yield(&self) -> bool {
4342        self.message.body.has(tag::YIELD)
4343    }
4344
4345
4346
4347
4348    /// Sets `YieldCalcDate`, Tag 701.
4349    pub fn set_yield_calc_date(&mut self, v: String) {
4350        self.message.body.set_field(tag::YIELD_CALC_DATE, FIXString::from(v));
4351    }
4352
4353    /// Gets `YieldCalcDate`, Tag 701.
4354    pub fn get_yield_calc_date(&self) -> Result<String, MessageRejectErrorEnum> {
4355        let mut fld = field::YieldCalcDateField::new(String::new());
4356        self.message.body.get_field(tag::YIELD_CALC_DATE, &mut fld.0)?;
4357        Ok(fld.value().to_string())
4358    }
4359
4360
4361    /// Returns true if `YieldCalcDate` is present, Tag 701.
4362    pub fn has_yield_calc_date(&self) -> bool {
4363        self.message.body.has(tag::YIELD_CALC_DATE)
4364    }
4365
4366
4367
4368
4369    /// Sets `YieldRedemptionDate`, Tag 696.
4370    pub fn set_yield_redemption_date(&mut self, v: String) {
4371        self.message.body.set_field(tag::YIELD_REDEMPTION_DATE, FIXString::from(v));
4372    }
4373
4374    /// Gets `YieldRedemptionDate`, Tag 696.
4375    pub fn get_yield_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
4376        let mut fld = field::YieldRedemptionDateField::new(String::new());
4377        self.message.body.get_field(tag::YIELD_REDEMPTION_DATE, &mut fld.0)?;
4378        Ok(fld.value().to_string())
4379    }
4380
4381
4382    /// Returns true if `YieldRedemptionDate` is present, Tag 696.
4383    pub fn has_yield_redemption_date(&self) -> bool {
4384        self.message.body.has(tag::YIELD_REDEMPTION_DATE)
4385    }
4386
4387
4388
4389
4390    /// Sets `YieldRedemptionPrice`, Tag 697.
4391    pub fn set_yield_redemption_price(&mut self, val: Decimal, scale: i32) {
4392        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
4393    }
4394
4395    /// Gets `YieldRedemptionPrice`, Tag 697.
4396    pub fn get_yield_redemption_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
4397        let mut fld = field::YieldRedemptionPriceField::new(Decimal::ZERO, 0);
4398        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE, &mut fld.0)?;
4399        Ok(fld.value())
4400    }
4401
4402
4403    /// Returns true if `YieldRedemptionPrice` is present, Tag 697.
4404    pub fn has_yield_redemption_price(&self) -> bool {
4405        self.message.body.has(tag::YIELD_REDEMPTION_PRICE)
4406    }
4407
4408
4409
4410
4411    /// Sets `YieldRedemptionPriceType`, Tag 698.
4412    pub fn set_yield_redemption_price_type(&mut self, v: isize) {
4413        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
4414    }
4415
4416    /// Gets `YieldRedemptionPriceType`, Tag 698.
4417    pub fn get_yield_redemption_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
4418        let mut fld = field::YieldRedemptionPriceTypeField::new(0);
4419        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE_TYPE, &mut fld.0)?;
4420        Ok(fld.value())
4421    }
4422
4423
4424    /// Returns true if `YieldRedemptionPriceType` is present, Tag 698.
4425    pub fn has_yield_redemption_price_type(&self) -> bool {
4426        self.message.body.has(tag::YIELD_REDEMPTION_PRICE_TYPE)
4427    }
4428
4429
4430
4431
4432    /// Sets `YieldType`, Tag 235.
4433    pub fn set_yield_type(&mut self, v: String) {
4434        self.message.body.set_field(tag::YIELD_TYPE, FIXString::from(v));
4435    }
4436
4437    /// Gets `YieldType`, Tag 235.
4438    pub fn get_yield_type(&self) -> Result<String, MessageRejectErrorEnum> {
4439        let mut fld = field::YieldTypeField::new(String::new());
4440        self.message.body.get_field(tag::YIELD_TYPE, &mut fld.0)?;
4441        Ok(fld.value().to_string())
4442    }
4443
4444
4445    /// Returns true if `YieldType` is present, Tag 235.
4446    pub fn has_yield_type(&self) -> bool {
4447        self.message.body.has(tag::YIELD_TYPE)
4448    }
4449
4450
4451}
4452
4453/// `RouteOut` is the callback type for routing `NewOrderSingle` messages.
4454pub type RouteOut = fn(msg: NewOrderSingle, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
4455
4456/// Route type returned by the `route` function.
4457pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
4458
4459/// Returns the begin string, message type, and route function for `NewOrderSingle`.
4460pub fn route(router: RouteOut) -> Route {
4461    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
4462        router(NewOrderSingle::from_message(msg.clone()), session_id)
4463    };
4464    ("7", "D", Box::new(r))
4465}