Skip to main content

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