Skip to main content

fixer_fix/fix50sp2/
allocation_report.rs

1// Code generated by fixer-gen. DO NOT EDIT.
2#![allow(clippy::new_without_default)]
3#![allow(clippy::needless_pass_by_value)]
4#![allow(clippy::too_many_arguments)]
5#![allow(unused_imports)]
6
7use fixer::message::Message;
8use fixer::fix_string::FIXString;
9use fixer::errors::MessageRejectErrorEnum;
10use fixer::session::session_id::SessionID;
11
12use rust_decimal::Decimal;
13
14
15use jiff::Timestamp;
16
17use crate::field;
18use crate::tag;
19
20/// `AllocationReport` is the `fix50sp2` `AllocationReport` type, `MsgType` = AS.
21pub struct AllocationReport {
22    pub message: Message,
23}
24
25impl AllocationReport {
26    /// Creates a new `AllocationReport` with required fields.
27    pub fn new(alloc_report_id: field::AllocReportIDField, alloc_trans_type: field::AllocTransTypeField, alloc_report_type: field::AllocReportTypeField, alloc_status: field::AllocStatusField, side: field::SideField, quantity: field::QuantityField, avg_px: field::AvgPxField, trade_date: field::TradeDateField) -> Self {
28        let mut msg = Message::new();
29        msg.header.set_field(tag::MSG_TYPE, FIXString::from("AS".to_string()));
30
31        msg.body.set_field(tag::ALLOC_REPORT_ID, alloc_report_id.0);
32
33        msg.body.set_field(tag::ALLOC_TRANS_TYPE, alloc_trans_type.0);
34
35        msg.body.set_field(tag::ALLOC_REPORT_TYPE, alloc_report_type.0);
36
37        msg.body.set_field(tag::ALLOC_STATUS, alloc_status.0);
38
39        msg.body.set_field(tag::SIDE, side.0);
40
41        msg.body.set_field(tag::QUANTITY, quantity.0);
42
43        msg.body.set_field(tag::AVG_PX, avg_px.0);
44
45        msg.body.set_field(tag::TRADE_DATE, trade_date.0);
46
47        Self { message: msg }
48    }
49
50    /// Creates a `AllocationReport` from an existing `Message`.
51    pub fn from_message(msg: Message) -> Self {
52        Self { message: msg }
53    }
54
55    /// Returns the underlying `Message`.
56    pub fn to_message(self) -> Message {
57        self.message
58    }
59
60
61
62
63    /// Sets `AccruedInterestAmt`, Tag 159.
64    pub fn set_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
65        self.message.body.set_field(tag::ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
66    }
67
68    /// Gets `AccruedInterestAmt`, Tag 159.
69    pub fn get_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
70        let mut fld = field::AccruedInterestAmtField::new(Decimal::ZERO, 0);
71        self.message.body.get_field(tag::ACCRUED_INTEREST_AMT, &mut fld.0)?;
72        Ok(fld.value())
73    }
74
75
76    /// Returns true if `AccruedInterestAmt` is present, Tag 159.
77    pub fn has_accrued_interest_amt(&self) -> bool {
78        self.message.body.has(tag::ACCRUED_INTEREST_AMT)
79    }
80
81
82
83
84    /// Sets `AccruedInterestRate`, Tag 158.
85    pub fn set_accrued_interest_rate(&mut self, val: Decimal, scale: i32) {
86        self.message.body.set_field(tag::ACCRUED_INTEREST_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
87    }
88
89    /// Gets `AccruedInterestRate`, Tag 158.
90    pub fn get_accrued_interest_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
91        let mut fld = field::AccruedInterestRateField::new(Decimal::ZERO, 0);
92        self.message.body.get_field(tag::ACCRUED_INTEREST_RATE, &mut fld.0)?;
93        Ok(fld.value())
94    }
95
96
97    /// Returns true if `AccruedInterestRate` is present, Tag 158.
98    pub fn has_accrued_interest_rate(&self) -> bool {
99        self.message.body.has(tag::ACCRUED_INTEREST_RATE)
100    }
101
102
103
104
105    /// Sets `AgreementCurrency`, Tag 918.
106    pub fn set_agreement_currency(&mut self, v: String) {
107        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
108    }
109
110    /// Gets `AgreementCurrency`, Tag 918.
111    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
112        let mut fld = field::AgreementCurrencyField::new(String::new());
113        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
114        Ok(fld.value().to_string())
115    }
116
117
118    /// Returns true if `AgreementCurrency` is present, Tag 918.
119    pub fn has_agreement_currency(&self) -> bool {
120        self.message.body.has(tag::AGREEMENT_CURRENCY)
121    }
122
123
124
125
126    /// Sets `AgreementDate`, Tag 915.
127    pub fn set_agreement_date(&mut self, v: String) {
128        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
129    }
130
131    /// Gets `AgreementDate`, Tag 915.
132    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
133        let mut fld = field::AgreementDateField::new(String::new());
134        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
135        Ok(fld.value().to_string())
136    }
137
138
139    /// Returns true if `AgreementDate` is present, Tag 915.
140    pub fn has_agreement_date(&self) -> bool {
141        self.message.body.has(tag::AGREEMENT_DATE)
142    }
143
144
145
146
147    /// Sets `AgreementDesc`, Tag 913.
148    pub fn set_agreement_desc(&mut self, v: String) {
149        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
150    }
151
152    /// Gets `AgreementDesc`, Tag 913.
153    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
154        let mut fld = field::AgreementDescField::new(String::new());
155        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
156        Ok(fld.value().to_string())
157    }
158
159
160    /// Returns true if `AgreementDesc` is present, Tag 913.
161    pub fn has_agreement_desc(&self) -> bool {
162        self.message.body.has(tag::AGREEMENT_DESC)
163    }
164
165
166
167
168    /// Sets `AgreementID`, Tag 914.
169    pub fn set_agreement_id(&mut self, v: String) {
170        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
171    }
172
173    /// Gets `AgreementID`, Tag 914.
174    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
175        let mut fld = field::AgreementIDField::new(String::new());
176        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
177        Ok(fld.value().to_string())
178    }
179
180
181    /// Returns true if `AgreementID` is present, Tag 914.
182    pub fn has_agreement_id(&self) -> bool {
183        self.message.body.has(tag::AGREEMENT_ID)
184    }
185
186
187
188
189    /// Sets `AllocCancReplaceReason`, Tag 796.
190    pub fn set_alloc_canc_replace_reason(&mut self, v: isize) {
191        self.message.body.set_field(tag::ALLOC_CANC_REPLACE_REASON, fixer::fix_int::FIXInt::from(v));
192    }
193
194    /// Gets `AllocCancReplaceReason`, Tag 796.
195    pub fn get_alloc_canc_replace_reason(&self) -> Result<isize, MessageRejectErrorEnum> {
196        let mut fld = field::AllocCancReplaceReasonField::new(0);
197        self.message.body.get_field(tag::ALLOC_CANC_REPLACE_REASON, &mut fld.0)?;
198        Ok(fld.value())
199    }
200
201
202    /// Returns true if `AllocCancReplaceReason` is present, Tag 796.
203    pub fn has_alloc_canc_replace_reason(&self) -> bool {
204        self.message.body.has(tag::ALLOC_CANC_REPLACE_REASON)
205    }
206
207
208
209
210    /// Sets `AllocID`, Tag 70.
211    pub fn set_alloc_id(&mut self, v: String) {
212        self.message.body.set_field(tag::ALLOC_ID, FIXString::from(v));
213    }
214
215    /// Gets `AllocID`, Tag 70.
216    pub fn get_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
217        let mut fld = field::AllocIDField::new(String::new());
218        self.message.body.get_field(tag::ALLOC_ID, &mut fld.0)?;
219        Ok(fld.value().to_string())
220    }
221
222
223    /// Returns true if `AllocID` is present, Tag 70.
224    pub fn has_alloc_id(&self) -> bool {
225        self.message.body.has(tag::ALLOC_ID)
226    }
227
228
229
230
231    /// Sets `AllocIntermedReqType`, Tag 808.
232    pub fn set_alloc_intermed_req_type(&mut self, v: isize) {
233        self.message.body.set_field(tag::ALLOC_INTERMED_REQ_TYPE, fixer::fix_int::FIXInt::from(v));
234    }
235
236    /// Gets `AllocIntermedReqType`, Tag 808.
237    pub fn get_alloc_intermed_req_type(&self) -> Result<isize, MessageRejectErrorEnum> {
238        let mut fld = field::AllocIntermedReqTypeField::new(0);
239        self.message.body.get_field(tag::ALLOC_INTERMED_REQ_TYPE, &mut fld.0)?;
240        Ok(fld.value())
241    }
242
243
244    /// Returns true if `AllocIntermedReqType` is present, Tag 808.
245    pub fn has_alloc_intermed_req_type(&self) -> bool {
246        self.message.body.has(tag::ALLOC_INTERMED_REQ_TYPE)
247    }
248
249
250
251
252    /// Sets `AllocLinkID`, Tag 196.
253    pub fn set_alloc_link_id(&mut self, v: String) {
254        self.message.body.set_field(tag::ALLOC_LINK_ID, FIXString::from(v));
255    }
256
257    /// Gets `AllocLinkID`, Tag 196.
258    pub fn get_alloc_link_id(&self) -> Result<String, MessageRejectErrorEnum> {
259        let mut fld = field::AllocLinkIDField::new(String::new());
260        self.message.body.get_field(tag::ALLOC_LINK_ID, &mut fld.0)?;
261        Ok(fld.value().to_string())
262    }
263
264
265    /// Returns true if `AllocLinkID` is present, Tag 196.
266    pub fn has_alloc_link_id(&self) -> bool {
267        self.message.body.has(tag::ALLOC_LINK_ID)
268    }
269
270
271
272
273    /// Sets `AllocLinkType`, Tag 197.
274    pub fn set_alloc_link_type(&mut self, v: isize) {
275        self.message.body.set_field(tag::ALLOC_LINK_TYPE, fixer::fix_int::FIXInt::from(v));
276    }
277
278    /// Gets `AllocLinkType`, Tag 197.
279    pub fn get_alloc_link_type(&self) -> Result<isize, MessageRejectErrorEnum> {
280        let mut fld = field::AllocLinkTypeField::new(0);
281        self.message.body.get_field(tag::ALLOC_LINK_TYPE, &mut fld.0)?;
282        Ok(fld.value())
283    }
284
285
286    /// Returns true if `AllocLinkType` is present, Tag 197.
287    pub fn has_alloc_link_type(&self) -> bool {
288        self.message.body.has(tag::ALLOC_LINK_TYPE)
289    }
290
291
292
293
294    /// Sets `AllocNoOrdersType`, Tag 857.
295    pub fn set_alloc_no_orders_type(&mut self, v: isize) {
296        self.message.body.set_field(tag::ALLOC_NO_ORDERS_TYPE, fixer::fix_int::FIXInt::from(v));
297    }
298
299    /// Gets `AllocNoOrdersType`, Tag 857.
300    pub fn get_alloc_no_orders_type(&self) -> Result<isize, MessageRejectErrorEnum> {
301        let mut fld = field::AllocNoOrdersTypeField::new(0);
302        self.message.body.get_field(tag::ALLOC_NO_ORDERS_TYPE, &mut fld.0)?;
303        Ok(fld.value())
304    }
305
306
307    /// Returns true if `AllocNoOrdersType` is present, Tag 857.
308    pub fn has_alloc_no_orders_type(&self) -> bool {
309        self.message.body.has(tag::ALLOC_NO_ORDERS_TYPE)
310    }
311
312
313
314
315    /// Sets `AllocRejCode`, Tag 88.
316    pub fn set_alloc_rej_code(&mut self, v: isize) {
317        self.message.body.set_field(tag::ALLOC_REJ_CODE, fixer::fix_int::FIXInt::from(v));
318    }
319
320    /// Gets `AllocRejCode`, Tag 88.
321    pub fn get_alloc_rej_code(&self) -> Result<isize, MessageRejectErrorEnum> {
322        let mut fld = field::AllocRejCodeField::new(0);
323        self.message.body.get_field(tag::ALLOC_REJ_CODE, &mut fld.0)?;
324        Ok(fld.value())
325    }
326
327
328    /// Returns true if `AllocRejCode` is present, Tag 88.
329    pub fn has_alloc_rej_code(&self) -> bool {
330        self.message.body.has(tag::ALLOC_REJ_CODE)
331    }
332
333
334
335
336    /// Sets `AllocReportID`, Tag 755.
337    pub fn set_alloc_report_id(&mut self, v: String) {
338        self.message.body.set_field(tag::ALLOC_REPORT_ID, FIXString::from(v));
339    }
340
341    /// Gets `AllocReportID`, Tag 755.
342    pub fn get_alloc_report_id(&self) -> Result<String, MessageRejectErrorEnum> {
343        let mut fld = field::AllocReportIDField::new(String::new());
344        self.message.body.get_field(tag::ALLOC_REPORT_ID, &mut fld.0)?;
345        Ok(fld.value().to_string())
346    }
347
348
349    /// Returns true if `AllocReportID` is present, Tag 755.
350    pub fn has_alloc_report_id(&self) -> bool {
351        self.message.body.has(tag::ALLOC_REPORT_ID)
352    }
353
354
355
356
357    /// Sets `AllocReportRefID`, Tag 795.
358    pub fn set_alloc_report_ref_id(&mut self, v: String) {
359        self.message.body.set_field(tag::ALLOC_REPORT_REF_ID, FIXString::from(v));
360    }
361
362    /// Gets `AllocReportRefID`, Tag 795.
363    pub fn get_alloc_report_ref_id(&self) -> Result<String, MessageRejectErrorEnum> {
364        let mut fld = field::AllocReportRefIDField::new(String::new());
365        self.message.body.get_field(tag::ALLOC_REPORT_REF_ID, &mut fld.0)?;
366        Ok(fld.value().to_string())
367    }
368
369
370    /// Returns true if `AllocReportRefID` is present, Tag 795.
371    pub fn has_alloc_report_ref_id(&self) -> bool {
372        self.message.body.has(tag::ALLOC_REPORT_REF_ID)
373    }
374
375
376
377
378    /// Sets `AllocReportType`, Tag 794.
379    pub fn set_alloc_report_type(&mut self, v: isize) {
380        self.message.body.set_field(tag::ALLOC_REPORT_TYPE, fixer::fix_int::FIXInt::from(v));
381    }
382
383    /// Gets `AllocReportType`, Tag 794.
384    pub fn get_alloc_report_type(&self) -> Result<isize, MessageRejectErrorEnum> {
385        let mut fld = field::AllocReportTypeField::new(0);
386        self.message.body.get_field(tag::ALLOC_REPORT_TYPE, &mut fld.0)?;
387        Ok(fld.value())
388    }
389
390
391    /// Returns true if `AllocReportType` is present, Tag 794.
392    pub fn has_alloc_report_type(&self) -> bool {
393        self.message.body.has(tag::ALLOC_REPORT_TYPE)
394    }
395
396
397
398
399    /// Sets `AllocStatus`, Tag 87.
400    pub fn set_alloc_status(&mut self, v: isize) {
401        self.message.body.set_field(tag::ALLOC_STATUS, fixer::fix_int::FIXInt::from(v));
402    }
403
404    /// Gets `AllocStatus`, Tag 87.
405    pub fn get_alloc_status(&self) -> Result<isize, MessageRejectErrorEnum> {
406        let mut fld = field::AllocStatusField::new(0);
407        self.message.body.get_field(tag::ALLOC_STATUS, &mut fld.0)?;
408        Ok(fld.value())
409    }
410
411
412    /// Returns true if `AllocStatus` is present, Tag 87.
413    pub fn has_alloc_status(&self) -> bool {
414        self.message.body.has(tag::ALLOC_STATUS)
415    }
416
417
418
419
420    /// Sets `AllocTransType`, Tag 71.
421    pub fn set_alloc_trans_type(&mut self, v: String) {
422        self.message.body.set_field(tag::ALLOC_TRANS_TYPE, FIXString::from(v));
423    }
424
425    /// Gets `AllocTransType`, Tag 71.
426    pub fn get_alloc_trans_type(&self) -> Result<String, MessageRejectErrorEnum> {
427        let mut fld = field::AllocTransTypeField::new(String::new());
428        self.message.body.get_field(tag::ALLOC_TRANS_TYPE, &mut fld.0)?;
429        Ok(fld.value().to_string())
430    }
431
432
433    /// Returns true if `AllocTransType` is present, Tag 71.
434    pub fn has_alloc_trans_type(&self) -> bool {
435        self.message.body.has(tag::ALLOC_TRANS_TYPE)
436    }
437
438
439
440
441    /// Sets `AttachmentPoint`, Tag 1457.
442    pub fn set_attachment_point(&mut self, val: Decimal, scale: i32) {
443        self.message.body.set_field(tag::ATTACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
444    }
445
446    /// Gets `AttachmentPoint`, Tag 1457.
447    pub fn get_attachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
448        let mut fld = field::AttachmentPointField::new(Decimal::ZERO, 0);
449        self.message.body.get_field(tag::ATTACHMENT_POINT, &mut fld.0)?;
450        Ok(fld.value())
451    }
452
453
454    /// Returns true if `AttachmentPoint` is present, Tag 1457.
455    pub fn has_attachment_point(&self) -> bool {
456        self.message.body.has(tag::ATTACHMENT_POINT)
457    }
458
459
460
461
462    /// Sets `AutoAcceptIndicator`, Tag 754.
463    pub fn set_auto_accept_indicator(&mut self, v: bool) {
464        self.message.body.set_field(tag::AUTO_ACCEPT_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
465    }
466
467    /// Gets `AutoAcceptIndicator`, Tag 754.
468    pub fn get_auto_accept_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
469        let mut fld = field::AutoAcceptIndicatorField::new(false);
470        self.message.body.get_field(tag::AUTO_ACCEPT_INDICATOR, &mut fld.0)?;
471        Ok(fld.value())
472    }
473
474
475    /// Returns true if `AutoAcceptIndicator` is present, Tag 754.
476    pub fn has_auto_accept_indicator(&self) -> bool {
477        self.message.body.has(tag::AUTO_ACCEPT_INDICATOR)
478    }
479
480
481
482
483    /// Sets `AvgParPx`, Tag 860.
484    pub fn set_avg_par_px(&mut self, val: Decimal, scale: i32) {
485        self.message.body.set_field(tag::AVG_PAR_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
486    }
487
488    /// Gets `AvgParPx`, Tag 860.
489    pub fn get_avg_par_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
490        let mut fld = field::AvgParPxField::new(Decimal::ZERO, 0);
491        self.message.body.get_field(tag::AVG_PAR_PX, &mut fld.0)?;
492        Ok(fld.value())
493    }
494
495
496    /// Returns true if `AvgParPx` is present, Tag 860.
497    pub fn has_avg_par_px(&self) -> bool {
498        self.message.body.has(tag::AVG_PAR_PX)
499    }
500
501
502
503
504    /// Sets `AvgPx`, Tag 6.
505    pub fn set_avg_px(&mut self, val: Decimal, scale: i32) {
506        self.message.body.set_field(tag::AVG_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
507    }
508
509    /// Gets `AvgPx`, Tag 6.
510    pub fn get_avg_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
511        let mut fld = field::AvgPxField::new(Decimal::ZERO, 0);
512        self.message.body.get_field(tag::AVG_PX, &mut fld.0)?;
513        Ok(fld.value())
514    }
515
516
517    /// Returns true if `AvgPx` is present, Tag 6.
518    pub fn has_avg_px(&self) -> bool {
519        self.message.body.has(tag::AVG_PX)
520    }
521
522
523
524
525    /// Sets `AvgPxIndicator`, Tag 819.
526    pub fn set_avg_px_indicator(&mut self, v: isize) {
527        self.message.body.set_field(tag::AVG_PX_INDICATOR, fixer::fix_int::FIXInt::from(v));
528    }
529
530    /// Gets `AvgPxIndicator`, Tag 819.
531    pub fn get_avg_px_indicator(&self) -> Result<isize, MessageRejectErrorEnum> {
532        let mut fld = field::AvgPxIndicatorField::new(0);
533        self.message.body.get_field(tag::AVG_PX_INDICATOR, &mut fld.0)?;
534        Ok(fld.value())
535    }
536
537
538    /// Returns true if `AvgPxIndicator` is present, Tag 819.
539    pub fn has_avg_px_indicator(&self) -> bool {
540        self.message.body.has(tag::AVG_PX_INDICATOR)
541    }
542
543
544
545
546    /// Sets `AvgPxPrecision`, Tag 74.
547    pub fn set_avg_px_precision(&mut self, v: isize) {
548        self.message.body.set_field(tag::AVG_PX_PRECISION, fixer::fix_int::FIXInt::from(v));
549    }
550
551    /// Gets `AvgPxPrecision`, Tag 74.
552    pub fn get_avg_px_precision(&self) -> Result<isize, MessageRejectErrorEnum> {
553        let mut fld = field::AvgPxPrecisionField::new(0);
554        self.message.body.get_field(tag::AVG_PX_PRECISION, &mut fld.0)?;
555        Ok(fld.value())
556    }
557
558
559    /// Returns true if `AvgPxPrecision` is present, Tag 74.
560    pub fn has_avg_px_precision(&self) -> bool {
561        self.message.body.has(tag::AVG_PX_PRECISION)
562    }
563
564
565
566
567    /// Sets `BenchmarkCurveCurrency`, Tag 220.
568    pub fn set_benchmark_curve_currency(&mut self, v: String) {
569        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
570    }
571
572    /// Gets `BenchmarkCurveCurrency`, Tag 220.
573    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
574        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
575        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
576        Ok(fld.value().to_string())
577    }
578
579
580    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
581    pub fn has_benchmark_curve_currency(&self) -> bool {
582        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
583    }
584
585
586
587
588    /// Sets `BenchmarkCurveName`, Tag 221.
589    pub fn set_benchmark_curve_name(&mut self, v: String) {
590        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
591    }
592
593    /// Gets `BenchmarkCurveName`, Tag 221.
594    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
595        let mut fld = field::BenchmarkCurveNameField::new(String::new());
596        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
597        Ok(fld.value().to_string())
598    }
599
600
601    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
602    pub fn has_benchmark_curve_name(&self) -> bool {
603        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
604    }
605
606
607
608
609    /// Sets `BenchmarkCurvePoint`, Tag 222.
610    pub fn set_benchmark_curve_point(&mut self, v: String) {
611        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
612    }
613
614    /// Gets `BenchmarkCurvePoint`, Tag 222.
615    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
616        let mut fld = field::BenchmarkCurvePointField::new(String::new());
617        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
618        Ok(fld.value().to_string())
619    }
620
621
622    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
623    pub fn has_benchmark_curve_point(&self) -> bool {
624        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
625    }
626
627
628
629
630    /// Sets `BenchmarkPrice`, Tag 662.
631    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
632        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
633    }
634
635    /// Gets `BenchmarkPrice`, Tag 662.
636    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
637        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
638        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
639        Ok(fld.value())
640    }
641
642
643    /// Returns true if `BenchmarkPrice` is present, Tag 662.
644    pub fn has_benchmark_price(&self) -> bool {
645        self.message.body.has(tag::BENCHMARK_PRICE)
646    }
647
648
649
650
651    /// Sets `BenchmarkPriceType`, Tag 663.
652    pub fn set_benchmark_price_type(&mut self, v: isize) {
653        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
654    }
655
656    /// Gets `BenchmarkPriceType`, Tag 663.
657    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
658        let mut fld = field::BenchmarkPriceTypeField::new(0);
659        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
660        Ok(fld.value())
661    }
662
663
664    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
665    pub fn has_benchmark_price_type(&self) -> bool {
666        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
667    }
668
669
670
671
672    /// Sets `BenchmarkSecurityID`, Tag 699.
673    pub fn set_benchmark_security_id(&mut self, v: String) {
674        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
675    }
676
677    /// Gets `BenchmarkSecurityID`, Tag 699.
678    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
679        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
680        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
681        Ok(fld.value().to_string())
682    }
683
684
685    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
686    pub fn has_benchmark_security_id(&self) -> bool {
687        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
688    }
689
690
691
692
693    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
694    pub fn set_benchmark_security_id_source(&mut self, v: String) {
695        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
696    }
697
698    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
699    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
700        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
701        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
702        Ok(fld.value().to_string())
703    }
704
705
706    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
707    pub fn has_benchmark_security_id_source(&self) -> bool {
708        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
709    }
710
711
712
713
714    /// Sets `BookingRefID`, Tag 466.
715    pub fn set_booking_ref_id(&mut self, v: String) {
716        self.message.body.set_field(tag::BOOKING_REF_ID, FIXString::from(v));
717    }
718
719    /// Gets `BookingRefID`, Tag 466.
720    pub fn get_booking_ref_id(&self) -> Result<String, MessageRejectErrorEnum> {
721        let mut fld = field::BookingRefIDField::new(String::new());
722        self.message.body.get_field(tag::BOOKING_REF_ID, &mut fld.0)?;
723        Ok(fld.value().to_string())
724    }
725
726
727    /// Returns true if `BookingRefID` is present, Tag 466.
728    pub fn has_booking_ref_id(&self) -> bool {
729        self.message.body.has(tag::BOOKING_REF_ID)
730    }
731
732
733
734
735    /// Sets `BookingType`, Tag 775.
736    pub fn set_booking_type(&mut self, v: isize) {
737        self.message.body.set_field(tag::BOOKING_TYPE, fixer::fix_int::FIXInt::from(v));
738    }
739
740    /// Gets `BookingType`, Tag 775.
741    pub fn get_booking_type(&self) -> Result<isize, MessageRejectErrorEnum> {
742        let mut fld = field::BookingTypeField::new(0);
743        self.message.body.get_field(tag::BOOKING_TYPE, &mut fld.0)?;
744        Ok(fld.value())
745    }
746
747
748    /// Returns true if `BookingType` is present, Tag 775.
749    pub fn has_booking_type(&self) -> bool {
750        self.message.body.has(tag::BOOKING_TYPE)
751    }
752
753
754
755
756    /// Sets `CFICode`, Tag 461.
757    pub fn set_cfi_code(&mut self, v: String) {
758        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
759    }
760
761    /// Gets `CFICode`, Tag 461.
762    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
763        let mut fld = field::CFICodeField::new(String::new());
764        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
765        Ok(fld.value().to_string())
766    }
767
768
769    /// Returns true if `CFICode` is present, Tag 461.
770    pub fn has_cfi_code(&self) -> bool {
771        self.message.body.has(tag::CFI_CODE)
772    }
773
774
775
776
777    /// Sets `CPProgram`, Tag 875.
778    pub fn set_cp_program(&mut self, v: isize) {
779        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
780    }
781
782    /// Gets `CPProgram`, Tag 875.
783    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
784        let mut fld = field::CPProgramField::new(0);
785        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
786        Ok(fld.value())
787    }
788
789
790    /// Returns true if `CPProgram` is present, Tag 875.
791    pub fn has_cp_program(&self) -> bool {
792        self.message.body.has(tag::CP_PROGRAM)
793    }
794
795
796
797
798    /// Sets `CPRegType`, Tag 876.
799    pub fn set_cp_reg_type(&mut self, v: String) {
800        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
801    }
802
803    /// Gets `CPRegType`, Tag 876.
804    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
805        let mut fld = field::CPRegTypeField::new(String::new());
806        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
807        Ok(fld.value().to_string())
808    }
809
810
811    /// Returns true if `CPRegType` is present, Tag 876.
812    pub fn has_cp_reg_type(&self) -> bool {
813        self.message.body.has(tag::CP_REG_TYPE)
814    }
815
816
817
818
819    /// Sets `CapPrice`, Tag 1199.
820    pub fn set_cap_price(&mut self, val: Decimal, scale: i32) {
821        self.message.body.set_field(tag::CAP_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
822    }
823
824    /// Gets `CapPrice`, Tag 1199.
825    pub fn get_cap_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
826        let mut fld = field::CapPriceField::new(Decimal::ZERO, 0);
827        self.message.body.get_field(tag::CAP_PRICE, &mut fld.0)?;
828        Ok(fld.value())
829    }
830
831
832    /// Returns true if `CapPrice` is present, Tag 1199.
833    pub fn has_cap_price(&self) -> bool {
834        self.message.body.has(tag::CAP_PRICE)
835    }
836
837
838
839
840    /// Sets `ClearingBusinessDate`, Tag 715.
841    pub fn set_clearing_business_date(&mut self, v: String) {
842        self.message.body.set_field(tag::CLEARING_BUSINESS_DATE, FIXString::from(v));
843    }
844
845    /// Gets `ClearingBusinessDate`, Tag 715.
846    pub fn get_clearing_business_date(&self) -> Result<String, MessageRejectErrorEnum> {
847        let mut fld = field::ClearingBusinessDateField::new(String::new());
848        self.message.body.get_field(tag::CLEARING_BUSINESS_DATE, &mut fld.0)?;
849        Ok(fld.value().to_string())
850    }
851
852
853    /// Returns true if `ClearingBusinessDate` is present, Tag 715.
854    pub fn has_clearing_business_date(&self) -> bool {
855        self.message.body.has(tag::CLEARING_BUSINESS_DATE)
856    }
857
858
859
860
861    /// Sets `Concession`, Tag 238.
862    pub fn set_concession(&mut self, val: Decimal, scale: i32) {
863        self.message.body.set_field(tag::CONCESSION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
864    }
865
866    /// Gets `Concession`, Tag 238.
867    pub fn get_concession(&self) -> Result<Decimal, MessageRejectErrorEnum> {
868        let mut fld = field::ConcessionField::new(Decimal::ZERO, 0);
869        self.message.body.get_field(tag::CONCESSION, &mut fld.0)?;
870        Ok(fld.value())
871    }
872
873
874    /// Returns true if `Concession` is present, Tag 238.
875    pub fn has_concession(&self) -> bool {
876        self.message.body.has(tag::CONCESSION)
877    }
878
879
880
881
882    /// Sets `ContractMultiplier`, Tag 231.
883    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
884        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
885    }
886
887    /// Gets `ContractMultiplier`, Tag 231.
888    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
889        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
890        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
891        Ok(fld.value())
892    }
893
894
895    /// Returns true if `ContractMultiplier` is present, Tag 231.
896    pub fn has_contract_multiplier(&self) -> bool {
897        self.message.body.has(tag::CONTRACT_MULTIPLIER)
898    }
899
900
901
902
903    /// Sets `ContractMultiplierUnit`, Tag 1435.
904    pub fn set_contract_multiplier_unit(&mut self, v: isize) {
905        self.message.body.set_field(tag::CONTRACT_MULTIPLIER_UNIT, fixer::fix_int::FIXInt::from(v));
906    }
907
908    /// Gets `ContractMultiplierUnit`, Tag 1435.
909    pub fn get_contract_multiplier_unit(&self) -> Result<isize, MessageRejectErrorEnum> {
910        let mut fld = field::ContractMultiplierUnitField::new(0);
911        self.message.body.get_field(tag::CONTRACT_MULTIPLIER_UNIT, &mut fld.0)?;
912        Ok(fld.value())
913    }
914
915
916    /// Returns true if `ContractMultiplierUnit` is present, Tag 1435.
917    pub fn has_contract_multiplier_unit(&self) -> bool {
918        self.message.body.has(tag::CONTRACT_MULTIPLIER_UNIT)
919    }
920
921
922
923
924    /// Sets `ContractSettlMonth`, Tag 667.
925    pub fn set_contract_settl_month(&mut self, v: String) {
926        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
927    }
928
929    /// Gets `ContractSettlMonth`, Tag 667.
930    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
931        let mut fld = field::ContractSettlMonthField::new(String::new());
932        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
933        Ok(fld.value().to_string())
934    }
935
936
937    /// Returns true if `ContractSettlMonth` is present, Tag 667.
938    pub fn has_contract_settl_month(&self) -> bool {
939        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
940    }
941
942
943
944
945    /// Sets `CountryOfIssue`, Tag 470.
946    pub fn set_country_of_issue(&mut self, v: String) {
947        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
948    }
949
950    /// Gets `CountryOfIssue`, Tag 470.
951    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
952        let mut fld = field::CountryOfIssueField::new(String::new());
953        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
954        Ok(fld.value().to_string())
955    }
956
957
958    /// Returns true if `CountryOfIssue` is present, Tag 470.
959    pub fn has_country_of_issue(&self) -> bool {
960        self.message.body.has(tag::COUNTRY_OF_ISSUE)
961    }
962
963
964
965
966    /// Sets `CouponPaymentDate`, Tag 224.
967    pub fn set_coupon_payment_date(&mut self, v: String) {
968        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
969    }
970
971    /// Gets `CouponPaymentDate`, Tag 224.
972    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
973        let mut fld = field::CouponPaymentDateField::new(String::new());
974        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
975        Ok(fld.value().to_string())
976    }
977
978
979    /// Returns true if `CouponPaymentDate` is present, Tag 224.
980    pub fn has_coupon_payment_date(&self) -> bool {
981        self.message.body.has(tag::COUPON_PAYMENT_DATE)
982    }
983
984
985
986
987    /// Sets `CouponRate`, Tag 223.
988    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
989        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
990    }
991
992    /// Gets `CouponRate`, Tag 223.
993    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
994        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
995        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
996        Ok(fld.value())
997    }
998
999
1000    /// Returns true if `CouponRate` is present, Tag 223.
1001    pub fn has_coupon_rate(&self) -> bool {
1002        self.message.body.has(tag::COUPON_RATE)
1003    }
1004
1005
1006
1007
1008    /// Sets `CreditRating`, Tag 255.
1009    pub fn set_credit_rating(&mut self, v: String) {
1010        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
1011    }
1012
1013    /// Gets `CreditRating`, Tag 255.
1014    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
1015        let mut fld = field::CreditRatingField::new(String::new());
1016        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
1017        Ok(fld.value().to_string())
1018    }
1019
1020
1021    /// Returns true if `CreditRating` is present, Tag 255.
1022    pub fn has_credit_rating(&self) -> bool {
1023        self.message.body.has(tag::CREDIT_RATING)
1024    }
1025
1026
1027
1028
1029    /// Sets `Currency`, Tag 15.
1030    pub fn set_currency(&mut self, v: String) {
1031        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
1032    }
1033
1034    /// Gets `Currency`, Tag 15.
1035    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
1036        let mut fld = field::CurrencyField::new(String::new());
1037        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
1038        Ok(fld.value().to_string())
1039    }
1040
1041
1042    /// Returns true if `Currency` is present, Tag 15.
1043    pub fn has_currency(&self) -> bool {
1044        self.message.body.has(tag::CURRENCY)
1045    }
1046
1047
1048
1049
1050    /// Sets `CustOrderCapacity`, Tag 582.
1051    pub fn set_cust_order_capacity(&mut self, v: isize) {
1052        self.message.body.set_field(tag::CUST_ORDER_CAPACITY, fixer::fix_int::FIXInt::from(v));
1053    }
1054
1055    /// Gets `CustOrderCapacity`, Tag 582.
1056    pub fn get_cust_order_capacity(&self) -> Result<isize, MessageRejectErrorEnum> {
1057        let mut fld = field::CustOrderCapacityField::new(0);
1058        self.message.body.get_field(tag::CUST_ORDER_CAPACITY, &mut fld.0)?;
1059        Ok(fld.value())
1060    }
1061
1062
1063    /// Returns true if `CustOrderCapacity` is present, Tag 582.
1064    pub fn has_cust_order_capacity(&self) -> bool {
1065        self.message.body.has(tag::CUST_ORDER_CAPACITY)
1066    }
1067
1068
1069
1070
1071    /// Sets `DatedDate`, Tag 873.
1072    pub fn set_dated_date(&mut self, v: String) {
1073        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
1074    }
1075
1076    /// Gets `DatedDate`, Tag 873.
1077    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
1078        let mut fld = field::DatedDateField::new(String::new());
1079        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
1080        Ok(fld.value().to_string())
1081    }
1082
1083
1084    /// Returns true if `DatedDate` is present, Tag 873.
1085    pub fn has_dated_date(&self) -> bool {
1086        self.message.body.has(tag::DATED_DATE)
1087    }
1088
1089
1090
1091
1092    /// Sets `DeliveryForm`, Tag 668.
1093    pub fn set_delivery_form(&mut self, v: isize) {
1094        self.message.body.set_field(tag::DELIVERY_FORM, fixer::fix_int::FIXInt::from(v));
1095    }
1096
1097    /// Gets `DeliveryForm`, Tag 668.
1098    pub fn get_delivery_form(&self) -> Result<isize, MessageRejectErrorEnum> {
1099        let mut fld = field::DeliveryFormField::new(0);
1100        self.message.body.get_field(tag::DELIVERY_FORM, &mut fld.0)?;
1101        Ok(fld.value())
1102    }
1103
1104
1105    /// Returns true if `DeliveryForm` is present, Tag 668.
1106    pub fn has_delivery_form(&self) -> bool {
1107        self.message.body.has(tag::DELIVERY_FORM)
1108    }
1109
1110
1111
1112
1113    /// Sets `DeliveryType`, Tag 919.
1114    pub fn set_delivery_type(&mut self, v: isize) {
1115        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
1116    }
1117
1118    /// Gets `DeliveryType`, Tag 919.
1119    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1120        let mut fld = field::DeliveryTypeField::new(0);
1121        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
1122        Ok(fld.value())
1123    }
1124
1125
1126    /// Returns true if `DeliveryType` is present, Tag 919.
1127    pub fn has_delivery_type(&self) -> bool {
1128        self.message.body.has(tag::DELIVERY_TYPE)
1129    }
1130
1131
1132
1133
1134    /// Sets `DetachmentPoint`, Tag 1458.
1135    pub fn set_detachment_point(&mut self, val: Decimal, scale: i32) {
1136        self.message.body.set_field(tag::DETACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1137    }
1138
1139    /// Gets `DetachmentPoint`, Tag 1458.
1140    pub fn get_detachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1141        let mut fld = field::DetachmentPointField::new(Decimal::ZERO, 0);
1142        self.message.body.get_field(tag::DETACHMENT_POINT, &mut fld.0)?;
1143        Ok(fld.value())
1144    }
1145
1146
1147    /// Returns true if `DetachmentPoint` is present, Tag 1458.
1148    pub fn has_detachment_point(&self) -> bool {
1149        self.message.body.has(tag::DETACHMENT_POINT)
1150    }
1151
1152
1153
1154
1155    /// Sets `EncodedIssuer`, Tag 349.
1156    pub fn set_encoded_issuer(&mut self, v: String) {
1157        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
1158    }
1159
1160    /// Gets `EncodedIssuer`, Tag 349.
1161    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1162        let mut fld = field::EncodedIssuerField::new(String::new());
1163        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
1164        Ok(fld.value().to_string())
1165    }
1166
1167
1168    /// Returns true if `EncodedIssuer` is present, Tag 349.
1169    pub fn has_encoded_issuer(&self) -> bool {
1170        self.message.body.has(tag::ENCODED_ISSUER)
1171    }
1172
1173
1174
1175
1176    /// Sets `EncodedIssuerLen`, Tag 348.
1177    pub fn set_encoded_issuer_len(&mut self, v: isize) {
1178        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
1179    }
1180
1181    /// Gets `EncodedIssuerLen`, Tag 348.
1182    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1183        let mut fld = field::EncodedIssuerLenField::new(0);
1184        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
1185        Ok(fld.value())
1186    }
1187
1188
1189    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
1190    pub fn has_encoded_issuer_len(&self) -> bool {
1191        self.message.body.has(tag::ENCODED_ISSUER_LEN)
1192    }
1193
1194
1195
1196
1197    /// Sets `EncodedSecurityDesc`, Tag 351.
1198    pub fn set_encoded_security_desc(&mut self, v: String) {
1199        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
1200    }
1201
1202    /// Gets `EncodedSecurityDesc`, Tag 351.
1203    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1204        let mut fld = field::EncodedSecurityDescField::new(String::new());
1205        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
1206        Ok(fld.value().to_string())
1207    }
1208
1209
1210    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
1211    pub fn has_encoded_security_desc(&self) -> bool {
1212        self.message.body.has(tag::ENCODED_SECURITY_DESC)
1213    }
1214
1215
1216
1217
1218    /// Sets `EncodedSecurityDescLen`, Tag 350.
1219    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
1220        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
1221    }
1222
1223    /// Gets `EncodedSecurityDescLen`, Tag 350.
1224    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1225        let mut fld = field::EncodedSecurityDescLenField::new(0);
1226        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
1227        Ok(fld.value())
1228    }
1229
1230
1231    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
1232    pub fn has_encoded_security_desc_len(&self) -> bool {
1233        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
1234    }
1235
1236
1237
1238
1239    /// Sets `EncodedText`, Tag 355.
1240    pub fn set_encoded_text(&mut self, v: String) {
1241        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
1242    }
1243
1244    /// Gets `EncodedText`, Tag 355.
1245    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
1246        let mut fld = field::EncodedTextField::new(String::new());
1247        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
1248        Ok(fld.value().to_string())
1249    }
1250
1251
1252    /// Returns true if `EncodedText` is present, Tag 355.
1253    pub fn has_encoded_text(&self) -> bool {
1254        self.message.body.has(tag::ENCODED_TEXT)
1255    }
1256
1257
1258
1259
1260    /// Sets `EncodedTextLen`, Tag 354.
1261    pub fn set_encoded_text_len(&mut self, v: isize) {
1262        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
1263    }
1264
1265    /// Gets `EncodedTextLen`, Tag 354.
1266    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
1267        let mut fld = field::EncodedTextLenField::new(0);
1268        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
1269        Ok(fld.value())
1270    }
1271
1272
1273    /// Returns true if `EncodedTextLen` is present, Tag 354.
1274    pub fn has_encoded_text_len(&self) -> bool {
1275        self.message.body.has(tag::ENCODED_TEXT_LEN)
1276    }
1277
1278
1279
1280
1281    /// Sets `EndAccruedInterestAmt`, Tag 920.
1282    pub fn set_end_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
1283        self.message.body.set_field(tag::END_ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1284    }
1285
1286    /// Gets `EndAccruedInterestAmt`, Tag 920.
1287    pub fn get_end_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1288        let mut fld = field::EndAccruedInterestAmtField::new(Decimal::ZERO, 0);
1289        self.message.body.get_field(tag::END_ACCRUED_INTEREST_AMT, &mut fld.0)?;
1290        Ok(fld.value())
1291    }
1292
1293
1294    /// Returns true if `EndAccruedInterestAmt` is present, Tag 920.
1295    pub fn has_end_accrued_interest_amt(&self) -> bool {
1296        self.message.body.has(tag::END_ACCRUED_INTEREST_AMT)
1297    }
1298
1299
1300
1301
1302    /// Sets `EndCash`, Tag 922.
1303    pub fn set_end_cash(&mut self, val: Decimal, scale: i32) {
1304        self.message.body.set_field(tag::END_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1305    }
1306
1307    /// Gets `EndCash`, Tag 922.
1308    pub fn get_end_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1309        let mut fld = field::EndCashField::new(Decimal::ZERO, 0);
1310        self.message.body.get_field(tag::END_CASH, &mut fld.0)?;
1311        Ok(fld.value())
1312    }
1313
1314
1315    /// Returns true if `EndCash` is present, Tag 922.
1316    pub fn has_end_cash(&self) -> bool {
1317        self.message.body.has(tag::END_CASH)
1318    }
1319
1320
1321
1322
1323    /// Sets `EndDate`, Tag 917.
1324    pub fn set_end_date(&mut self, v: String) {
1325        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
1326    }
1327
1328    /// Gets `EndDate`, Tag 917.
1329    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
1330        let mut fld = field::EndDateField::new(String::new());
1331        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
1332        Ok(fld.value().to_string())
1333    }
1334
1335
1336    /// Returns true if `EndDate` is present, Tag 917.
1337    pub fn has_end_date(&self) -> bool {
1338        self.message.body.has(tag::END_DATE)
1339    }
1340
1341
1342
1343
1344    /// Sets `ExerciseStyle`, Tag 1194.
1345    pub fn set_exercise_style(&mut self, v: isize) {
1346        self.message.body.set_field(tag::EXERCISE_STYLE, fixer::fix_int::FIXInt::from(v));
1347    }
1348
1349    /// Gets `ExerciseStyle`, Tag 1194.
1350    pub fn get_exercise_style(&self) -> Result<isize, MessageRejectErrorEnum> {
1351        let mut fld = field::ExerciseStyleField::new(0);
1352        self.message.body.get_field(tag::EXERCISE_STYLE, &mut fld.0)?;
1353        Ok(fld.value())
1354    }
1355
1356
1357    /// Returns true if `ExerciseStyle` is present, Tag 1194.
1358    pub fn has_exercise_style(&self) -> bool {
1359        self.message.body.has(tag::EXERCISE_STYLE)
1360    }
1361
1362
1363
1364
1365    /// Sets `Factor`, Tag 228.
1366    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
1367        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1368    }
1369
1370    /// Gets `Factor`, Tag 228.
1371    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1372        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
1373        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
1374        Ok(fld.value())
1375    }
1376
1377
1378    /// Returns true if `Factor` is present, Tag 228.
1379    pub fn has_factor(&self) -> bool {
1380        self.message.body.has(tag::FACTOR)
1381    }
1382
1383
1384
1385
1386    /// Sets `FlexProductEligibilityIndicator`, Tag 1242.
1387    pub fn set_flex_product_eligibility_indicator(&mut self, v: bool) {
1388        self.message.body.set_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
1389    }
1390
1391    /// Gets `FlexProductEligibilityIndicator`, Tag 1242.
1392    pub fn get_flex_product_eligibility_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
1393        let mut fld = field::FlexProductEligibilityIndicatorField::new(false);
1394        self.message.body.get_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, &mut fld.0)?;
1395        Ok(fld.value())
1396    }
1397
1398
1399    /// Returns true if `FlexProductEligibilityIndicator` is present, Tag 1242.
1400    pub fn has_flex_product_eligibility_indicator(&self) -> bool {
1401        self.message.body.has(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR)
1402    }
1403
1404
1405
1406
1407    /// Sets `FlexibleIndicator`, Tag 1244.
1408    pub fn set_flexible_indicator(&mut self, v: bool) {
1409        self.message.body.set_field(tag::FLEXIBLE_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
1410    }
1411
1412    /// Gets `FlexibleIndicator`, Tag 1244.
1413    pub fn get_flexible_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
1414        let mut fld = field::FlexibleIndicatorField::new(false);
1415        self.message.body.get_field(tag::FLEXIBLE_INDICATOR, &mut fld.0)?;
1416        Ok(fld.value())
1417    }
1418
1419
1420    /// Returns true if `FlexibleIndicator` is present, Tag 1244.
1421    pub fn has_flexible_indicator(&self) -> bool {
1422        self.message.body.has(tag::FLEXIBLE_INDICATOR)
1423    }
1424
1425
1426
1427
1428    /// Sets `FloorPrice`, Tag 1200.
1429    pub fn set_floor_price(&mut self, val: Decimal, scale: i32) {
1430        self.message.body.set_field(tag::FLOOR_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1431    }
1432
1433    /// Gets `FloorPrice`, Tag 1200.
1434    pub fn get_floor_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1435        let mut fld = field::FloorPriceField::new(Decimal::ZERO, 0);
1436        self.message.body.get_field(tag::FLOOR_PRICE, &mut fld.0)?;
1437        Ok(fld.value())
1438    }
1439
1440
1441    /// Returns true if `FloorPrice` is present, Tag 1200.
1442    pub fn has_floor_price(&self) -> bool {
1443        self.message.body.has(tag::FLOOR_PRICE)
1444    }
1445
1446
1447
1448
1449    /// Sets `FlowScheduleType`, Tag 1439.
1450    pub fn set_flow_schedule_type(&mut self, v: isize) {
1451        self.message.body.set_field(tag::FLOW_SCHEDULE_TYPE, fixer::fix_int::FIXInt::from(v));
1452    }
1453
1454    /// Gets `FlowScheduleType`, Tag 1439.
1455    pub fn get_flow_schedule_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1456        let mut fld = field::FlowScheduleTypeField::new(0);
1457        self.message.body.get_field(tag::FLOW_SCHEDULE_TYPE, &mut fld.0)?;
1458        Ok(fld.value())
1459    }
1460
1461
1462    /// Returns true if `FlowScheduleType` is present, Tag 1439.
1463    pub fn has_flow_schedule_type(&self) -> bool {
1464        self.message.body.has(tag::FLOW_SCHEDULE_TYPE)
1465    }
1466
1467
1468
1469
1470    /// Sets `GrossTradeAmt`, Tag 381.
1471    pub fn set_gross_trade_amt(&mut self, val: Decimal, scale: i32) {
1472        self.message.body.set_field(tag::GROSS_TRADE_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1473    }
1474
1475    /// Gets `GrossTradeAmt`, Tag 381.
1476    pub fn get_gross_trade_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1477        let mut fld = field::GrossTradeAmtField::new(Decimal::ZERO, 0);
1478        self.message.body.get_field(tag::GROSS_TRADE_AMT, &mut fld.0)?;
1479        Ok(fld.value())
1480    }
1481
1482
1483    /// Returns true if `GrossTradeAmt` is present, Tag 381.
1484    pub fn has_gross_trade_amt(&self) -> bool {
1485        self.message.body.has(tag::GROSS_TRADE_AMT)
1486    }
1487
1488
1489
1490
1491    /// Sets `InstrRegistry`, Tag 543.
1492    pub fn set_instr_registry(&mut self, v: String) {
1493        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
1494    }
1495
1496    /// Gets `InstrRegistry`, Tag 543.
1497    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
1498        let mut fld = field::InstrRegistryField::new(String::new());
1499        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
1500        Ok(fld.value().to_string())
1501    }
1502
1503
1504    /// Returns true if `InstrRegistry` is present, Tag 543.
1505    pub fn has_instr_registry(&self) -> bool {
1506        self.message.body.has(tag::INSTR_REGISTRY)
1507    }
1508
1509
1510
1511
1512    /// Sets `InstrmtAssignmentMethod`, Tag 1049.
1513    pub fn set_instrmt_assignment_method(&mut self, v: String) {
1514        self.message.body.set_field(tag::INSTRMT_ASSIGNMENT_METHOD, FIXString::from(v));
1515    }
1516
1517    /// Gets `InstrmtAssignmentMethod`, Tag 1049.
1518    pub fn get_instrmt_assignment_method(&self) -> Result<String, MessageRejectErrorEnum> {
1519        let mut fld = field::InstrmtAssignmentMethodField::new(String::new());
1520        self.message.body.get_field(tag::INSTRMT_ASSIGNMENT_METHOD, &mut fld.0)?;
1521        Ok(fld.value().to_string())
1522    }
1523
1524
1525    /// Returns true if `InstrmtAssignmentMethod` is present, Tag 1049.
1526    pub fn has_instrmt_assignment_method(&self) -> bool {
1527        self.message.body.has(tag::INSTRMT_ASSIGNMENT_METHOD)
1528    }
1529
1530
1531
1532
1533    /// Sets `InterestAccrualDate`, Tag 874.
1534    pub fn set_interest_accrual_date(&mut self, v: String) {
1535        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
1536    }
1537
1538    /// Gets `InterestAccrualDate`, Tag 874.
1539    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
1540        let mut fld = field::InterestAccrualDateField::new(String::new());
1541        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
1542        Ok(fld.value().to_string())
1543    }
1544
1545
1546    /// Returns true if `InterestAccrualDate` is present, Tag 874.
1547    pub fn has_interest_accrual_date(&self) -> bool {
1548        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
1549    }
1550
1551
1552
1553
1554    /// Sets `InterestAtMaturity`, Tag 738.
1555    pub fn set_interest_at_maturity(&mut self, val: Decimal, scale: i32) {
1556        self.message.body.set_field(tag::INTEREST_AT_MATURITY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1557    }
1558
1559    /// Gets `InterestAtMaturity`, Tag 738.
1560    pub fn get_interest_at_maturity(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1561        let mut fld = field::InterestAtMaturityField::new(Decimal::ZERO, 0);
1562        self.message.body.get_field(tag::INTEREST_AT_MATURITY, &mut fld.0)?;
1563        Ok(fld.value())
1564    }
1565
1566
1567    /// Returns true if `InterestAtMaturity` is present, Tag 738.
1568    pub fn has_interest_at_maturity(&self) -> bool {
1569        self.message.body.has(tag::INTEREST_AT_MATURITY)
1570    }
1571
1572
1573
1574
1575    /// Sets `IssueDate`, Tag 225.
1576    pub fn set_issue_date(&mut self, v: String) {
1577        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
1578    }
1579
1580    /// Gets `IssueDate`, Tag 225.
1581    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
1582        let mut fld = field::IssueDateField::new(String::new());
1583        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
1584        Ok(fld.value().to_string())
1585    }
1586
1587
1588    /// Returns true if `IssueDate` is present, Tag 225.
1589    pub fn has_issue_date(&self) -> bool {
1590        self.message.body.has(tag::ISSUE_DATE)
1591    }
1592
1593
1594
1595
1596    /// Sets `Issuer`, Tag 106.
1597    pub fn set_issuer(&mut self, v: String) {
1598        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
1599    }
1600
1601    /// Gets `Issuer`, Tag 106.
1602    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1603        let mut fld = field::IssuerField::new(String::new());
1604        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
1605        Ok(fld.value().to_string())
1606    }
1607
1608
1609    /// Returns true if `Issuer` is present, Tag 106.
1610    pub fn has_issuer(&self) -> bool {
1611        self.message.body.has(tag::ISSUER)
1612    }
1613
1614
1615
1616
1617    /// Sets `LastFragment`, Tag 893.
1618    pub fn set_last_fragment(&mut self, v: bool) {
1619        self.message.body.set_field(tag::LAST_FRAGMENT, fixer::fix_boolean::FIXBoolean::from(v));
1620    }
1621
1622    /// Gets `LastFragment`, Tag 893.
1623    pub fn get_last_fragment(&self) -> Result<bool, MessageRejectErrorEnum> {
1624        let mut fld = field::LastFragmentField::new(false);
1625        self.message.body.get_field(tag::LAST_FRAGMENT, &mut fld.0)?;
1626        Ok(fld.value())
1627    }
1628
1629
1630    /// Returns true if `LastFragment` is present, Tag 893.
1631    pub fn has_last_fragment(&self) -> bool {
1632        self.message.body.has(tag::LAST_FRAGMENT)
1633    }
1634
1635
1636
1637
1638    /// Sets `LastMkt`, Tag 30.
1639    pub fn set_last_mkt(&mut self, v: String) {
1640        self.message.body.set_field(tag::LAST_MKT, FIXString::from(v));
1641    }
1642
1643    /// Gets `LastMkt`, Tag 30.
1644    pub fn get_last_mkt(&self) -> Result<String, MessageRejectErrorEnum> {
1645        let mut fld = field::LastMktField::new(String::new());
1646        self.message.body.get_field(tag::LAST_MKT, &mut fld.0)?;
1647        Ok(fld.value().to_string())
1648    }
1649
1650
1651    /// Returns true if `LastMkt` is present, Tag 30.
1652    pub fn has_last_mkt(&self) -> bool {
1653        self.message.body.has(tag::LAST_MKT)
1654    }
1655
1656
1657
1658
1659    /// Sets `LegalConfirm`, Tag 650.
1660    pub fn set_legal_confirm(&mut self, v: bool) {
1661        self.message.body.set_field(tag::LEGAL_CONFIRM, fixer::fix_boolean::FIXBoolean::from(v));
1662    }
1663
1664    /// Gets `LegalConfirm`, Tag 650.
1665    pub fn get_legal_confirm(&self) -> Result<bool, MessageRejectErrorEnum> {
1666        let mut fld = field::LegalConfirmField::new(false);
1667        self.message.body.get_field(tag::LEGAL_CONFIRM, &mut fld.0)?;
1668        Ok(fld.value())
1669    }
1670
1671
1672    /// Returns true if `LegalConfirm` is present, Tag 650.
1673    pub fn has_legal_confirm(&self) -> bool {
1674        self.message.body.has(tag::LEGAL_CONFIRM)
1675    }
1676
1677
1678
1679
1680    /// Sets `ListMethod`, Tag 1198.
1681    pub fn set_list_method(&mut self, v: isize) {
1682        self.message.body.set_field(tag::LIST_METHOD, fixer::fix_int::FIXInt::from(v));
1683    }
1684
1685    /// Gets `ListMethod`, Tag 1198.
1686    pub fn get_list_method(&self) -> Result<isize, MessageRejectErrorEnum> {
1687        let mut fld = field::ListMethodField::new(0);
1688        self.message.body.get_field(tag::LIST_METHOD, &mut fld.0)?;
1689        Ok(fld.value())
1690    }
1691
1692
1693    /// Returns true if `ListMethod` is present, Tag 1198.
1694    pub fn has_list_method(&self) -> bool {
1695        self.message.body.has(tag::LIST_METHOD)
1696    }
1697
1698
1699
1700
1701    /// Sets `LocaleOfIssue`, Tag 472.
1702    pub fn set_locale_of_issue(&mut self, v: String) {
1703        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
1704    }
1705
1706    /// Gets `LocaleOfIssue`, Tag 472.
1707    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1708        let mut fld = field::LocaleOfIssueField::new(String::new());
1709        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
1710        Ok(fld.value().to_string())
1711    }
1712
1713
1714    /// Returns true if `LocaleOfIssue` is present, Tag 472.
1715    pub fn has_locale_of_issue(&self) -> bool {
1716        self.message.body.has(tag::LOCALE_OF_ISSUE)
1717    }
1718
1719
1720
1721
1722    /// Sets `MarginRatio`, Tag 898.
1723    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
1724        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1725    }
1726
1727    /// Gets `MarginRatio`, Tag 898.
1728    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1729        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
1730        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
1731        Ok(fld.value())
1732    }
1733
1734
1735    /// Returns true if `MarginRatio` is present, Tag 898.
1736    pub fn has_margin_ratio(&self) -> bool {
1737        self.message.body.has(tag::MARGIN_RATIO)
1738    }
1739
1740
1741
1742
1743    /// Sets `MatchType`, Tag 574.
1744    pub fn set_match_type(&mut self, v: String) {
1745        self.message.body.set_field(tag::MATCH_TYPE, FIXString::from(v));
1746    }
1747
1748    /// Gets `MatchType`, Tag 574.
1749    pub fn get_match_type(&self) -> Result<String, MessageRejectErrorEnum> {
1750        let mut fld = field::MatchTypeField::new(String::new());
1751        self.message.body.get_field(tag::MATCH_TYPE, &mut fld.0)?;
1752        Ok(fld.value().to_string())
1753    }
1754
1755
1756    /// Returns true if `MatchType` is present, Tag 574.
1757    pub fn has_match_type(&self) -> bool {
1758        self.message.body.has(tag::MATCH_TYPE)
1759    }
1760
1761
1762
1763
1764    /// Sets `MaturityDate`, Tag 541.
1765    pub fn set_maturity_date(&mut self, v: String) {
1766        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
1767    }
1768
1769    /// Gets `MaturityDate`, Tag 541.
1770    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
1771        let mut fld = field::MaturityDateField::new(String::new());
1772        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
1773        Ok(fld.value().to_string())
1774    }
1775
1776
1777    /// Returns true if `MaturityDate` is present, Tag 541.
1778    pub fn has_maturity_date(&self) -> bool {
1779        self.message.body.has(tag::MATURITY_DATE)
1780    }
1781
1782
1783
1784
1785    /// Sets `MaturityMonthYear`, Tag 200.
1786    pub fn set_maturity_month_year(&mut self, v: String) {
1787        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
1788    }
1789
1790    /// Gets `MaturityMonthYear`, Tag 200.
1791    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
1792        let mut fld = field::MaturityMonthYearField::new(String::new());
1793        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
1794        Ok(fld.value().to_string())
1795    }
1796
1797
1798    /// Returns true if `MaturityMonthYear` is present, Tag 200.
1799    pub fn has_maturity_month_year(&self) -> bool {
1800        self.message.body.has(tag::MATURITY_MONTH_YEAR)
1801    }
1802
1803
1804
1805
1806    /// Sets `MaturityTime`, Tag 1079.
1807    pub fn set_maturity_time(&mut self, v: String) {
1808        self.message.body.set_field(tag::MATURITY_TIME, FIXString::from(v));
1809    }
1810
1811    /// Gets `MaturityTime`, Tag 1079.
1812    pub fn get_maturity_time(&self) -> Result<String, MessageRejectErrorEnum> {
1813        let mut fld = field::MaturityTimeField::new(String::new());
1814        self.message.body.get_field(tag::MATURITY_TIME, &mut fld.0)?;
1815        Ok(fld.value().to_string())
1816    }
1817
1818
1819    /// Returns true if `MaturityTime` is present, Tag 1079.
1820    pub fn has_maturity_time(&self) -> bool {
1821        self.message.body.has(tag::MATURITY_TIME)
1822    }
1823
1824
1825
1826
1827    /// Sets `MessageEventSource`, Tag 1011.
1828    pub fn set_message_event_source(&mut self, v: String) {
1829        self.message.body.set_field(tag::MESSAGE_EVENT_SOURCE, FIXString::from(v));
1830    }
1831
1832    /// Gets `MessageEventSource`, Tag 1011.
1833    pub fn get_message_event_source(&self) -> Result<String, MessageRejectErrorEnum> {
1834        let mut fld = field::MessageEventSourceField::new(String::new());
1835        self.message.body.get_field(tag::MESSAGE_EVENT_SOURCE, &mut fld.0)?;
1836        Ok(fld.value().to_string())
1837    }
1838
1839
1840    /// Returns true if `MessageEventSource` is present, Tag 1011.
1841    pub fn has_message_event_source(&self) -> bool {
1842        self.message.body.has(tag::MESSAGE_EVENT_SOURCE)
1843    }
1844
1845
1846
1847
1848    /// Sets `MinPriceIncrement`, Tag 969.
1849    pub fn set_min_price_increment(&mut self, val: Decimal, scale: i32) {
1850        self.message.body.set_field(tag::MIN_PRICE_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1851    }
1852
1853    /// Gets `MinPriceIncrement`, Tag 969.
1854    pub fn get_min_price_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1855        let mut fld = field::MinPriceIncrementField::new(Decimal::ZERO, 0);
1856        self.message.body.get_field(tag::MIN_PRICE_INCREMENT, &mut fld.0)?;
1857        Ok(fld.value())
1858    }
1859
1860
1861    /// Returns true if `MinPriceIncrement` is present, Tag 969.
1862    pub fn has_min_price_increment(&self) -> bool {
1863        self.message.body.has(tag::MIN_PRICE_INCREMENT)
1864    }
1865
1866
1867
1868
1869    /// Sets `MinPriceIncrementAmount`, Tag 1146.
1870    pub fn set_min_price_increment_amount(&mut self, val: Decimal, scale: i32) {
1871        self.message.body.set_field(tag::MIN_PRICE_INCREMENT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1872    }
1873
1874    /// Gets `MinPriceIncrementAmount`, Tag 1146.
1875    pub fn get_min_price_increment_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1876        let mut fld = field::MinPriceIncrementAmountField::new(Decimal::ZERO, 0);
1877        self.message.body.get_field(tag::MIN_PRICE_INCREMENT_AMOUNT, &mut fld.0)?;
1878        Ok(fld.value())
1879    }
1880
1881
1882    /// Returns true if `MinPriceIncrementAmount` is present, Tag 1146.
1883    pub fn has_min_price_increment_amount(&self) -> bool {
1884        self.message.body.has(tag::MIN_PRICE_INCREMENT_AMOUNT)
1885    }
1886
1887
1888
1889
1890    /// Sets `MultiLegReportingType`, Tag 442.
1891    pub fn set_multi_leg_reporting_type(&mut self, v: String) {
1892        self.message.body.set_field(tag::MULTI_LEG_REPORTING_TYPE, FIXString::from(v));
1893    }
1894
1895    /// Gets `MultiLegReportingType`, Tag 442.
1896    pub fn get_multi_leg_reporting_type(&self) -> Result<String, MessageRejectErrorEnum> {
1897        let mut fld = field::MultiLegReportingTypeField::new(String::new());
1898        self.message.body.get_field(tag::MULTI_LEG_REPORTING_TYPE, &mut fld.0)?;
1899        Ok(fld.value().to_string())
1900    }
1901
1902
1903    /// Returns true if `MultiLegReportingType` is present, Tag 442.
1904    pub fn has_multi_leg_reporting_type(&self) -> bool {
1905        self.message.body.has(tag::MULTI_LEG_REPORTING_TYPE)
1906    }
1907
1908
1909
1910
1911    /// Sets `NTPositionLimit`, Tag 971.
1912    pub fn set_nt_position_limit(&mut self, v: isize) {
1913        self.message.body.set_field(tag::NT_POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1914    }
1915
1916    /// Gets `NTPositionLimit`, Tag 971.
1917    pub fn get_nt_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1918        let mut fld = field::NTPositionLimitField::new(0);
1919        self.message.body.get_field(tag::NT_POSITION_LIMIT, &mut fld.0)?;
1920        Ok(fld.value())
1921    }
1922
1923
1924    /// Returns true if `NTPositionLimit` is present, Tag 971.
1925    pub fn has_nt_position_limit(&self) -> bool {
1926        self.message.body.has(tag::NT_POSITION_LIMIT)
1927    }
1928
1929
1930
1931
1932    /// Sets `NetMoney`, Tag 118.
1933    pub fn set_net_money(&mut self, val: Decimal, scale: i32) {
1934        self.message.body.set_field(tag::NET_MONEY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1935    }
1936
1937    /// Gets `NetMoney`, Tag 118.
1938    pub fn get_net_money(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1939        let mut fld = field::NetMoneyField::new(Decimal::ZERO, 0);
1940        self.message.body.get_field(tag::NET_MONEY, &mut fld.0)?;
1941        Ok(fld.value())
1942    }
1943
1944
1945    /// Returns true if `NetMoney` is present, Tag 118.
1946    pub fn has_net_money(&self) -> bool {
1947        self.message.body.has(tag::NET_MONEY)
1948    }
1949
1950
1951
1952
1953    /// Sets `NoAllocs`, Tag 78.
1954    pub fn set_no_allocs(&mut self, v: isize) {
1955        self.message.body.set_field(tag::NO_ALLOCS, fixer::fix_int::FIXInt::from(v));
1956    }
1957
1958    /// Gets `NoAllocs`, Tag 78.
1959    pub fn get_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum> {
1960        let mut fld = field::NoAllocsField::new(0);
1961        self.message.body.get_field(tag::NO_ALLOCS, &mut fld.0)?;
1962        Ok(fld.value())
1963    }
1964
1965
1966    /// Returns true if `NoAllocs` is present, Tag 78.
1967    pub fn has_no_allocs(&self) -> bool {
1968        self.message.body.has(tag::NO_ALLOCS)
1969    }
1970
1971
1972
1973
1974    /// Sets `NoComplexEvents`, Tag 1483.
1975    pub fn set_no_complex_events(&mut self, v: isize) {
1976        self.message.body.set_field(tag::NO_COMPLEX_EVENTS, fixer::fix_int::FIXInt::from(v));
1977    }
1978
1979    /// Gets `NoComplexEvents`, Tag 1483.
1980    pub fn get_no_complex_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1981        let mut fld = field::NoComplexEventsField::new(0);
1982        self.message.body.get_field(tag::NO_COMPLEX_EVENTS, &mut fld.0)?;
1983        Ok(fld.value())
1984    }
1985
1986
1987    /// Returns true if `NoComplexEvents` is present, Tag 1483.
1988    pub fn has_no_complex_events(&self) -> bool {
1989        self.message.body.has(tag::NO_COMPLEX_EVENTS)
1990    }
1991
1992
1993
1994
1995    /// Sets `NoEvents`, Tag 864.
1996    pub fn set_no_events(&mut self, v: isize) {
1997        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
1998    }
1999
2000    /// Gets `NoEvents`, Tag 864.
2001    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
2002        let mut fld = field::NoEventsField::new(0);
2003        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
2004        Ok(fld.value())
2005    }
2006
2007
2008    /// Returns true if `NoEvents` is present, Tag 864.
2009    pub fn has_no_events(&self) -> bool {
2010        self.message.body.has(tag::NO_EVENTS)
2011    }
2012
2013
2014
2015
2016    /// Sets `NoExecs`, Tag 124.
2017    pub fn set_no_execs(&mut self, v: isize) {
2018        self.message.body.set_field(tag::NO_EXECS, fixer::fix_int::FIXInt::from(v));
2019    }
2020
2021    /// Gets `NoExecs`, Tag 124.
2022    pub fn get_no_execs(&self) -> Result<isize, MessageRejectErrorEnum> {
2023        let mut fld = field::NoExecsField::new(0);
2024        self.message.body.get_field(tag::NO_EXECS, &mut fld.0)?;
2025        Ok(fld.value())
2026    }
2027
2028
2029    /// Returns true if `NoExecs` is present, Tag 124.
2030    pub fn has_no_execs(&self) -> bool {
2031        self.message.body.has(tag::NO_EXECS)
2032    }
2033
2034
2035
2036
2037    /// Sets `NoInstrAttrib`, Tag 870.
2038    pub fn set_no_instr_attrib(&mut self, v: isize) {
2039        self.message.body.set_field(tag::NO_INSTR_ATTRIB, fixer::fix_int::FIXInt::from(v));
2040    }
2041
2042    /// Gets `NoInstrAttrib`, Tag 870.
2043    pub fn get_no_instr_attrib(&self) -> Result<isize, MessageRejectErrorEnum> {
2044        let mut fld = field::NoInstrAttribField::new(0);
2045        self.message.body.get_field(tag::NO_INSTR_ATTRIB, &mut fld.0)?;
2046        Ok(fld.value())
2047    }
2048
2049
2050    /// Returns true if `NoInstrAttrib` is present, Tag 870.
2051    pub fn has_no_instr_attrib(&self) -> bool {
2052        self.message.body.has(tag::NO_INSTR_ATTRIB)
2053    }
2054
2055
2056
2057
2058    /// Sets `NoInstrumentParties`, Tag 1018.
2059    pub fn set_no_instrument_parties(&mut self, v: isize) {
2060        self.message.body.set_field(tag::NO_INSTRUMENT_PARTIES, fixer::fix_int::FIXInt::from(v));
2061    }
2062
2063    /// Gets `NoInstrumentParties`, Tag 1018.
2064    pub fn get_no_instrument_parties(&self) -> Result<isize, MessageRejectErrorEnum> {
2065        let mut fld = field::NoInstrumentPartiesField::new(0);
2066        self.message.body.get_field(tag::NO_INSTRUMENT_PARTIES, &mut fld.0)?;
2067        Ok(fld.value())
2068    }
2069
2070
2071    /// Returns true if `NoInstrumentParties` is present, Tag 1018.
2072    pub fn has_no_instrument_parties(&self) -> bool {
2073        self.message.body.has(tag::NO_INSTRUMENT_PARTIES)
2074    }
2075
2076
2077
2078
2079    /// Sets `NoLegs`, Tag 555.
2080    pub fn set_no_legs(&mut self, v: isize) {
2081        self.message.body.set_field(tag::NO_LEGS, fixer::fix_int::FIXInt::from(v));
2082    }
2083
2084    /// Gets `NoLegs`, Tag 555.
2085    pub fn get_no_legs(&self) -> Result<isize, MessageRejectErrorEnum> {
2086        let mut fld = field::NoLegsField::new(0);
2087        self.message.body.get_field(tag::NO_LEGS, &mut fld.0)?;
2088        Ok(fld.value())
2089    }
2090
2091
2092    /// Returns true if `NoLegs` is present, Tag 555.
2093    pub fn has_no_legs(&self) -> bool {
2094        self.message.body.has(tag::NO_LEGS)
2095    }
2096
2097
2098
2099
2100    /// Sets `NoOrders`, Tag 73.
2101    pub fn set_no_orders(&mut self, v: isize) {
2102        self.message.body.set_field(tag::NO_ORDERS, fixer::fix_int::FIXInt::from(v));
2103    }
2104
2105    /// Gets `NoOrders`, Tag 73.
2106    pub fn get_no_orders(&self) -> Result<isize, MessageRejectErrorEnum> {
2107        let mut fld = field::NoOrdersField::new(0);
2108        self.message.body.get_field(tag::NO_ORDERS, &mut fld.0)?;
2109        Ok(fld.value())
2110    }
2111
2112
2113    /// Returns true if `NoOrders` is present, Tag 73.
2114    pub fn has_no_orders(&self) -> bool {
2115        self.message.body.has(tag::NO_ORDERS)
2116    }
2117
2118
2119
2120
2121    /// Sets `NoPartyIDs`, Tag 453.
2122    pub fn set_no_party_i_ds(&mut self, v: isize) {
2123        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
2124    }
2125
2126    /// Gets `NoPartyIDs`, Tag 453.
2127    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
2128        let mut fld = field::NoPartyIDsField::new(0);
2129        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
2130        Ok(fld.value())
2131    }
2132
2133
2134    /// Returns true if `NoPartyIDs` is present, Tag 453.
2135    pub fn has_no_party_i_ds(&self) -> bool {
2136        self.message.body.has(tag::NO_PARTY_I_DS)
2137    }
2138
2139
2140
2141
2142    /// Sets `NoPosAmt`, Tag 753.
2143    pub fn set_no_pos_amt(&mut self, v: isize) {
2144        self.message.body.set_field(tag::NO_POS_AMT, fixer::fix_int::FIXInt::from(v));
2145    }
2146
2147    /// Gets `NoPosAmt`, Tag 753.
2148    pub fn get_no_pos_amt(&self) -> Result<isize, MessageRejectErrorEnum> {
2149        let mut fld = field::NoPosAmtField::new(0);
2150        self.message.body.get_field(tag::NO_POS_AMT, &mut fld.0)?;
2151        Ok(fld.value())
2152    }
2153
2154
2155    /// Returns true if `NoPosAmt` is present, Tag 753.
2156    pub fn has_no_pos_amt(&self) -> bool {
2157        self.message.body.has(tag::NO_POS_AMT)
2158    }
2159
2160
2161
2162
2163    /// Sets `NoRateSources`, Tag 1445.
2164    pub fn set_no_rate_sources(&mut self, v: isize) {
2165        self.message.body.set_field(tag::NO_RATE_SOURCES, fixer::fix_int::FIXInt::from(v));
2166    }
2167
2168    /// Gets `NoRateSources`, Tag 1445.
2169    pub fn get_no_rate_sources(&self) -> Result<isize, MessageRejectErrorEnum> {
2170        let mut fld = field::NoRateSourcesField::new(0);
2171        self.message.body.get_field(tag::NO_RATE_SOURCES, &mut fld.0)?;
2172        Ok(fld.value())
2173    }
2174
2175
2176    /// Returns true if `NoRateSources` is present, Tag 1445.
2177    pub fn has_no_rate_sources(&self) -> bool {
2178        self.message.body.has(tag::NO_RATE_SOURCES)
2179    }
2180
2181
2182
2183
2184    /// Sets `NoSecurityAltID`, Tag 454.
2185    pub fn set_no_security_alt_id(&mut self, v: isize) {
2186        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
2187    }
2188
2189    /// Gets `NoSecurityAltID`, Tag 454.
2190    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
2191        let mut fld = field::NoSecurityAltIDField::new(0);
2192        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
2193        Ok(fld.value())
2194    }
2195
2196
2197    /// Returns true if `NoSecurityAltID` is present, Tag 454.
2198    pub fn has_no_security_alt_id(&self) -> bool {
2199        self.message.body.has(tag::NO_SECURITY_ALT_ID)
2200    }
2201
2202
2203
2204
2205    /// Sets `NoStipulations`, Tag 232.
2206    pub fn set_no_stipulations(&mut self, v: isize) {
2207        self.message.body.set_field(tag::NO_STIPULATIONS, fixer::fix_int::FIXInt::from(v));
2208    }
2209
2210    /// Gets `NoStipulations`, Tag 232.
2211    pub fn get_no_stipulations(&self) -> Result<isize, MessageRejectErrorEnum> {
2212        let mut fld = field::NoStipulationsField::new(0);
2213        self.message.body.get_field(tag::NO_STIPULATIONS, &mut fld.0)?;
2214        Ok(fld.value())
2215    }
2216
2217
2218    /// Returns true if `NoStipulations` is present, Tag 232.
2219    pub fn has_no_stipulations(&self) -> bool {
2220        self.message.body.has(tag::NO_STIPULATIONS)
2221    }
2222
2223
2224
2225
2226    /// Sets `NoUnderlyings`, Tag 711.
2227    pub fn set_no_underlyings(&mut self, v: isize) {
2228        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
2229    }
2230
2231    /// Gets `NoUnderlyings`, Tag 711.
2232    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
2233        let mut fld = field::NoUnderlyingsField::new(0);
2234        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
2235        Ok(fld.value())
2236    }
2237
2238
2239    /// Returns true if `NoUnderlyings` is present, Tag 711.
2240    pub fn has_no_underlyings(&self) -> bool {
2241        self.message.body.has(tag::NO_UNDERLYINGS)
2242    }
2243
2244
2245
2246
2247    /// Sets `NotionalPercentageOutstanding`, Tag 1451.
2248    pub fn set_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
2249        self.message.body.set_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2250    }
2251
2252    /// Gets `NotionalPercentageOutstanding`, Tag 1451.
2253    pub fn get_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2254        let mut fld = field::NotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
2255        self.message.body.get_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
2256        Ok(fld.value())
2257    }
2258
2259
2260    /// Returns true if `NotionalPercentageOutstanding` is present, Tag 1451.
2261    pub fn has_notional_percentage_outstanding(&self) -> bool {
2262        self.message.body.has(tag::NOTIONAL_PERCENTAGE_OUTSTANDING)
2263    }
2264
2265
2266
2267
2268    /// Sets `NumDaysInterest`, Tag 157.
2269    pub fn set_num_days_interest(&mut self, v: isize) {
2270        self.message.body.set_field(tag::NUM_DAYS_INTEREST, fixer::fix_int::FIXInt::from(v));
2271    }
2272
2273    /// Gets `NumDaysInterest`, Tag 157.
2274    pub fn get_num_days_interest(&self) -> Result<isize, MessageRejectErrorEnum> {
2275        let mut fld = field::NumDaysInterestField::new(0);
2276        self.message.body.get_field(tag::NUM_DAYS_INTEREST, &mut fld.0)?;
2277        Ok(fld.value())
2278    }
2279
2280
2281    /// Returns true if `NumDaysInterest` is present, Tag 157.
2282    pub fn has_num_days_interest(&self) -> bool {
2283        self.message.body.has(tag::NUM_DAYS_INTEREST)
2284    }
2285
2286
2287
2288
2289    /// Sets `OptAttribute`, Tag 206.
2290    pub fn set_opt_attribute(&mut self, v: String) {
2291        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
2292    }
2293
2294    /// Gets `OptAttribute`, Tag 206.
2295    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
2296        let mut fld = field::OptAttributeField::new(String::new());
2297        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
2298        Ok(fld.value().to_string())
2299    }
2300
2301
2302    /// Returns true if `OptAttribute` is present, Tag 206.
2303    pub fn has_opt_attribute(&self) -> bool {
2304        self.message.body.has(tag::OPT_ATTRIBUTE)
2305    }
2306
2307
2308
2309
2310    /// Sets `OptPayoutAmount`, Tag 1195.
2311    pub fn set_opt_payout_amount(&mut self, val: Decimal, scale: i32) {
2312        self.message.body.set_field(tag::OPT_PAYOUT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2313    }
2314
2315    /// Gets `OptPayoutAmount`, Tag 1195.
2316    pub fn get_opt_payout_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2317        let mut fld = field::OptPayoutAmountField::new(Decimal::ZERO, 0);
2318        self.message.body.get_field(tag::OPT_PAYOUT_AMOUNT, &mut fld.0)?;
2319        Ok(fld.value())
2320    }
2321
2322
2323    /// Returns true if `OptPayoutAmount` is present, Tag 1195.
2324    pub fn has_opt_payout_amount(&self) -> bool {
2325        self.message.body.has(tag::OPT_PAYOUT_AMOUNT)
2326    }
2327
2328
2329
2330
2331    /// Sets `OptPayoutType`, Tag 1482.
2332    pub fn set_opt_payout_type(&mut self, v: isize) {
2333        self.message.body.set_field(tag::OPT_PAYOUT_TYPE, fixer::fix_int::FIXInt::from(v));
2334    }
2335
2336    /// Gets `OptPayoutType`, Tag 1482.
2337    pub fn get_opt_payout_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2338        let mut fld = field::OptPayoutTypeField::new(0);
2339        self.message.body.get_field(tag::OPT_PAYOUT_TYPE, &mut fld.0)?;
2340        Ok(fld.value())
2341    }
2342
2343
2344    /// Returns true if `OptPayoutType` is present, Tag 1482.
2345    pub fn has_opt_payout_type(&self) -> bool {
2346        self.message.body.has(tag::OPT_PAYOUT_TYPE)
2347    }
2348
2349
2350
2351
2352    /// Sets `OriginalNotionalPercentageOutstanding`, Tag 1452.
2353    pub fn set_original_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
2354        self.message.body.set_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2355    }
2356
2357    /// Gets `OriginalNotionalPercentageOutstanding`, Tag 1452.
2358    pub fn get_original_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2359        let mut fld = field::OriginalNotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
2360        self.message.body.get_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
2361        Ok(fld.value())
2362    }
2363
2364
2365    /// Returns true if `OriginalNotionalPercentageOutstanding` is present, Tag 1452.
2366    pub fn has_original_notional_percentage_outstanding(&self) -> bool {
2367        self.message.body.has(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING)
2368    }
2369
2370
2371
2372
2373    /// Sets `PctAtRisk`, Tag 869.
2374    pub fn set_pct_at_risk(&mut self, val: Decimal, scale: i32) {
2375        self.message.body.set_field(tag::PCT_AT_RISK, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2376    }
2377
2378    /// Gets `PctAtRisk`, Tag 869.
2379    pub fn get_pct_at_risk(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2380        let mut fld = field::PctAtRiskField::new(Decimal::ZERO, 0);
2381        self.message.body.get_field(tag::PCT_AT_RISK, &mut fld.0)?;
2382        Ok(fld.value())
2383    }
2384
2385
2386    /// Returns true if `PctAtRisk` is present, Tag 869.
2387    pub fn has_pct_at_risk(&self) -> bool {
2388        self.message.body.has(tag::PCT_AT_RISK)
2389    }
2390
2391
2392
2393
2394    /// Sets `Pool`, Tag 691.
2395    pub fn set_pool(&mut self, v: String) {
2396        self.message.body.set_field(tag::POOL, FIXString::from(v));
2397    }
2398
2399    /// Gets `Pool`, Tag 691.
2400    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
2401        let mut fld = field::PoolField::new(String::new());
2402        self.message.body.get_field(tag::POOL, &mut fld.0)?;
2403        Ok(fld.value().to_string())
2404    }
2405
2406
2407    /// Returns true if `Pool` is present, Tag 691.
2408    pub fn has_pool(&self) -> bool {
2409        self.message.body.has(tag::POOL)
2410    }
2411
2412
2413
2414
2415    /// Sets `PositionEffect`, Tag 77.
2416    pub fn set_position_effect(&mut self, v: String) {
2417        self.message.body.set_field(tag::POSITION_EFFECT, FIXString::from(v));
2418    }
2419
2420    /// Gets `PositionEffect`, Tag 77.
2421    pub fn get_position_effect(&self) -> Result<String, MessageRejectErrorEnum> {
2422        let mut fld = field::PositionEffectField::new(String::new());
2423        self.message.body.get_field(tag::POSITION_EFFECT, &mut fld.0)?;
2424        Ok(fld.value().to_string())
2425    }
2426
2427
2428    /// Returns true if `PositionEffect` is present, Tag 77.
2429    pub fn has_position_effect(&self) -> bool {
2430        self.message.body.has(tag::POSITION_EFFECT)
2431    }
2432
2433
2434
2435
2436    /// Sets `PositionLimit`, Tag 970.
2437    pub fn set_position_limit(&mut self, v: isize) {
2438        self.message.body.set_field(tag::POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
2439    }
2440
2441    /// Gets `PositionLimit`, Tag 970.
2442    pub fn get_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
2443        let mut fld = field::PositionLimitField::new(0);
2444        self.message.body.get_field(tag::POSITION_LIMIT, &mut fld.0)?;
2445        Ok(fld.value())
2446    }
2447
2448
2449    /// Returns true if `PositionLimit` is present, Tag 970.
2450    pub fn has_position_limit(&self) -> bool {
2451        self.message.body.has(tag::POSITION_LIMIT)
2452    }
2453
2454
2455
2456
2457    /// Sets `PreviouslyReported`, Tag 570.
2458    pub fn set_previously_reported(&mut self, v: bool) {
2459        self.message.body.set_field(tag::PREVIOUSLY_REPORTED, fixer::fix_boolean::FIXBoolean::from(v));
2460    }
2461
2462    /// Gets `PreviouslyReported`, Tag 570.
2463    pub fn get_previously_reported(&self) -> Result<bool, MessageRejectErrorEnum> {
2464        let mut fld = field::PreviouslyReportedField::new(false);
2465        self.message.body.get_field(tag::PREVIOUSLY_REPORTED, &mut fld.0)?;
2466        Ok(fld.value())
2467    }
2468
2469
2470    /// Returns true if `PreviouslyReported` is present, Tag 570.
2471    pub fn has_previously_reported(&self) -> bool {
2472        self.message.body.has(tag::PREVIOUSLY_REPORTED)
2473    }
2474
2475
2476
2477
2478    /// Sets `PriceQuoteMethod`, Tag 1196.
2479    pub fn set_price_quote_method(&mut self, v: String) {
2480        self.message.body.set_field(tag::PRICE_QUOTE_METHOD, FIXString::from(v));
2481    }
2482
2483    /// Gets `PriceQuoteMethod`, Tag 1196.
2484    pub fn get_price_quote_method(&self) -> Result<String, MessageRejectErrorEnum> {
2485        let mut fld = field::PriceQuoteMethodField::new(String::new());
2486        self.message.body.get_field(tag::PRICE_QUOTE_METHOD, &mut fld.0)?;
2487        Ok(fld.value().to_string())
2488    }
2489
2490
2491    /// Returns true if `PriceQuoteMethod` is present, Tag 1196.
2492    pub fn has_price_quote_method(&self) -> bool {
2493        self.message.body.has(tag::PRICE_QUOTE_METHOD)
2494    }
2495
2496
2497
2498
2499    /// Sets `PriceType`, Tag 423.
2500    pub fn set_price_type(&mut self, v: isize) {
2501        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
2502    }
2503
2504    /// Gets `PriceType`, Tag 423.
2505    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2506        let mut fld = field::PriceTypeField::new(0);
2507        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
2508        Ok(fld.value())
2509    }
2510
2511
2512    /// Returns true if `PriceType` is present, Tag 423.
2513    pub fn has_price_type(&self) -> bool {
2514        self.message.body.has(tag::PRICE_TYPE)
2515    }
2516
2517
2518
2519
2520    /// Sets `PriceUnitOfMeasure`, Tag 1191.
2521    pub fn set_price_unit_of_measure(&mut self, v: String) {
2522        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE, FIXString::from(v));
2523    }
2524
2525    /// Gets `PriceUnitOfMeasure`, Tag 1191.
2526    pub fn get_price_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
2527        let mut fld = field::PriceUnitOfMeasureField::new(String::new());
2528        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE, &mut fld.0)?;
2529        Ok(fld.value().to_string())
2530    }
2531
2532
2533    /// Returns true if `PriceUnitOfMeasure` is present, Tag 1191.
2534    pub fn has_price_unit_of_measure(&self) -> bool {
2535        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE)
2536    }
2537
2538
2539
2540
2541    /// Sets `PriceUnitOfMeasureQty`, Tag 1192.
2542    pub fn set_price_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
2543        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2544    }
2545
2546    /// Gets `PriceUnitOfMeasureQty`, Tag 1192.
2547    pub fn get_price_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2548        let mut fld = field::PriceUnitOfMeasureQtyField::new(Decimal::ZERO, 0);
2549        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE_QTY, &mut fld.0)?;
2550        Ok(fld.value())
2551    }
2552
2553
2554    /// Returns true if `PriceUnitOfMeasureQty` is present, Tag 1192.
2555    pub fn has_price_unit_of_measure_qty(&self) -> bool {
2556        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE_QTY)
2557    }
2558
2559
2560
2561
2562    /// Sets `Product`, Tag 460.
2563    pub fn set_product(&mut self, v: isize) {
2564        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
2565    }
2566
2567    /// Gets `Product`, Tag 460.
2568    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
2569        let mut fld = field::ProductField::new(0);
2570        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
2571        Ok(fld.value())
2572    }
2573
2574
2575    /// Returns true if `Product` is present, Tag 460.
2576    pub fn has_product(&self) -> bool {
2577        self.message.body.has(tag::PRODUCT)
2578    }
2579
2580
2581
2582
2583    /// Sets `ProductComplex`, Tag 1227.
2584    pub fn set_product_complex(&mut self, v: String) {
2585        self.message.body.set_field(tag::PRODUCT_COMPLEX, FIXString::from(v));
2586    }
2587
2588    /// Gets `ProductComplex`, Tag 1227.
2589    pub fn get_product_complex(&self) -> Result<String, MessageRejectErrorEnum> {
2590        let mut fld = field::ProductComplexField::new(String::new());
2591        self.message.body.get_field(tag::PRODUCT_COMPLEX, &mut fld.0)?;
2592        Ok(fld.value().to_string())
2593    }
2594
2595
2596    /// Returns true if `ProductComplex` is present, Tag 1227.
2597    pub fn has_product_complex(&self) -> bool {
2598        self.message.body.has(tag::PRODUCT_COMPLEX)
2599    }
2600
2601
2602
2603
2604    /// Sets `PutOrCall`, Tag 201.
2605    pub fn set_put_or_call(&mut self, v: isize) {
2606        self.message.body.set_field(tag::PUT_OR_CALL, fixer::fix_int::FIXInt::from(v));
2607    }
2608
2609    /// Gets `PutOrCall`, Tag 201.
2610    pub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum> {
2611        let mut fld = field::PutOrCallField::new(0);
2612        self.message.body.get_field(tag::PUT_OR_CALL, &mut fld.0)?;
2613        Ok(fld.value())
2614    }
2615
2616
2617    /// Returns true if `PutOrCall` is present, Tag 201.
2618    pub fn has_put_or_call(&self) -> bool {
2619        self.message.body.has(tag::PUT_OR_CALL)
2620    }
2621
2622
2623
2624
2625    /// Sets `QtyType`, Tag 854.
2626    pub fn set_qty_type(&mut self, v: isize) {
2627        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
2628    }
2629
2630    /// Gets `QtyType`, Tag 854.
2631    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2632        let mut fld = field::QtyTypeField::new(0);
2633        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
2634        Ok(fld.value())
2635    }
2636
2637
2638    /// Returns true if `QtyType` is present, Tag 854.
2639    pub fn has_qty_type(&self) -> bool {
2640        self.message.body.has(tag::QTY_TYPE)
2641    }
2642
2643
2644
2645
2646    /// Sets `Quantity`, Tag 53.
2647    pub fn set_quantity(&mut self, val: Decimal, scale: i32) {
2648        self.message.body.set_field(tag::QUANTITY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2649    }
2650
2651    /// Gets `Quantity`, Tag 53.
2652    pub fn get_quantity(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2653        let mut fld = field::QuantityField::new(Decimal::ZERO, 0);
2654        self.message.body.get_field(tag::QUANTITY, &mut fld.0)?;
2655        Ok(fld.value())
2656    }
2657
2658
2659    /// Returns true if `Quantity` is present, Tag 53.
2660    pub fn has_quantity(&self) -> bool {
2661        self.message.body.has(tag::QUANTITY)
2662    }
2663
2664
2665
2666
2667    /// Sets `RedemptionDate`, Tag 240.
2668    pub fn set_redemption_date(&mut self, v: String) {
2669        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
2670    }
2671
2672    /// Gets `RedemptionDate`, Tag 240.
2673    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
2674        let mut fld = field::RedemptionDateField::new(String::new());
2675        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
2676        Ok(fld.value().to_string())
2677    }
2678
2679
2680    /// Returns true if `RedemptionDate` is present, Tag 240.
2681    pub fn has_redemption_date(&self) -> bool {
2682        self.message.body.has(tag::REDEMPTION_DATE)
2683    }
2684
2685
2686
2687
2688    /// Sets `RefAllocID`, Tag 72.
2689    pub fn set_ref_alloc_id(&mut self, v: String) {
2690        self.message.body.set_field(tag::REF_ALLOC_ID, FIXString::from(v));
2691    }
2692
2693    /// Gets `RefAllocID`, Tag 72.
2694    pub fn get_ref_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
2695        let mut fld = field::RefAllocIDField::new(String::new());
2696        self.message.body.get_field(tag::REF_ALLOC_ID, &mut fld.0)?;
2697        Ok(fld.value().to_string())
2698    }
2699
2700
2701    /// Returns true if `RefAllocID` is present, Tag 72.
2702    pub fn has_ref_alloc_id(&self) -> bool {
2703        self.message.body.has(tag::REF_ALLOC_ID)
2704    }
2705
2706
2707
2708
2709    /// Sets `RepoCollateralSecurityType`, Tag 239.
2710    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
2711        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
2712    }
2713
2714    /// Gets `RepoCollateralSecurityType`, Tag 239.
2715    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2716        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
2717        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
2718        Ok(fld.value())
2719    }
2720
2721
2722    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
2723    pub fn has_repo_collateral_security_type(&self) -> bool {
2724        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
2725    }
2726
2727
2728
2729
2730    /// Sets `RepurchaseRate`, Tag 227.
2731    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
2732        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2733    }
2734
2735    /// Gets `RepurchaseRate`, Tag 227.
2736    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2737        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
2738        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
2739        Ok(fld.value())
2740    }
2741
2742
2743    /// Returns true if `RepurchaseRate` is present, Tag 227.
2744    pub fn has_repurchase_rate(&self) -> bool {
2745        self.message.body.has(tag::REPURCHASE_RATE)
2746    }
2747
2748
2749
2750
2751    /// Sets `RepurchaseTerm`, Tag 226.
2752    pub fn set_repurchase_term(&mut self, v: isize) {
2753        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
2754    }
2755
2756    /// Gets `RepurchaseTerm`, Tag 226.
2757    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
2758        let mut fld = field::RepurchaseTermField::new(0);
2759        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
2760        Ok(fld.value())
2761    }
2762
2763
2764    /// Returns true if `RepurchaseTerm` is present, Tag 226.
2765    pub fn has_repurchase_term(&self) -> bool {
2766        self.message.body.has(tag::REPURCHASE_TERM)
2767    }
2768
2769
2770
2771
2772    /// Sets `RestructuringType`, Tag 1449.
2773    pub fn set_restructuring_type(&mut self, v: String) {
2774        self.message.body.set_field(tag::RESTRUCTURING_TYPE, FIXString::from(v));
2775    }
2776
2777    /// Gets `RestructuringType`, Tag 1449.
2778    pub fn get_restructuring_type(&self) -> Result<String, MessageRejectErrorEnum> {
2779        let mut fld = field::RestructuringTypeField::new(String::new());
2780        self.message.body.get_field(tag::RESTRUCTURING_TYPE, &mut fld.0)?;
2781        Ok(fld.value().to_string())
2782    }
2783
2784
2785    /// Returns true if `RestructuringType` is present, Tag 1449.
2786    pub fn has_restructuring_type(&self) -> bool {
2787        self.message.body.has(tag::RESTRUCTURING_TYPE)
2788    }
2789
2790
2791
2792
2793    /// Sets `ReversalIndicator`, Tag 700.
2794    pub fn set_reversal_indicator(&mut self, v: bool) {
2795        self.message.body.set_field(tag::REVERSAL_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
2796    }
2797
2798    /// Gets `ReversalIndicator`, Tag 700.
2799    pub fn get_reversal_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
2800        let mut fld = field::ReversalIndicatorField::new(false);
2801        self.message.body.get_field(tag::REVERSAL_INDICATOR, &mut fld.0)?;
2802        Ok(fld.value())
2803    }
2804
2805
2806    /// Returns true if `ReversalIndicator` is present, Tag 700.
2807    pub fn has_reversal_indicator(&self) -> bool {
2808        self.message.body.has(tag::REVERSAL_INDICATOR)
2809    }
2810
2811
2812
2813
2814    /// Sets `RndPx`, Tag 991.
2815    pub fn set_rnd_px(&mut self, val: Decimal, scale: i32) {
2816        self.message.body.set_field(tag::RND_PX, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2817    }
2818
2819    /// Gets `RndPx`, Tag 991.
2820    pub fn get_rnd_px(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2821        let mut fld = field::RndPxField::new(Decimal::ZERO, 0);
2822        self.message.body.get_field(tag::RND_PX, &mut fld.0)?;
2823        Ok(fld.value())
2824    }
2825
2826
2827    /// Returns true if `RndPx` is present, Tag 991.
2828    pub fn has_rnd_px(&self) -> bool {
2829        self.message.body.has(tag::RND_PX)
2830    }
2831
2832
2833
2834
2835    /// Sets `SecondaryAllocID`, Tag 793.
2836    pub fn set_secondary_alloc_id(&mut self, v: String) {
2837        self.message.body.set_field(tag::SECONDARY_ALLOC_ID, FIXString::from(v));
2838    }
2839
2840    /// Gets `SecondaryAllocID`, Tag 793.
2841    pub fn get_secondary_alloc_id(&self) -> Result<String, MessageRejectErrorEnum> {
2842        let mut fld = field::SecondaryAllocIDField::new(String::new());
2843        self.message.body.get_field(tag::SECONDARY_ALLOC_ID, &mut fld.0)?;
2844        Ok(fld.value().to_string())
2845    }
2846
2847
2848    /// Returns true if `SecondaryAllocID` is present, Tag 793.
2849    pub fn has_secondary_alloc_id(&self) -> bool {
2850        self.message.body.has(tag::SECONDARY_ALLOC_ID)
2851    }
2852
2853
2854
2855
2856    /// Sets `SecurityDesc`, Tag 107.
2857    pub fn set_security_desc(&mut self, v: String) {
2858        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
2859    }
2860
2861    /// Gets `SecurityDesc`, Tag 107.
2862    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
2863        let mut fld = field::SecurityDescField::new(String::new());
2864        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
2865        Ok(fld.value().to_string())
2866    }
2867
2868
2869    /// Returns true if `SecurityDesc` is present, Tag 107.
2870    pub fn has_security_desc(&self) -> bool {
2871        self.message.body.has(tag::SECURITY_DESC)
2872    }
2873
2874
2875
2876
2877    /// Sets `SecurityExchange`, Tag 207.
2878    pub fn set_security_exchange(&mut self, v: String) {
2879        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
2880    }
2881
2882    /// Gets `SecurityExchange`, Tag 207.
2883    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
2884        let mut fld = field::SecurityExchangeField::new(String::new());
2885        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
2886        Ok(fld.value().to_string())
2887    }
2888
2889
2890    /// Returns true if `SecurityExchange` is present, Tag 207.
2891    pub fn has_security_exchange(&self) -> bool {
2892        self.message.body.has(tag::SECURITY_EXCHANGE)
2893    }
2894
2895
2896
2897
2898    /// Sets `SecurityGroup`, Tag 1151.
2899    pub fn set_security_group(&mut self, v: String) {
2900        self.message.body.set_field(tag::SECURITY_GROUP, FIXString::from(v));
2901    }
2902
2903    /// Gets `SecurityGroup`, Tag 1151.
2904    pub fn get_security_group(&self) -> Result<String, MessageRejectErrorEnum> {
2905        let mut fld = field::SecurityGroupField::new(String::new());
2906        self.message.body.get_field(tag::SECURITY_GROUP, &mut fld.0)?;
2907        Ok(fld.value().to_string())
2908    }
2909
2910
2911    /// Returns true if `SecurityGroup` is present, Tag 1151.
2912    pub fn has_security_group(&self) -> bool {
2913        self.message.body.has(tag::SECURITY_GROUP)
2914    }
2915
2916
2917
2918
2919    /// Sets `SecurityID`, Tag 48.
2920    pub fn set_security_id(&mut self, v: String) {
2921        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
2922    }
2923
2924    /// Gets `SecurityID`, Tag 48.
2925    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
2926        let mut fld = field::SecurityIDField::new(String::new());
2927        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
2928        Ok(fld.value().to_string())
2929    }
2930
2931
2932    /// Returns true if `SecurityID` is present, Tag 48.
2933    pub fn has_security_id(&self) -> bool {
2934        self.message.body.has(tag::SECURITY_ID)
2935    }
2936
2937
2938
2939
2940    /// Sets `SecurityIDSource`, Tag 22.
2941    pub fn set_security_id_source(&mut self, v: String) {
2942        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
2943    }
2944
2945    /// Gets `SecurityIDSource`, Tag 22.
2946    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
2947        let mut fld = field::SecurityIDSourceField::new(String::new());
2948        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
2949        Ok(fld.value().to_string())
2950    }
2951
2952
2953    /// Returns true if `SecurityIDSource` is present, Tag 22.
2954    pub fn has_security_id_source(&self) -> bool {
2955        self.message.body.has(tag::SECURITY_ID_SOURCE)
2956    }
2957
2958
2959
2960
2961    /// Sets `SecurityStatus`, Tag 965.
2962    pub fn set_security_status(&mut self, v: String) {
2963        self.message.body.set_field(tag::SECURITY_STATUS, FIXString::from(v));
2964    }
2965
2966    /// Gets `SecurityStatus`, Tag 965.
2967    pub fn get_security_status(&self) -> Result<String, MessageRejectErrorEnum> {
2968        let mut fld = field::SecurityStatusField::new(String::new());
2969        self.message.body.get_field(tag::SECURITY_STATUS, &mut fld.0)?;
2970        Ok(fld.value().to_string())
2971    }
2972
2973
2974    /// Returns true if `SecurityStatus` is present, Tag 965.
2975    pub fn has_security_status(&self) -> bool {
2976        self.message.body.has(tag::SECURITY_STATUS)
2977    }
2978
2979
2980
2981
2982    /// Sets `SecuritySubType`, Tag 762.
2983    pub fn set_security_sub_type(&mut self, v: String) {
2984        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
2985    }
2986
2987    /// Gets `SecuritySubType`, Tag 762.
2988    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
2989        let mut fld = field::SecuritySubTypeField::new(String::new());
2990        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
2991        Ok(fld.value().to_string())
2992    }
2993
2994
2995    /// Returns true if `SecuritySubType` is present, Tag 762.
2996    pub fn has_security_sub_type(&self) -> bool {
2997        self.message.body.has(tag::SECURITY_SUB_TYPE)
2998    }
2999
3000
3001
3002
3003    /// Sets `SecurityType`, Tag 167.
3004    pub fn set_security_type(&mut self, v: String) {
3005        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
3006    }
3007
3008    /// Gets `SecurityType`, Tag 167.
3009    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
3010        let mut fld = field::SecurityTypeField::new(String::new());
3011        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
3012        Ok(fld.value().to_string())
3013    }
3014
3015
3016    /// Returns true if `SecurityType` is present, Tag 167.
3017    pub fn has_security_type(&self) -> bool {
3018        self.message.body.has(tag::SECURITY_TYPE)
3019    }
3020
3021
3022
3023
3024    /// Sets `SecurityXML`, Tag 1185.
3025    pub fn set_security_xml(&mut self, v: String) {
3026        self.message.body.set_field(tag::SECURITY_XML, FIXString::from(v));
3027    }
3028
3029    /// Gets `SecurityXML`, Tag 1185.
3030    pub fn get_security_xml(&self) -> Result<String, MessageRejectErrorEnum> {
3031        let mut fld = field::SecurityXMLField::new(String::new());
3032        self.message.body.get_field(tag::SECURITY_XML, &mut fld.0)?;
3033        Ok(fld.value().to_string())
3034    }
3035
3036
3037    /// Returns true if `SecurityXML` is present, Tag 1185.
3038    pub fn has_security_xml(&self) -> bool {
3039        self.message.body.has(tag::SECURITY_XML)
3040    }
3041
3042
3043
3044
3045    /// Sets `SecurityXMLLen`, Tag 1184.
3046    pub fn set_security_xml_len(&mut self, v: isize) {
3047        self.message.body.set_field(tag::SECURITY_XML_LEN, fixer::fix_int::FIXInt::from(v));
3048    }
3049
3050    /// Gets `SecurityXMLLen`, Tag 1184.
3051    pub fn get_security_xml_len(&self) -> Result<isize, MessageRejectErrorEnum> {
3052        let mut fld = field::SecurityXMLLenField::new(0);
3053        self.message.body.get_field(tag::SECURITY_XML_LEN, &mut fld.0)?;
3054        Ok(fld.value())
3055    }
3056
3057
3058    /// Returns true if `SecurityXMLLen` is present, Tag 1184.
3059    pub fn has_security_xml_len(&self) -> bool {
3060        self.message.body.has(tag::SECURITY_XML_LEN)
3061    }
3062
3063
3064
3065
3066    /// Sets `SecurityXMLSchema`, Tag 1186.
3067    pub fn set_security_xml_schema(&mut self, v: String) {
3068        self.message.body.set_field(tag::SECURITY_XML_SCHEMA, FIXString::from(v));
3069    }
3070
3071    /// Gets `SecurityXMLSchema`, Tag 1186.
3072    pub fn get_security_xml_schema(&self) -> Result<String, MessageRejectErrorEnum> {
3073        let mut fld = field::SecurityXMLSchemaField::new(String::new());
3074        self.message.body.get_field(tag::SECURITY_XML_SCHEMA, &mut fld.0)?;
3075        Ok(fld.value().to_string())
3076    }
3077
3078
3079    /// Returns true if `SecurityXMLSchema` is present, Tag 1186.
3080    pub fn has_security_xml_schema(&self) -> bool {
3081        self.message.body.has(tag::SECURITY_XML_SCHEMA)
3082    }
3083
3084
3085
3086
3087    /// Sets `Seniority`, Tag 1450.
3088    pub fn set_seniority(&mut self, v: String) {
3089        self.message.body.set_field(tag::SENIORITY, FIXString::from(v));
3090    }
3091
3092    /// Gets `Seniority`, Tag 1450.
3093    pub fn get_seniority(&self) -> Result<String, MessageRejectErrorEnum> {
3094        let mut fld = field::SeniorityField::new(String::new());
3095        self.message.body.get_field(tag::SENIORITY, &mut fld.0)?;
3096        Ok(fld.value().to_string())
3097    }
3098
3099
3100    /// Returns true if `Seniority` is present, Tag 1450.
3101    pub fn has_seniority(&self) -> bool {
3102        self.message.body.has(tag::SENIORITY)
3103    }
3104
3105
3106
3107
3108    /// Sets `SettlDate`, Tag 64.
3109    pub fn set_settl_date(&mut self, v: String) {
3110        self.message.body.set_field(tag::SETTL_DATE, FIXString::from(v));
3111    }
3112
3113    /// Gets `SettlDate`, Tag 64.
3114    pub fn get_settl_date(&self) -> Result<String, MessageRejectErrorEnum> {
3115        let mut fld = field::SettlDateField::new(String::new());
3116        self.message.body.get_field(tag::SETTL_DATE, &mut fld.0)?;
3117        Ok(fld.value().to_string())
3118    }
3119
3120
3121    /// Returns true if `SettlDate` is present, Tag 64.
3122    pub fn has_settl_date(&self) -> bool {
3123        self.message.body.has(tag::SETTL_DATE)
3124    }
3125
3126
3127
3128
3129    /// Sets `SettlMethod`, Tag 1193.
3130    pub fn set_settl_method(&mut self, v: String) {
3131        self.message.body.set_field(tag::SETTL_METHOD, FIXString::from(v));
3132    }
3133
3134    /// Gets `SettlMethod`, Tag 1193.
3135    pub fn get_settl_method(&self) -> Result<String, MessageRejectErrorEnum> {
3136        let mut fld = field::SettlMethodField::new(String::new());
3137        self.message.body.get_field(tag::SETTL_METHOD, &mut fld.0)?;
3138        Ok(fld.value().to_string())
3139    }
3140
3141
3142    /// Returns true if `SettlMethod` is present, Tag 1193.
3143    pub fn has_settl_method(&self) -> bool {
3144        self.message.body.has(tag::SETTL_METHOD)
3145    }
3146
3147
3148
3149
3150    /// Sets `SettlType`, Tag 63.
3151    pub fn set_settl_type(&mut self, v: String) {
3152        self.message.body.set_field(tag::SETTL_TYPE, FIXString::from(v));
3153    }
3154
3155    /// Gets `SettlType`, Tag 63.
3156    pub fn get_settl_type(&self) -> Result<String, MessageRejectErrorEnum> {
3157        let mut fld = field::SettlTypeField::new(String::new());
3158        self.message.body.get_field(tag::SETTL_TYPE, &mut fld.0)?;
3159        Ok(fld.value().to_string())
3160    }
3161
3162
3163    /// Returns true if `SettlType` is present, Tag 63.
3164    pub fn has_settl_type(&self) -> bool {
3165        self.message.body.has(tag::SETTL_TYPE)
3166    }
3167
3168
3169
3170
3171    /// Sets `SettleOnOpenFlag`, Tag 966.
3172    pub fn set_settle_on_open_flag(&mut self, v: String) {
3173        self.message.body.set_field(tag::SETTLE_ON_OPEN_FLAG, FIXString::from(v));
3174    }
3175
3176    /// Gets `SettleOnOpenFlag`, Tag 966.
3177    pub fn get_settle_on_open_flag(&self) -> Result<String, MessageRejectErrorEnum> {
3178        let mut fld = field::SettleOnOpenFlagField::new(String::new());
3179        self.message.body.get_field(tag::SETTLE_ON_OPEN_FLAG, &mut fld.0)?;
3180        Ok(fld.value().to_string())
3181    }
3182
3183
3184    /// Returns true if `SettleOnOpenFlag` is present, Tag 966.
3185    pub fn has_settle_on_open_flag(&self) -> bool {
3186        self.message.body.has(tag::SETTLE_ON_OPEN_FLAG)
3187    }
3188
3189
3190
3191
3192    /// Sets `Side`, Tag 54.
3193    pub fn set_side(&mut self, v: String) {
3194        self.message.body.set_field(tag::SIDE, FIXString::from(v));
3195    }
3196
3197    /// Gets `Side`, Tag 54.
3198    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
3199        let mut fld = field::SideField::new(String::new());
3200        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
3201        Ok(fld.value().to_string())
3202    }
3203
3204
3205    /// Returns true if `Side` is present, Tag 54.
3206    pub fn has_side(&self) -> bool {
3207        self.message.body.has(tag::SIDE)
3208    }
3209
3210
3211
3212
3213    /// Sets `Spread`, Tag 218.
3214    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
3215        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3216    }
3217
3218    /// Gets `Spread`, Tag 218.
3219    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3220        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
3221        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
3222        Ok(fld.value())
3223    }
3224
3225
3226    /// Returns true if `Spread` is present, Tag 218.
3227    pub fn has_spread(&self) -> bool {
3228        self.message.body.has(tag::SPREAD)
3229    }
3230
3231
3232
3233
3234    /// Sets `StartCash`, Tag 921.
3235    pub fn set_start_cash(&mut self, val: Decimal, scale: i32) {
3236        self.message.body.set_field(tag::START_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3237    }
3238
3239    /// Gets `StartCash`, Tag 921.
3240    pub fn get_start_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3241        let mut fld = field::StartCashField::new(Decimal::ZERO, 0);
3242        self.message.body.get_field(tag::START_CASH, &mut fld.0)?;
3243        Ok(fld.value())
3244    }
3245
3246
3247    /// Returns true if `StartCash` is present, Tag 921.
3248    pub fn has_start_cash(&self) -> bool {
3249        self.message.body.has(tag::START_CASH)
3250    }
3251
3252
3253
3254
3255    /// Sets `StartDate`, Tag 916.
3256    pub fn set_start_date(&mut self, v: String) {
3257        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
3258    }
3259
3260    /// Gets `StartDate`, Tag 916.
3261    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
3262        let mut fld = field::StartDateField::new(String::new());
3263        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
3264        Ok(fld.value().to_string())
3265    }
3266
3267
3268    /// Returns true if `StartDate` is present, Tag 916.
3269    pub fn has_start_date(&self) -> bool {
3270        self.message.body.has(tag::START_DATE)
3271    }
3272
3273
3274
3275
3276    /// Sets `StateOrProvinceOfIssue`, Tag 471.
3277    pub fn set_state_or_province_of_issue(&mut self, v: String) {
3278        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
3279    }
3280
3281    /// Gets `StateOrProvinceOfIssue`, Tag 471.
3282    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
3283        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
3284        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
3285        Ok(fld.value().to_string())
3286    }
3287
3288
3289    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
3290    pub fn has_state_or_province_of_issue(&self) -> bool {
3291        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
3292    }
3293
3294
3295
3296
3297    /// Sets `StrikeCurrency`, Tag 947.
3298    pub fn set_strike_currency(&mut self, v: String) {
3299        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
3300    }
3301
3302    /// Gets `StrikeCurrency`, Tag 947.
3303    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
3304        let mut fld = field::StrikeCurrencyField::new(String::new());
3305        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
3306        Ok(fld.value().to_string())
3307    }
3308
3309
3310    /// Returns true if `StrikeCurrency` is present, Tag 947.
3311    pub fn has_strike_currency(&self) -> bool {
3312        self.message.body.has(tag::STRIKE_CURRENCY)
3313    }
3314
3315
3316
3317
3318    /// Sets `StrikeMultiplier`, Tag 967.
3319    pub fn set_strike_multiplier(&mut self, val: Decimal, scale: i32) {
3320        self.message.body.set_field(tag::STRIKE_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3321    }
3322
3323    /// Gets `StrikeMultiplier`, Tag 967.
3324    pub fn get_strike_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3325        let mut fld = field::StrikeMultiplierField::new(Decimal::ZERO, 0);
3326        self.message.body.get_field(tag::STRIKE_MULTIPLIER, &mut fld.0)?;
3327        Ok(fld.value())
3328    }
3329
3330
3331    /// Returns true if `StrikeMultiplier` is present, Tag 967.
3332    pub fn has_strike_multiplier(&self) -> bool {
3333        self.message.body.has(tag::STRIKE_MULTIPLIER)
3334    }
3335
3336
3337
3338
3339    /// Sets `StrikePrice`, Tag 202.
3340    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
3341        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3342    }
3343
3344    /// Gets `StrikePrice`, Tag 202.
3345    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3346        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
3347        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
3348        Ok(fld.value())
3349    }
3350
3351
3352    /// Returns true if `StrikePrice` is present, Tag 202.
3353    pub fn has_strike_price(&self) -> bool {
3354        self.message.body.has(tag::STRIKE_PRICE)
3355    }
3356
3357
3358
3359
3360    /// Sets `StrikePriceBoundaryMethod`, Tag 1479.
3361    pub fn set_strike_price_boundary_method(&mut self, v: isize) {
3362        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, fixer::fix_int::FIXInt::from(v));
3363    }
3364
3365    /// Gets `StrikePriceBoundaryMethod`, Tag 1479.
3366    pub fn get_strike_price_boundary_method(&self) -> Result<isize, MessageRejectErrorEnum> {
3367        let mut fld = field::StrikePriceBoundaryMethodField::new(0);
3368        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, &mut fld.0)?;
3369        Ok(fld.value())
3370    }
3371
3372
3373    /// Returns true if `StrikePriceBoundaryMethod` is present, Tag 1479.
3374    pub fn has_strike_price_boundary_method(&self) -> bool {
3375        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_METHOD)
3376    }
3377
3378
3379
3380
3381    /// Sets `StrikePriceBoundaryPrecision`, Tag 1480.
3382    pub fn set_strike_price_boundary_precision(&mut self, val: Decimal, scale: i32) {
3383        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3384    }
3385
3386    /// Gets `StrikePriceBoundaryPrecision`, Tag 1480.
3387    pub fn get_strike_price_boundary_precision(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3388        let mut fld = field::StrikePriceBoundaryPrecisionField::new(Decimal::ZERO, 0);
3389        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, &mut fld.0)?;
3390        Ok(fld.value())
3391    }
3392
3393
3394    /// Returns true if `StrikePriceBoundaryPrecision` is present, Tag 1480.
3395    pub fn has_strike_price_boundary_precision(&self) -> bool {
3396        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_PRECISION)
3397    }
3398
3399
3400
3401
3402    /// Sets `StrikePriceDeterminationMethod`, Tag 1478.
3403    pub fn set_strike_price_determination_method(&mut self, v: isize) {
3404        self.message.body.set_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
3405    }
3406
3407    /// Gets `StrikePriceDeterminationMethod`, Tag 1478.
3408    pub fn get_strike_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
3409        let mut fld = field::StrikePriceDeterminationMethodField::new(0);
3410        self.message.body.get_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
3411        Ok(fld.value())
3412    }
3413
3414
3415    /// Returns true if `StrikePriceDeterminationMethod` is present, Tag 1478.
3416    pub fn has_strike_price_determination_method(&self) -> bool {
3417        self.message.body.has(tag::STRIKE_PRICE_DETERMINATION_METHOD)
3418    }
3419
3420
3421
3422
3423    /// Sets `StrikeValue`, Tag 968.
3424    pub fn set_strike_value(&mut self, val: Decimal, scale: i32) {
3425        self.message.body.set_field(tag::STRIKE_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3426    }
3427
3428    /// Gets `StrikeValue`, Tag 968.
3429    pub fn get_strike_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3430        let mut fld = field::StrikeValueField::new(Decimal::ZERO, 0);
3431        self.message.body.get_field(tag::STRIKE_VALUE, &mut fld.0)?;
3432        Ok(fld.value())
3433    }
3434
3435
3436    /// Returns true if `StrikeValue` is present, Tag 968.
3437    pub fn has_strike_value(&self) -> bool {
3438        self.message.body.has(tag::STRIKE_VALUE)
3439    }
3440
3441
3442
3443
3444    /// Sets `Symbol`, Tag 55.
3445    pub fn set_symbol(&mut self, v: String) {
3446        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
3447    }
3448
3449    /// Gets `Symbol`, Tag 55.
3450    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
3451        let mut fld = field::SymbolField::new(String::new());
3452        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
3453        Ok(fld.value().to_string())
3454    }
3455
3456
3457    /// Returns true if `Symbol` is present, Tag 55.
3458    pub fn has_symbol(&self) -> bool {
3459        self.message.body.has(tag::SYMBOL)
3460    }
3461
3462
3463
3464
3465    /// Sets `SymbolSfx`, Tag 65.
3466    pub fn set_symbol_sfx(&mut self, v: String) {
3467        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
3468    }
3469
3470    /// Gets `SymbolSfx`, Tag 65.
3471    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
3472        let mut fld = field::SymbolSfxField::new(String::new());
3473        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
3474        Ok(fld.value().to_string())
3475    }
3476
3477
3478    /// Returns true if `SymbolSfx` is present, Tag 65.
3479    pub fn has_symbol_sfx(&self) -> bool {
3480        self.message.body.has(tag::SYMBOL_SFX)
3481    }
3482
3483
3484
3485
3486    /// Sets `TerminationType`, Tag 788.
3487    pub fn set_termination_type(&mut self, v: isize) {
3488        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
3489    }
3490
3491    /// Gets `TerminationType`, Tag 788.
3492    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3493        let mut fld = field::TerminationTypeField::new(0);
3494        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
3495        Ok(fld.value())
3496    }
3497
3498
3499    /// Returns true if `TerminationType` is present, Tag 788.
3500    pub fn has_termination_type(&self) -> bool {
3501        self.message.body.has(tag::TERMINATION_TYPE)
3502    }
3503
3504
3505
3506
3507    /// Sets `Text`, Tag 58.
3508    pub fn set_text(&mut self, v: String) {
3509        self.message.body.set_field(tag::TEXT, FIXString::from(v));
3510    }
3511
3512    /// Gets `Text`, Tag 58.
3513    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
3514        let mut fld = field::TextField::new(String::new());
3515        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
3516        Ok(fld.value().to_string())
3517    }
3518
3519
3520    /// Returns true if `Text` is present, Tag 58.
3521    pub fn has_text(&self) -> bool {
3522        self.message.body.has(tag::TEXT)
3523    }
3524
3525
3526
3527
3528    /// Sets `TimeUnit`, Tag 997.
3529    pub fn set_time_unit(&mut self, v: String) {
3530        self.message.body.set_field(tag::TIME_UNIT, FIXString::from(v));
3531    }
3532
3533    /// Gets `TimeUnit`, Tag 997.
3534    pub fn get_time_unit(&self) -> Result<String, MessageRejectErrorEnum> {
3535        let mut fld = field::TimeUnitField::new(String::new());
3536        self.message.body.get_field(tag::TIME_UNIT, &mut fld.0)?;
3537        Ok(fld.value().to_string())
3538    }
3539
3540
3541    /// Returns true if `TimeUnit` is present, Tag 997.
3542    pub fn has_time_unit(&self) -> bool {
3543        self.message.body.has(tag::TIME_UNIT)
3544    }
3545
3546
3547
3548
3549    /// Sets `TotNoAllocs`, Tag 892.
3550    pub fn set_tot_no_allocs(&mut self, v: isize) {
3551        self.message.body.set_field(tag::TOT_NO_ALLOCS, fixer::fix_int::FIXInt::from(v));
3552    }
3553
3554    /// Gets `TotNoAllocs`, Tag 892.
3555    pub fn get_tot_no_allocs(&self) -> Result<isize, MessageRejectErrorEnum> {
3556        let mut fld = field::TotNoAllocsField::new(0);
3557        self.message.body.get_field(tag::TOT_NO_ALLOCS, &mut fld.0)?;
3558        Ok(fld.value())
3559    }
3560
3561
3562    /// Returns true if `TotNoAllocs` is present, Tag 892.
3563    pub fn has_tot_no_allocs(&self) -> bool {
3564        self.message.body.has(tag::TOT_NO_ALLOCS)
3565    }
3566
3567
3568
3569
3570    /// Sets `TotalAccruedInterestAmt`, Tag 540.
3571    pub fn set_total_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
3572        self.message.body.set_field(tag::TOTAL_ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3573    }
3574
3575    /// Gets `TotalAccruedInterestAmt`, Tag 540.
3576    pub fn get_total_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3577        let mut fld = field::TotalAccruedInterestAmtField::new(Decimal::ZERO, 0);
3578        self.message.body.get_field(tag::TOTAL_ACCRUED_INTEREST_AMT, &mut fld.0)?;
3579        Ok(fld.value())
3580    }
3581
3582
3583    /// Returns true if `TotalAccruedInterestAmt` is present, Tag 540.
3584    pub fn has_total_accrued_interest_amt(&self) -> bool {
3585        self.message.body.has(tag::TOTAL_ACCRUED_INTEREST_AMT)
3586    }
3587
3588
3589
3590
3591    /// Sets `TotalTakedown`, Tag 237.
3592    pub fn set_total_takedown(&mut self, val: Decimal, scale: i32) {
3593        self.message.body.set_field(tag::TOTAL_TAKEDOWN, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3594    }
3595
3596    /// Gets `TotalTakedown`, Tag 237.
3597    pub fn get_total_takedown(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3598        let mut fld = field::TotalTakedownField::new(Decimal::ZERO, 0);
3599        self.message.body.get_field(tag::TOTAL_TAKEDOWN, &mut fld.0)?;
3600        Ok(fld.value())
3601    }
3602
3603
3604    /// Returns true if `TotalTakedown` is present, Tag 237.
3605    pub fn has_total_takedown(&self) -> bool {
3606        self.message.body.has(tag::TOTAL_TAKEDOWN)
3607    }
3608
3609
3610
3611
3612    /// Sets `TradeDate`, Tag 75.
3613    pub fn set_trade_date(&mut self, v: String) {
3614        self.message.body.set_field(tag::TRADE_DATE, FIXString::from(v));
3615    }
3616
3617    /// Gets `TradeDate`, Tag 75.
3618    pub fn get_trade_date(&self) -> Result<String, MessageRejectErrorEnum> {
3619        let mut fld = field::TradeDateField::new(String::new());
3620        self.message.body.get_field(tag::TRADE_DATE, &mut fld.0)?;
3621        Ok(fld.value().to_string())
3622    }
3623
3624
3625    /// Returns true if `TradeDate` is present, Tag 75.
3626    pub fn has_trade_date(&self) -> bool {
3627        self.message.body.has(tag::TRADE_DATE)
3628    }
3629
3630
3631
3632
3633    /// Sets `TradeInputDevice`, Tag 579.
3634    pub fn set_trade_input_device(&mut self, v: String) {
3635        self.message.body.set_field(tag::TRADE_INPUT_DEVICE, FIXString::from(v));
3636    }
3637
3638    /// Gets `TradeInputDevice`, Tag 579.
3639    pub fn get_trade_input_device(&self) -> Result<String, MessageRejectErrorEnum> {
3640        let mut fld = field::TradeInputDeviceField::new(String::new());
3641        self.message.body.get_field(tag::TRADE_INPUT_DEVICE, &mut fld.0)?;
3642        Ok(fld.value().to_string())
3643    }
3644
3645
3646    /// Returns true if `TradeInputDevice` is present, Tag 579.
3647    pub fn has_trade_input_device(&self) -> bool {
3648        self.message.body.has(tag::TRADE_INPUT_DEVICE)
3649    }
3650
3651
3652
3653
3654    /// Sets `TradeInputSource`, Tag 578.
3655    pub fn set_trade_input_source(&mut self, v: String) {
3656        self.message.body.set_field(tag::TRADE_INPUT_SOURCE, FIXString::from(v));
3657    }
3658
3659    /// Gets `TradeInputSource`, Tag 578.
3660    pub fn get_trade_input_source(&self) -> Result<String, MessageRejectErrorEnum> {
3661        let mut fld = field::TradeInputSourceField::new(String::new());
3662        self.message.body.get_field(tag::TRADE_INPUT_SOURCE, &mut fld.0)?;
3663        Ok(fld.value().to_string())
3664    }
3665
3666
3667    /// Returns true if `TradeInputSource` is present, Tag 578.
3668    pub fn has_trade_input_source(&self) -> bool {
3669        self.message.body.has(tag::TRADE_INPUT_SOURCE)
3670    }
3671
3672
3673
3674
3675    /// Sets `TradeOriginationDate`, Tag 229.
3676    pub fn set_trade_origination_date(&mut self, v: String) {
3677        self.message.body.set_field(tag::TRADE_ORIGINATION_DATE, FIXString::from(v));
3678    }
3679
3680    /// Gets `TradeOriginationDate`, Tag 229.
3681    pub fn get_trade_origination_date(&self) -> Result<String, MessageRejectErrorEnum> {
3682        let mut fld = field::TradeOriginationDateField::new(String::new());
3683        self.message.body.get_field(tag::TRADE_ORIGINATION_DATE, &mut fld.0)?;
3684        Ok(fld.value().to_string())
3685    }
3686
3687
3688    /// Returns true if `TradeOriginationDate` is present, Tag 229.
3689    pub fn has_trade_origination_date(&self) -> bool {
3690        self.message.body.has(tag::TRADE_ORIGINATION_DATE)
3691    }
3692
3693
3694
3695
3696    /// Sets `TradingSessionID`, Tag 336.
3697    pub fn set_trading_session_id(&mut self, v: String) {
3698        self.message.body.set_field(tag::TRADING_SESSION_ID, FIXString::from(v));
3699    }
3700
3701    /// Gets `TradingSessionID`, Tag 336.
3702    pub fn get_trading_session_id(&self) -> Result<String, MessageRejectErrorEnum> {
3703        let mut fld = field::TradingSessionIDField::new(String::new());
3704        self.message.body.get_field(tag::TRADING_SESSION_ID, &mut fld.0)?;
3705        Ok(fld.value().to_string())
3706    }
3707
3708
3709    /// Returns true if `TradingSessionID` is present, Tag 336.
3710    pub fn has_trading_session_id(&self) -> bool {
3711        self.message.body.has(tag::TRADING_SESSION_ID)
3712    }
3713
3714
3715
3716
3717    /// Sets `TradingSessionSubID`, Tag 625.
3718    pub fn set_trading_session_sub_id(&mut self, v: String) {
3719        self.message.body.set_field(tag::TRADING_SESSION_SUB_ID, FIXString::from(v));
3720    }
3721
3722    /// Gets `TradingSessionSubID`, Tag 625.
3723    pub fn get_trading_session_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
3724        let mut fld = field::TradingSessionSubIDField::new(String::new());
3725        self.message.body.get_field(tag::TRADING_SESSION_SUB_ID, &mut fld.0)?;
3726        Ok(fld.value().to_string())
3727    }
3728
3729
3730    /// Returns true if `TradingSessionSubID` is present, Tag 625.
3731    pub fn has_trading_session_sub_id(&self) -> bool {
3732        self.message.body.has(tag::TRADING_SESSION_SUB_ID)
3733    }
3734
3735
3736
3737
3738    /// Sets `TransactTime`, Tag 60.
3739    pub fn set_transact_time(&mut self, v: Timestamp) {
3740        self.message.body.set_field(tag::TRANSACT_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
3741            time: v,
3742            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
3743        });
3744    }
3745
3746    /// Gets `TransactTime`, Tag 60.
3747    pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
3748        let mut fld = field::TransactTimeField::new(Timestamp::UNIX_EPOCH);
3749        self.message.body.get_field(tag::TRANSACT_TIME, &mut fld.0)?;
3750        Ok(fld.value())
3751    }
3752
3753
3754    /// Returns true if `TransactTime` is present, Tag 60.
3755    pub fn has_transact_time(&self) -> bool {
3756        self.message.body.has(tag::TRANSACT_TIME)
3757    }
3758
3759
3760
3761
3762    /// Sets `TrdSubType`, Tag 829.
3763    pub fn set_trd_sub_type(&mut self, v: isize) {
3764        self.message.body.set_field(tag::TRD_SUB_TYPE, fixer::fix_int::FIXInt::from(v));
3765    }
3766
3767    /// Gets `TrdSubType`, Tag 829.
3768    pub fn get_trd_sub_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3769        let mut fld = field::TrdSubTypeField::new(0);
3770        self.message.body.get_field(tag::TRD_SUB_TYPE, &mut fld.0)?;
3771        Ok(fld.value())
3772    }
3773
3774
3775    /// Returns true if `TrdSubType` is present, Tag 829.
3776    pub fn has_trd_sub_type(&self) -> bool {
3777        self.message.body.has(tag::TRD_SUB_TYPE)
3778    }
3779
3780
3781
3782
3783    /// Sets `TrdType`, Tag 828.
3784    pub fn set_trd_type(&mut self, v: isize) {
3785        self.message.body.set_field(tag::TRD_TYPE, fixer::fix_int::FIXInt::from(v));
3786    }
3787
3788    /// Gets `TrdType`, Tag 828.
3789    pub fn get_trd_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3790        let mut fld = field::TrdTypeField::new(0);
3791        self.message.body.get_field(tag::TRD_TYPE, &mut fld.0)?;
3792        Ok(fld.value())
3793    }
3794
3795
3796    /// Returns true if `TrdType` is present, Tag 828.
3797    pub fn has_trd_type(&self) -> bool {
3798        self.message.body.has(tag::TRD_TYPE)
3799    }
3800
3801
3802
3803
3804    /// Sets `UnderlyingPriceDeterminationMethod`, Tag 1481.
3805    pub fn set_underlying_price_determination_method(&mut self, v: isize) {
3806        self.message.body.set_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
3807    }
3808
3809    /// Gets `UnderlyingPriceDeterminationMethod`, Tag 1481.
3810    pub fn get_underlying_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
3811        let mut fld = field::UnderlyingPriceDeterminationMethodField::new(0);
3812        self.message.body.get_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
3813        Ok(fld.value())
3814    }
3815
3816
3817    /// Returns true if `UnderlyingPriceDeterminationMethod` is present, Tag 1481.
3818    pub fn has_underlying_price_determination_method(&self) -> bool {
3819        self.message.body.has(tag::UNDERLYING_PRICE_DETERMINATION_METHOD)
3820    }
3821
3822
3823
3824
3825    /// Sets `UnitOfMeasure`, Tag 996.
3826    pub fn set_unit_of_measure(&mut self, v: String) {
3827        self.message.body.set_field(tag::UNIT_OF_MEASURE, FIXString::from(v));
3828    }
3829
3830    /// Gets `UnitOfMeasure`, Tag 996.
3831    pub fn get_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
3832        let mut fld = field::UnitOfMeasureField::new(String::new());
3833        self.message.body.get_field(tag::UNIT_OF_MEASURE, &mut fld.0)?;
3834        Ok(fld.value().to_string())
3835    }
3836
3837
3838    /// Returns true if `UnitOfMeasure` is present, Tag 996.
3839    pub fn has_unit_of_measure(&self) -> bool {
3840        self.message.body.has(tag::UNIT_OF_MEASURE)
3841    }
3842
3843
3844
3845
3846    /// Sets `UnitOfMeasureQty`, Tag 1147.
3847    pub fn set_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
3848        self.message.body.set_field(tag::UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3849    }
3850
3851    /// Gets `UnitOfMeasureQty`, Tag 1147.
3852    pub fn get_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3853        let mut fld = field::UnitOfMeasureQtyField::new(Decimal::ZERO, 0);
3854        self.message.body.get_field(tag::UNIT_OF_MEASURE_QTY, &mut fld.0)?;
3855        Ok(fld.value())
3856    }
3857
3858
3859    /// Returns true if `UnitOfMeasureQty` is present, Tag 1147.
3860    pub fn has_unit_of_measure_qty(&self) -> bool {
3861        self.message.body.has(tag::UNIT_OF_MEASURE_QTY)
3862    }
3863
3864
3865
3866
3867    /// Sets `ValuationMethod`, Tag 1197.
3868    pub fn set_valuation_method(&mut self, v: String) {
3869        self.message.body.set_field(tag::VALUATION_METHOD, FIXString::from(v));
3870    }
3871
3872    /// Gets `ValuationMethod`, Tag 1197.
3873    pub fn get_valuation_method(&self) -> Result<String, MessageRejectErrorEnum> {
3874        let mut fld = field::ValuationMethodField::new(String::new());
3875        self.message.body.get_field(tag::VALUATION_METHOD, &mut fld.0)?;
3876        Ok(fld.value().to_string())
3877    }
3878
3879
3880    /// Returns true if `ValuationMethod` is present, Tag 1197.
3881    pub fn has_valuation_method(&self) -> bool {
3882        self.message.body.has(tag::VALUATION_METHOD)
3883    }
3884
3885
3886
3887
3888    /// Sets `Yield`, Tag 236.
3889    pub fn set_yield(&mut self, val: Decimal, scale: i32) {
3890        self.message.body.set_field(tag::YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3891    }
3892
3893    /// Gets `Yield`, Tag 236.
3894    pub fn get_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3895        let mut fld = field::YieldField::new(Decimal::ZERO, 0);
3896        self.message.body.get_field(tag::YIELD, &mut fld.0)?;
3897        Ok(fld.value())
3898    }
3899
3900
3901    /// Returns true if `Yield` is present, Tag 236.
3902    pub fn has_yield(&self) -> bool {
3903        self.message.body.has(tag::YIELD)
3904    }
3905
3906
3907
3908
3909    /// Sets `YieldCalcDate`, Tag 701.
3910    pub fn set_yield_calc_date(&mut self, v: String) {
3911        self.message.body.set_field(tag::YIELD_CALC_DATE, FIXString::from(v));
3912    }
3913
3914    /// Gets `YieldCalcDate`, Tag 701.
3915    pub fn get_yield_calc_date(&self) -> Result<String, MessageRejectErrorEnum> {
3916        let mut fld = field::YieldCalcDateField::new(String::new());
3917        self.message.body.get_field(tag::YIELD_CALC_DATE, &mut fld.0)?;
3918        Ok(fld.value().to_string())
3919    }
3920
3921
3922    /// Returns true if `YieldCalcDate` is present, Tag 701.
3923    pub fn has_yield_calc_date(&self) -> bool {
3924        self.message.body.has(tag::YIELD_CALC_DATE)
3925    }
3926
3927
3928
3929
3930    /// Sets `YieldRedemptionDate`, Tag 696.
3931    pub fn set_yield_redemption_date(&mut self, v: String) {
3932        self.message.body.set_field(tag::YIELD_REDEMPTION_DATE, FIXString::from(v));
3933    }
3934
3935    /// Gets `YieldRedemptionDate`, Tag 696.
3936    pub fn get_yield_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
3937        let mut fld = field::YieldRedemptionDateField::new(String::new());
3938        self.message.body.get_field(tag::YIELD_REDEMPTION_DATE, &mut fld.0)?;
3939        Ok(fld.value().to_string())
3940    }
3941
3942
3943    /// Returns true if `YieldRedemptionDate` is present, Tag 696.
3944    pub fn has_yield_redemption_date(&self) -> bool {
3945        self.message.body.has(tag::YIELD_REDEMPTION_DATE)
3946    }
3947
3948
3949
3950
3951    /// Sets `YieldRedemptionPrice`, Tag 697.
3952    pub fn set_yield_redemption_price(&mut self, val: Decimal, scale: i32) {
3953        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3954    }
3955
3956    /// Gets `YieldRedemptionPrice`, Tag 697.
3957    pub fn get_yield_redemption_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3958        let mut fld = field::YieldRedemptionPriceField::new(Decimal::ZERO, 0);
3959        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE, &mut fld.0)?;
3960        Ok(fld.value())
3961    }
3962
3963
3964    /// Returns true if `YieldRedemptionPrice` is present, Tag 697.
3965    pub fn has_yield_redemption_price(&self) -> bool {
3966        self.message.body.has(tag::YIELD_REDEMPTION_PRICE)
3967    }
3968
3969
3970
3971
3972    /// Sets `YieldRedemptionPriceType`, Tag 698.
3973    pub fn set_yield_redemption_price_type(&mut self, v: isize) {
3974        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
3975    }
3976
3977    /// Gets `YieldRedemptionPriceType`, Tag 698.
3978    pub fn get_yield_redemption_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
3979        let mut fld = field::YieldRedemptionPriceTypeField::new(0);
3980        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE_TYPE, &mut fld.0)?;
3981        Ok(fld.value())
3982    }
3983
3984
3985    /// Returns true if `YieldRedemptionPriceType` is present, Tag 698.
3986    pub fn has_yield_redemption_price_type(&self) -> bool {
3987        self.message.body.has(tag::YIELD_REDEMPTION_PRICE_TYPE)
3988    }
3989
3990
3991
3992
3993    /// Sets `YieldType`, Tag 235.
3994    pub fn set_yield_type(&mut self, v: String) {
3995        self.message.body.set_field(tag::YIELD_TYPE, FIXString::from(v));
3996    }
3997
3998    /// Gets `YieldType`, Tag 235.
3999    pub fn get_yield_type(&self) -> Result<String, MessageRejectErrorEnum> {
4000        let mut fld = field::YieldTypeField::new(String::new());
4001        self.message.body.get_field(tag::YIELD_TYPE, &mut fld.0)?;
4002        Ok(fld.value().to_string())
4003    }
4004
4005
4006    /// Returns true if `YieldType` is present, Tag 235.
4007    pub fn has_yield_type(&self) -> bool {
4008        self.message.body.has(tag::YIELD_TYPE)
4009    }
4010
4011
4012}
4013
4014/// `RouteOut` is the callback type for routing `AllocationReport` messages.
4015pub type RouteOut = fn(msg: AllocationReport, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
4016
4017/// Route type returned by the `route` function.
4018pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
4019
4020/// Returns the begin string, message type, and route function for `AllocationReport`.
4021pub fn route(router: RouteOut) -> Route {
4022    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
4023        router(AllocationReport::from_message(msg.clone()), session_id)
4024    };
4025    ("9", "AS", Box::new(r))
4026}