Skip to main content

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