Skip to main content

fixer_fix/fix50/
ioi.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/// `IOI` is the `fix50` `IOI` type, `MsgType` = 6.
21pub struct IOI {
22    pub message: Message,
23}
24
25impl IOI {
26    /// Creates a new `IOI` with required fields.
27    pub fn new(ioiid: field::IOIIDField, ioi_trans_type: field::IOITransTypeField, side: field::SideField, ioi_qty: field::IOIQtyField) -> Self {
28        let mut msg = Message::new();
29        msg.header.set_field(tag::MSG_TYPE, FIXString::from("6".to_string()));
30
31        msg.body.set_field(tag::IOIID, ioiid.0);
32
33        msg.body.set_field(tag::IOI_TRANS_TYPE, ioi_trans_type.0);
34
35        msg.body.set_field(tag::SIDE, side.0);
36
37        msg.body.set_field(tag::IOI_QTY, ioi_qty.0);
38
39        Self { message: msg }
40    }
41
42    /// Creates a `IOI` from an existing `Message`.
43    pub fn from_message(msg: Message) -> Self {
44        Self { message: msg }
45    }
46
47    /// Returns the underlying `Message`.
48    pub fn to_message(self) -> Message {
49        self.message
50    }
51
52
53
54
55    /// Sets `AgreementCurrency`, Tag 918.
56    pub fn set_agreement_currency(&mut self, v: String) {
57        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
58    }
59
60    /// Gets `AgreementCurrency`, Tag 918.
61    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
62        let mut fld = field::AgreementCurrencyField::new(String::new());
63        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
64        Ok(fld.value().to_string())
65    }
66
67
68    /// Returns true if `AgreementCurrency` is present, Tag 918.
69    pub fn has_agreement_currency(&self) -> bool {
70        self.message.body.has(tag::AGREEMENT_CURRENCY)
71    }
72
73
74
75
76    /// Sets `AgreementDate`, Tag 915.
77    pub fn set_agreement_date(&mut self, v: String) {
78        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
79    }
80
81    /// Gets `AgreementDate`, Tag 915.
82    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
83        let mut fld = field::AgreementDateField::new(String::new());
84        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
85        Ok(fld.value().to_string())
86    }
87
88
89    /// Returns true if `AgreementDate` is present, Tag 915.
90    pub fn has_agreement_date(&self) -> bool {
91        self.message.body.has(tag::AGREEMENT_DATE)
92    }
93
94
95
96
97    /// Sets `AgreementDesc`, Tag 913.
98    pub fn set_agreement_desc(&mut self, v: String) {
99        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
100    }
101
102    /// Gets `AgreementDesc`, Tag 913.
103    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
104        let mut fld = field::AgreementDescField::new(String::new());
105        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
106        Ok(fld.value().to_string())
107    }
108
109
110    /// Returns true if `AgreementDesc` is present, Tag 913.
111    pub fn has_agreement_desc(&self) -> bool {
112        self.message.body.has(tag::AGREEMENT_DESC)
113    }
114
115
116
117
118    /// Sets `AgreementID`, Tag 914.
119    pub fn set_agreement_id(&mut self, v: String) {
120        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
121    }
122
123    /// Gets `AgreementID`, Tag 914.
124    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
125        let mut fld = field::AgreementIDField::new(String::new());
126        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
127        Ok(fld.value().to_string())
128    }
129
130
131    /// Returns true if `AgreementID` is present, Tag 914.
132    pub fn has_agreement_id(&self) -> bool {
133        self.message.body.has(tag::AGREEMENT_ID)
134    }
135
136
137
138
139    /// Sets `BenchmarkCurveCurrency`, Tag 220.
140    pub fn set_benchmark_curve_currency(&mut self, v: String) {
141        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
142    }
143
144    /// Gets `BenchmarkCurveCurrency`, Tag 220.
145    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
146        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
147        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
148        Ok(fld.value().to_string())
149    }
150
151
152    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
153    pub fn has_benchmark_curve_currency(&self) -> bool {
154        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
155    }
156
157
158
159
160    /// Sets `BenchmarkCurveName`, Tag 221.
161    pub fn set_benchmark_curve_name(&mut self, v: String) {
162        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
163    }
164
165    /// Gets `BenchmarkCurveName`, Tag 221.
166    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
167        let mut fld = field::BenchmarkCurveNameField::new(String::new());
168        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
169        Ok(fld.value().to_string())
170    }
171
172
173    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
174    pub fn has_benchmark_curve_name(&self) -> bool {
175        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
176    }
177
178
179
180
181    /// Sets `BenchmarkCurvePoint`, Tag 222.
182    pub fn set_benchmark_curve_point(&mut self, v: String) {
183        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
184    }
185
186    /// Gets `BenchmarkCurvePoint`, Tag 222.
187    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
188        let mut fld = field::BenchmarkCurvePointField::new(String::new());
189        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
190        Ok(fld.value().to_string())
191    }
192
193
194    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
195    pub fn has_benchmark_curve_point(&self) -> bool {
196        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
197    }
198
199
200
201
202    /// Sets `BenchmarkPrice`, Tag 662.
203    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
204        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
205    }
206
207    /// Gets `BenchmarkPrice`, Tag 662.
208    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
209        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
210        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
211        Ok(fld.value())
212    }
213
214
215    /// Returns true if `BenchmarkPrice` is present, Tag 662.
216    pub fn has_benchmark_price(&self) -> bool {
217        self.message.body.has(tag::BENCHMARK_PRICE)
218    }
219
220
221
222
223    /// Sets `BenchmarkPriceType`, Tag 663.
224    pub fn set_benchmark_price_type(&mut self, v: isize) {
225        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
226    }
227
228    /// Gets `BenchmarkPriceType`, Tag 663.
229    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
230        let mut fld = field::BenchmarkPriceTypeField::new(0);
231        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
232        Ok(fld.value())
233    }
234
235
236    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
237    pub fn has_benchmark_price_type(&self) -> bool {
238        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
239    }
240
241
242
243
244    /// Sets `BenchmarkSecurityID`, Tag 699.
245    pub fn set_benchmark_security_id(&mut self, v: String) {
246        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
247    }
248
249    /// Gets `BenchmarkSecurityID`, Tag 699.
250    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
251        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
252        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
253        Ok(fld.value().to_string())
254    }
255
256
257    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
258    pub fn has_benchmark_security_id(&self) -> bool {
259        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
260    }
261
262
263
264
265    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
266    pub fn set_benchmark_security_id_source(&mut self, v: String) {
267        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
268    }
269
270    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
271    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
272        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
273        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
274        Ok(fld.value().to_string())
275    }
276
277
278    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
279    pub fn has_benchmark_security_id_source(&self) -> bool {
280        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
281    }
282
283
284
285
286    /// Sets `CFICode`, Tag 461.
287    pub fn set_cfi_code(&mut self, v: String) {
288        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
289    }
290
291    /// Gets `CFICode`, Tag 461.
292    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
293        let mut fld = field::CFICodeField::new(String::new());
294        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
295        Ok(fld.value().to_string())
296    }
297
298
299    /// Returns true if `CFICode` is present, Tag 461.
300    pub fn has_cfi_code(&self) -> bool {
301        self.message.body.has(tag::CFI_CODE)
302    }
303
304
305
306
307    /// Sets `CPProgram`, Tag 875.
308    pub fn set_cp_program(&mut self, v: isize) {
309        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
310    }
311
312    /// Gets `CPProgram`, Tag 875.
313    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
314        let mut fld = field::CPProgramField::new(0);
315        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
316        Ok(fld.value())
317    }
318
319
320    /// Returns true if `CPProgram` is present, Tag 875.
321    pub fn has_cp_program(&self) -> bool {
322        self.message.body.has(tag::CP_PROGRAM)
323    }
324
325
326
327
328    /// Sets `CPRegType`, Tag 876.
329    pub fn set_cp_reg_type(&mut self, v: String) {
330        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
331    }
332
333    /// Gets `CPRegType`, Tag 876.
334    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
335        let mut fld = field::CPRegTypeField::new(String::new());
336        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
337        Ok(fld.value().to_string())
338    }
339
340
341    /// Returns true if `CPRegType` is present, Tag 876.
342    pub fn has_cp_reg_type(&self) -> bool {
343        self.message.body.has(tag::CP_REG_TYPE)
344    }
345
346
347
348
349    /// Sets `CashOrderQty`, Tag 152.
350    pub fn set_cash_order_qty(&mut self, val: Decimal, scale: i32) {
351        self.message.body.set_field(tag::CASH_ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
352    }
353
354    /// Gets `CashOrderQty`, Tag 152.
355    pub fn get_cash_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
356        let mut fld = field::CashOrderQtyField::new(Decimal::ZERO, 0);
357        self.message.body.get_field(tag::CASH_ORDER_QTY, &mut fld.0)?;
358        Ok(fld.value())
359    }
360
361
362    /// Returns true if `CashOrderQty` is present, Tag 152.
363    pub fn has_cash_order_qty(&self) -> bool {
364        self.message.body.has(tag::CASH_ORDER_QTY)
365    }
366
367
368
369
370    /// Sets `ContractMultiplier`, Tag 231.
371    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
372        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
373    }
374
375    /// Gets `ContractMultiplier`, Tag 231.
376    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
377        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
378        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
379        Ok(fld.value())
380    }
381
382
383    /// Returns true if `ContractMultiplier` is present, Tag 231.
384    pub fn has_contract_multiplier(&self) -> bool {
385        self.message.body.has(tag::CONTRACT_MULTIPLIER)
386    }
387
388
389
390
391    /// Sets `ContractSettlMonth`, Tag 667.
392    pub fn set_contract_settl_month(&mut self, v: String) {
393        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
394    }
395
396    /// Gets `ContractSettlMonth`, Tag 667.
397    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
398        let mut fld = field::ContractSettlMonthField::new(String::new());
399        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
400        Ok(fld.value().to_string())
401    }
402
403
404    /// Returns true if `ContractSettlMonth` is present, Tag 667.
405    pub fn has_contract_settl_month(&self) -> bool {
406        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
407    }
408
409
410
411
412    /// Sets `CountryOfIssue`, Tag 470.
413    pub fn set_country_of_issue(&mut self, v: String) {
414        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
415    }
416
417    /// Gets `CountryOfIssue`, Tag 470.
418    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
419        let mut fld = field::CountryOfIssueField::new(String::new());
420        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
421        Ok(fld.value().to_string())
422    }
423
424
425    /// Returns true if `CountryOfIssue` is present, Tag 470.
426    pub fn has_country_of_issue(&self) -> bool {
427        self.message.body.has(tag::COUNTRY_OF_ISSUE)
428    }
429
430
431
432
433    /// Sets `CouponPaymentDate`, Tag 224.
434    pub fn set_coupon_payment_date(&mut self, v: String) {
435        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
436    }
437
438    /// Gets `CouponPaymentDate`, Tag 224.
439    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
440        let mut fld = field::CouponPaymentDateField::new(String::new());
441        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
442        Ok(fld.value().to_string())
443    }
444
445
446    /// Returns true if `CouponPaymentDate` is present, Tag 224.
447    pub fn has_coupon_payment_date(&self) -> bool {
448        self.message.body.has(tag::COUPON_PAYMENT_DATE)
449    }
450
451
452
453
454    /// Sets `CouponRate`, Tag 223.
455    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
456        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
457    }
458
459    /// Gets `CouponRate`, Tag 223.
460    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
461        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
462        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
463        Ok(fld.value())
464    }
465
466
467    /// Returns true if `CouponRate` is present, Tag 223.
468    pub fn has_coupon_rate(&self) -> bool {
469        self.message.body.has(tag::COUPON_RATE)
470    }
471
472
473
474
475    /// Sets `CreditRating`, Tag 255.
476    pub fn set_credit_rating(&mut self, v: String) {
477        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
478    }
479
480    /// Gets `CreditRating`, Tag 255.
481    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
482        let mut fld = field::CreditRatingField::new(String::new());
483        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
484        Ok(fld.value().to_string())
485    }
486
487
488    /// Returns true if `CreditRating` is present, Tag 255.
489    pub fn has_credit_rating(&self) -> bool {
490        self.message.body.has(tag::CREDIT_RATING)
491    }
492
493
494
495
496    /// Sets `Currency`, Tag 15.
497    pub fn set_currency(&mut self, v: String) {
498        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
499    }
500
501    /// Gets `Currency`, Tag 15.
502    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
503        let mut fld = field::CurrencyField::new(String::new());
504        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
505        Ok(fld.value().to_string())
506    }
507
508
509    /// Returns true if `Currency` is present, Tag 15.
510    pub fn has_currency(&self) -> bool {
511        self.message.body.has(tag::CURRENCY)
512    }
513
514
515
516
517    /// Sets `DatedDate`, Tag 873.
518    pub fn set_dated_date(&mut self, v: String) {
519        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
520    }
521
522    /// Gets `DatedDate`, Tag 873.
523    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
524        let mut fld = field::DatedDateField::new(String::new());
525        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
526        Ok(fld.value().to_string())
527    }
528
529
530    /// Returns true if `DatedDate` is present, Tag 873.
531    pub fn has_dated_date(&self) -> bool {
532        self.message.body.has(tag::DATED_DATE)
533    }
534
535
536
537
538    /// Sets `DeliveryType`, Tag 919.
539    pub fn set_delivery_type(&mut self, v: isize) {
540        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
541    }
542
543    /// Gets `DeliveryType`, Tag 919.
544    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
545        let mut fld = field::DeliveryTypeField::new(0);
546        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
547        Ok(fld.value())
548    }
549
550
551    /// Returns true if `DeliveryType` is present, Tag 919.
552    pub fn has_delivery_type(&self) -> bool {
553        self.message.body.has(tag::DELIVERY_TYPE)
554    }
555
556
557
558
559    /// Sets `EncodedIssuer`, Tag 349.
560    pub fn set_encoded_issuer(&mut self, v: String) {
561        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
562    }
563
564    /// Gets `EncodedIssuer`, Tag 349.
565    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
566        let mut fld = field::EncodedIssuerField::new(String::new());
567        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
568        Ok(fld.value().to_string())
569    }
570
571
572    /// Returns true if `EncodedIssuer` is present, Tag 349.
573    pub fn has_encoded_issuer(&self) -> bool {
574        self.message.body.has(tag::ENCODED_ISSUER)
575    }
576
577
578
579
580    /// Sets `EncodedIssuerLen`, Tag 348.
581    pub fn set_encoded_issuer_len(&mut self, v: isize) {
582        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
583    }
584
585    /// Gets `EncodedIssuerLen`, Tag 348.
586    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
587        let mut fld = field::EncodedIssuerLenField::new(0);
588        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
589        Ok(fld.value())
590    }
591
592
593    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
594    pub fn has_encoded_issuer_len(&self) -> bool {
595        self.message.body.has(tag::ENCODED_ISSUER_LEN)
596    }
597
598
599
600
601    /// Sets `EncodedSecurityDesc`, Tag 351.
602    pub fn set_encoded_security_desc(&mut self, v: String) {
603        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
604    }
605
606    /// Gets `EncodedSecurityDesc`, Tag 351.
607    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
608        let mut fld = field::EncodedSecurityDescField::new(String::new());
609        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
610        Ok(fld.value().to_string())
611    }
612
613
614    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
615    pub fn has_encoded_security_desc(&self) -> bool {
616        self.message.body.has(tag::ENCODED_SECURITY_DESC)
617    }
618
619
620
621
622    /// Sets `EncodedSecurityDescLen`, Tag 350.
623    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
624        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
625    }
626
627    /// Gets `EncodedSecurityDescLen`, Tag 350.
628    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
629        let mut fld = field::EncodedSecurityDescLenField::new(0);
630        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
631        Ok(fld.value())
632    }
633
634
635    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
636    pub fn has_encoded_security_desc_len(&self) -> bool {
637        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
638    }
639
640
641
642
643    /// Sets `EncodedText`, Tag 355.
644    pub fn set_encoded_text(&mut self, v: String) {
645        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
646    }
647
648    /// Gets `EncodedText`, Tag 355.
649    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
650        let mut fld = field::EncodedTextField::new(String::new());
651        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
652        Ok(fld.value().to_string())
653    }
654
655
656    /// Returns true if `EncodedText` is present, Tag 355.
657    pub fn has_encoded_text(&self) -> bool {
658        self.message.body.has(tag::ENCODED_TEXT)
659    }
660
661
662
663
664    /// Sets `EncodedTextLen`, Tag 354.
665    pub fn set_encoded_text_len(&mut self, v: isize) {
666        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
667    }
668
669    /// Gets `EncodedTextLen`, Tag 354.
670    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
671        let mut fld = field::EncodedTextLenField::new(0);
672        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
673        Ok(fld.value())
674    }
675
676
677    /// Returns true if `EncodedTextLen` is present, Tag 354.
678    pub fn has_encoded_text_len(&self) -> bool {
679        self.message.body.has(tag::ENCODED_TEXT_LEN)
680    }
681
682
683
684
685    /// Sets `EndDate`, Tag 917.
686    pub fn set_end_date(&mut self, v: String) {
687        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
688    }
689
690    /// Gets `EndDate`, Tag 917.
691    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
692        let mut fld = field::EndDateField::new(String::new());
693        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
694        Ok(fld.value().to_string())
695    }
696
697
698    /// Returns true if `EndDate` is present, Tag 917.
699    pub fn has_end_date(&self) -> bool {
700        self.message.body.has(tag::END_DATE)
701    }
702
703
704
705
706    /// Sets `Factor`, Tag 228.
707    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
708        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
709    }
710
711    /// Gets `Factor`, Tag 228.
712    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
713        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
714        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
715        Ok(fld.value())
716    }
717
718
719    /// Returns true if `Factor` is present, Tag 228.
720    pub fn has_factor(&self) -> bool {
721        self.message.body.has(tag::FACTOR)
722    }
723
724
725
726
727    /// Sets `IOIID`, Tag 23.
728    pub fn set_ioiid(&mut self, v: String) {
729        self.message.body.set_field(tag::IOIID, FIXString::from(v));
730    }
731
732    /// Gets `IOIID`, Tag 23.
733    pub fn get_ioiid(&self) -> Result<String, MessageRejectErrorEnum> {
734        let mut fld = field::IOIIDField::new(String::new());
735        self.message.body.get_field(tag::IOIID, &mut fld.0)?;
736        Ok(fld.value().to_string())
737    }
738
739
740    /// Returns true if `IOIID` is present, Tag 23.
741    pub fn has_ioiid(&self) -> bool {
742        self.message.body.has(tag::IOIID)
743    }
744
745
746
747
748    /// Sets `IOINaturalFlag`, Tag 130.
749    pub fn set_ioi_natural_flag(&mut self, v: bool) {
750        self.message.body.set_field(tag::IOI_NATURAL_FLAG, fixer::fix_boolean::FIXBoolean::from(v));
751    }
752
753    /// Gets `IOINaturalFlag`, Tag 130.
754    pub fn get_ioi_natural_flag(&self) -> Result<bool, MessageRejectErrorEnum> {
755        let mut fld = field::IOINaturalFlagField::new(false);
756        self.message.body.get_field(tag::IOI_NATURAL_FLAG, &mut fld.0)?;
757        Ok(fld.value())
758    }
759
760
761    /// Returns true if `IOINaturalFlag` is present, Tag 130.
762    pub fn has_ioi_natural_flag(&self) -> bool {
763        self.message.body.has(tag::IOI_NATURAL_FLAG)
764    }
765
766
767
768
769    /// Sets `IOIQltyInd`, Tag 25.
770    pub fn set_ioi_qlty_ind(&mut self, v: String) {
771        self.message.body.set_field(tag::IOI_QLTY_IND, FIXString::from(v));
772    }
773
774    /// Gets `IOIQltyInd`, Tag 25.
775    pub fn get_ioi_qlty_ind(&self) -> Result<String, MessageRejectErrorEnum> {
776        let mut fld = field::IOIQltyIndField::new(String::new());
777        self.message.body.get_field(tag::IOI_QLTY_IND, &mut fld.0)?;
778        Ok(fld.value().to_string())
779    }
780
781
782    /// Returns true if `IOIQltyInd` is present, Tag 25.
783    pub fn has_ioi_qlty_ind(&self) -> bool {
784        self.message.body.has(tag::IOI_QLTY_IND)
785    }
786
787
788
789
790    /// Sets `IOIQty`, Tag 27.
791    pub fn set_ioi_qty(&mut self, v: String) {
792        self.message.body.set_field(tag::IOI_QTY, FIXString::from(v));
793    }
794
795    /// Gets `IOIQty`, Tag 27.
796    pub fn get_ioi_qty(&self) -> Result<String, MessageRejectErrorEnum> {
797        let mut fld = field::IOIQtyField::new(String::new());
798        self.message.body.get_field(tag::IOI_QTY, &mut fld.0)?;
799        Ok(fld.value().to_string())
800    }
801
802
803    /// Returns true if `IOIQty` is present, Tag 27.
804    pub fn has_ioi_qty(&self) -> bool {
805        self.message.body.has(tag::IOI_QTY)
806    }
807
808
809
810
811    /// Sets `IOIRefID`, Tag 26.
812    pub fn set_ioi_ref_id(&mut self, v: String) {
813        self.message.body.set_field(tag::IOI_REF_ID, FIXString::from(v));
814    }
815
816    /// Gets `IOIRefID`, Tag 26.
817    pub fn get_ioi_ref_id(&self) -> Result<String, MessageRejectErrorEnum> {
818        let mut fld = field::IOIRefIDField::new(String::new());
819        self.message.body.get_field(tag::IOI_REF_ID, &mut fld.0)?;
820        Ok(fld.value().to_string())
821    }
822
823
824    /// Returns true if `IOIRefID` is present, Tag 26.
825    pub fn has_ioi_ref_id(&self) -> bool {
826        self.message.body.has(tag::IOI_REF_ID)
827    }
828
829
830
831
832    /// Sets `IOITransType`, Tag 28.
833    pub fn set_ioi_trans_type(&mut self, v: String) {
834        self.message.body.set_field(tag::IOI_TRANS_TYPE, FIXString::from(v));
835    }
836
837    /// Gets `IOITransType`, Tag 28.
838    pub fn get_ioi_trans_type(&self) -> Result<String, MessageRejectErrorEnum> {
839        let mut fld = field::IOITransTypeField::new(String::new());
840        self.message.body.get_field(tag::IOI_TRANS_TYPE, &mut fld.0)?;
841        Ok(fld.value().to_string())
842    }
843
844
845    /// Returns true if `IOITransType` is present, Tag 28.
846    pub fn has_ioi_trans_type(&self) -> bool {
847        self.message.body.has(tag::IOI_TRANS_TYPE)
848    }
849
850
851
852
853    /// Sets `InstrRegistry`, Tag 543.
854    pub fn set_instr_registry(&mut self, v: String) {
855        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
856    }
857
858    /// Gets `InstrRegistry`, Tag 543.
859    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
860        let mut fld = field::InstrRegistryField::new(String::new());
861        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
862        Ok(fld.value().to_string())
863    }
864
865
866    /// Returns true if `InstrRegistry` is present, Tag 543.
867    pub fn has_instr_registry(&self) -> bool {
868        self.message.body.has(tag::INSTR_REGISTRY)
869    }
870
871
872
873
874    /// Sets `InstrmtAssignmentMethod`, Tag 1049.
875    pub fn set_instrmt_assignment_method(&mut self, v: String) {
876        self.message.body.set_field(tag::INSTRMT_ASSIGNMENT_METHOD, FIXString::from(v));
877    }
878
879    /// Gets `InstrmtAssignmentMethod`, Tag 1049.
880    pub fn get_instrmt_assignment_method(&self) -> Result<String, MessageRejectErrorEnum> {
881        let mut fld = field::InstrmtAssignmentMethodField::new(String::new());
882        self.message.body.get_field(tag::INSTRMT_ASSIGNMENT_METHOD, &mut fld.0)?;
883        Ok(fld.value().to_string())
884    }
885
886
887    /// Returns true if `InstrmtAssignmentMethod` is present, Tag 1049.
888    pub fn has_instrmt_assignment_method(&self) -> bool {
889        self.message.body.has(tag::INSTRMT_ASSIGNMENT_METHOD)
890    }
891
892
893
894
895    /// Sets `InterestAccrualDate`, Tag 874.
896    pub fn set_interest_accrual_date(&mut self, v: String) {
897        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
898    }
899
900    /// Gets `InterestAccrualDate`, Tag 874.
901    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
902        let mut fld = field::InterestAccrualDateField::new(String::new());
903        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
904        Ok(fld.value().to_string())
905    }
906
907
908    /// Returns true if `InterestAccrualDate` is present, Tag 874.
909    pub fn has_interest_accrual_date(&self) -> bool {
910        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
911    }
912
913
914
915
916    /// Sets `IssueDate`, Tag 225.
917    pub fn set_issue_date(&mut self, v: String) {
918        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
919    }
920
921    /// Gets `IssueDate`, Tag 225.
922    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
923        let mut fld = field::IssueDateField::new(String::new());
924        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
925        Ok(fld.value().to_string())
926    }
927
928
929    /// Returns true if `IssueDate` is present, Tag 225.
930    pub fn has_issue_date(&self) -> bool {
931        self.message.body.has(tag::ISSUE_DATE)
932    }
933
934
935
936
937    /// Sets `Issuer`, Tag 106.
938    pub fn set_issuer(&mut self, v: String) {
939        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
940    }
941
942    /// Gets `Issuer`, Tag 106.
943    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
944        let mut fld = field::IssuerField::new(String::new());
945        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
946        Ok(fld.value().to_string())
947    }
948
949
950    /// Returns true if `Issuer` is present, Tag 106.
951    pub fn has_issuer(&self) -> bool {
952        self.message.body.has(tag::ISSUER)
953    }
954
955
956
957
958    /// Sets `LocaleOfIssue`, Tag 472.
959    pub fn set_locale_of_issue(&mut self, v: String) {
960        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
961    }
962
963    /// Gets `LocaleOfIssue`, Tag 472.
964    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
965        let mut fld = field::LocaleOfIssueField::new(String::new());
966        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
967        Ok(fld.value().to_string())
968    }
969
970
971    /// Returns true if `LocaleOfIssue` is present, Tag 472.
972    pub fn has_locale_of_issue(&self) -> bool {
973        self.message.body.has(tag::LOCALE_OF_ISSUE)
974    }
975
976
977
978
979    /// Sets `MarginRatio`, Tag 898.
980    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
981        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
982    }
983
984    /// Gets `MarginRatio`, Tag 898.
985    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
986        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
987        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
988        Ok(fld.value())
989    }
990
991
992    /// Returns true if `MarginRatio` is present, Tag 898.
993    pub fn has_margin_ratio(&self) -> bool {
994        self.message.body.has(tag::MARGIN_RATIO)
995    }
996
997
998
999
1000    /// Sets `MaturityDate`, Tag 541.
1001    pub fn set_maturity_date(&mut self, v: String) {
1002        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
1003    }
1004
1005    /// Gets `MaturityDate`, Tag 541.
1006    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
1007        let mut fld = field::MaturityDateField::new(String::new());
1008        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
1009        Ok(fld.value().to_string())
1010    }
1011
1012
1013    /// Returns true if `MaturityDate` is present, Tag 541.
1014    pub fn has_maturity_date(&self) -> bool {
1015        self.message.body.has(tag::MATURITY_DATE)
1016    }
1017
1018
1019
1020
1021    /// Sets `MaturityMonthYear`, Tag 200.
1022    pub fn set_maturity_month_year(&mut self, v: String) {
1023        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
1024    }
1025
1026    /// Gets `MaturityMonthYear`, Tag 200.
1027    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
1028        let mut fld = field::MaturityMonthYearField::new(String::new());
1029        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
1030        Ok(fld.value().to_string())
1031    }
1032
1033
1034    /// Returns true if `MaturityMonthYear` is present, Tag 200.
1035    pub fn has_maturity_month_year(&self) -> bool {
1036        self.message.body.has(tag::MATURITY_MONTH_YEAR)
1037    }
1038
1039
1040
1041
1042    /// Sets `MaturityTime`, Tag 1079.
1043    pub fn set_maturity_time(&mut self, v: String) {
1044        self.message.body.set_field(tag::MATURITY_TIME, FIXString::from(v));
1045    }
1046
1047    /// Gets `MaturityTime`, Tag 1079.
1048    pub fn get_maturity_time(&self) -> Result<String, MessageRejectErrorEnum> {
1049        let mut fld = field::MaturityTimeField::new(String::new());
1050        self.message.body.get_field(tag::MATURITY_TIME, &mut fld.0)?;
1051        Ok(fld.value().to_string())
1052    }
1053
1054
1055    /// Returns true if `MaturityTime` is present, Tag 1079.
1056    pub fn has_maturity_time(&self) -> bool {
1057        self.message.body.has(tag::MATURITY_TIME)
1058    }
1059
1060
1061
1062
1063    /// Sets `MinPriceIncrement`, Tag 969.
1064    pub fn set_min_price_increment(&mut self, val: Decimal, scale: i32) {
1065        self.message.body.set_field(tag::MIN_PRICE_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1066    }
1067
1068    /// Gets `MinPriceIncrement`, Tag 969.
1069    pub fn get_min_price_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1070        let mut fld = field::MinPriceIncrementField::new(Decimal::ZERO, 0);
1071        self.message.body.get_field(tag::MIN_PRICE_INCREMENT, &mut fld.0)?;
1072        Ok(fld.value())
1073    }
1074
1075
1076    /// Returns true if `MinPriceIncrement` is present, Tag 969.
1077    pub fn has_min_price_increment(&self) -> bool {
1078        self.message.body.has(tag::MIN_PRICE_INCREMENT)
1079    }
1080
1081
1082
1083
1084    /// Sets `NTPositionLimit`, Tag 971.
1085    pub fn set_nt_position_limit(&mut self, v: isize) {
1086        self.message.body.set_field(tag::NT_POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1087    }
1088
1089    /// Gets `NTPositionLimit`, Tag 971.
1090    pub fn get_nt_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1091        let mut fld = field::NTPositionLimitField::new(0);
1092        self.message.body.get_field(tag::NT_POSITION_LIMIT, &mut fld.0)?;
1093        Ok(fld.value())
1094    }
1095
1096
1097    /// Returns true if `NTPositionLimit` is present, Tag 971.
1098    pub fn has_nt_position_limit(&self) -> bool {
1099        self.message.body.has(tag::NT_POSITION_LIMIT)
1100    }
1101
1102
1103
1104
1105    /// Sets `NoEvents`, Tag 864.
1106    pub fn set_no_events(&mut self, v: isize) {
1107        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
1108    }
1109
1110    /// Gets `NoEvents`, Tag 864.
1111    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1112        let mut fld = field::NoEventsField::new(0);
1113        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
1114        Ok(fld.value())
1115    }
1116
1117
1118    /// Returns true if `NoEvents` is present, Tag 864.
1119    pub fn has_no_events(&self) -> bool {
1120        self.message.body.has(tag::NO_EVENTS)
1121    }
1122
1123
1124
1125
1126    /// Sets `NoIOIQualifiers`, Tag 199.
1127    pub fn set_no_ioi_qualifiers(&mut self, v: isize) {
1128        self.message.body.set_field(tag::NO_IOI_QUALIFIERS, fixer::fix_int::FIXInt::from(v));
1129    }
1130
1131    /// Gets `NoIOIQualifiers`, Tag 199.
1132    pub fn get_no_ioi_qualifiers(&self) -> Result<isize, MessageRejectErrorEnum> {
1133        let mut fld = field::NoIOIQualifiersField::new(0);
1134        self.message.body.get_field(tag::NO_IOI_QUALIFIERS, &mut fld.0)?;
1135        Ok(fld.value())
1136    }
1137
1138
1139    /// Returns true if `NoIOIQualifiers` is present, Tag 199.
1140    pub fn has_no_ioi_qualifiers(&self) -> bool {
1141        self.message.body.has(tag::NO_IOI_QUALIFIERS)
1142    }
1143
1144
1145
1146
1147    /// Sets `NoInstrumentParties`, Tag 1018.
1148    pub fn set_no_instrument_parties(&mut self, v: isize) {
1149        self.message.body.set_field(tag::NO_INSTRUMENT_PARTIES, fixer::fix_int::FIXInt::from(v));
1150    }
1151
1152    /// Gets `NoInstrumentParties`, Tag 1018.
1153    pub fn get_no_instrument_parties(&self) -> Result<isize, MessageRejectErrorEnum> {
1154        let mut fld = field::NoInstrumentPartiesField::new(0);
1155        self.message.body.get_field(tag::NO_INSTRUMENT_PARTIES, &mut fld.0)?;
1156        Ok(fld.value())
1157    }
1158
1159
1160    /// Returns true if `NoInstrumentParties` is present, Tag 1018.
1161    pub fn has_no_instrument_parties(&self) -> bool {
1162        self.message.body.has(tag::NO_INSTRUMENT_PARTIES)
1163    }
1164
1165
1166
1167
1168    /// Sets `NoLegs`, Tag 555.
1169    pub fn set_no_legs(&mut self, v: isize) {
1170        self.message.body.set_field(tag::NO_LEGS, fixer::fix_int::FIXInt::from(v));
1171    }
1172
1173    /// Gets `NoLegs`, Tag 555.
1174    pub fn get_no_legs(&self) -> Result<isize, MessageRejectErrorEnum> {
1175        let mut fld = field::NoLegsField::new(0);
1176        self.message.body.get_field(tag::NO_LEGS, &mut fld.0)?;
1177        Ok(fld.value())
1178    }
1179
1180
1181    /// Returns true if `NoLegs` is present, Tag 555.
1182    pub fn has_no_legs(&self) -> bool {
1183        self.message.body.has(tag::NO_LEGS)
1184    }
1185
1186
1187
1188
1189    /// Sets `NoPartyIDs`, Tag 453.
1190    pub fn set_no_party_i_ds(&mut self, v: isize) {
1191        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
1192    }
1193
1194    /// Gets `NoPartyIDs`, Tag 453.
1195    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
1196        let mut fld = field::NoPartyIDsField::new(0);
1197        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
1198        Ok(fld.value())
1199    }
1200
1201
1202    /// Returns true if `NoPartyIDs` is present, Tag 453.
1203    pub fn has_no_party_i_ds(&self) -> bool {
1204        self.message.body.has(tag::NO_PARTY_I_DS)
1205    }
1206
1207
1208
1209
1210    /// Sets `NoRoutingIDs`, Tag 215.
1211    pub fn set_no_routing_i_ds(&mut self, v: isize) {
1212        self.message.body.set_field(tag::NO_ROUTING_I_DS, fixer::fix_int::FIXInt::from(v));
1213    }
1214
1215    /// Gets `NoRoutingIDs`, Tag 215.
1216    pub fn get_no_routing_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
1217        let mut fld = field::NoRoutingIDsField::new(0);
1218        self.message.body.get_field(tag::NO_ROUTING_I_DS, &mut fld.0)?;
1219        Ok(fld.value())
1220    }
1221
1222
1223    /// Returns true if `NoRoutingIDs` is present, Tag 215.
1224    pub fn has_no_routing_i_ds(&self) -> bool {
1225        self.message.body.has(tag::NO_ROUTING_I_DS)
1226    }
1227
1228
1229
1230
1231    /// Sets `NoSecurityAltID`, Tag 454.
1232    pub fn set_no_security_alt_id(&mut self, v: isize) {
1233        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
1234    }
1235
1236    /// Gets `NoSecurityAltID`, Tag 454.
1237    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
1238        let mut fld = field::NoSecurityAltIDField::new(0);
1239        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
1240        Ok(fld.value())
1241    }
1242
1243
1244    /// Returns true if `NoSecurityAltID` is present, Tag 454.
1245    pub fn has_no_security_alt_id(&self) -> bool {
1246        self.message.body.has(tag::NO_SECURITY_ALT_ID)
1247    }
1248
1249
1250
1251
1252    /// Sets `NoStipulations`, Tag 232.
1253    pub fn set_no_stipulations(&mut self, v: isize) {
1254        self.message.body.set_field(tag::NO_STIPULATIONS, fixer::fix_int::FIXInt::from(v));
1255    }
1256
1257    /// Gets `NoStipulations`, Tag 232.
1258    pub fn get_no_stipulations(&self) -> Result<isize, MessageRejectErrorEnum> {
1259        let mut fld = field::NoStipulationsField::new(0);
1260        self.message.body.get_field(tag::NO_STIPULATIONS, &mut fld.0)?;
1261        Ok(fld.value())
1262    }
1263
1264
1265    /// Returns true if `NoStipulations` is present, Tag 232.
1266    pub fn has_no_stipulations(&self) -> bool {
1267        self.message.body.has(tag::NO_STIPULATIONS)
1268    }
1269
1270
1271
1272
1273    /// Sets `NoUnderlyings`, Tag 711.
1274    pub fn set_no_underlyings(&mut self, v: isize) {
1275        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
1276    }
1277
1278    /// Gets `NoUnderlyings`, Tag 711.
1279    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
1280        let mut fld = field::NoUnderlyingsField::new(0);
1281        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
1282        Ok(fld.value())
1283    }
1284
1285
1286    /// Returns true if `NoUnderlyings` is present, Tag 711.
1287    pub fn has_no_underlyings(&self) -> bool {
1288        self.message.body.has(tag::NO_UNDERLYINGS)
1289    }
1290
1291
1292
1293
1294    /// Sets `OptAttribute`, Tag 206.
1295    pub fn set_opt_attribute(&mut self, v: String) {
1296        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
1297    }
1298
1299    /// Gets `OptAttribute`, Tag 206.
1300    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
1301        let mut fld = field::OptAttributeField::new(String::new());
1302        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
1303        Ok(fld.value().to_string())
1304    }
1305
1306
1307    /// Returns true if `OptAttribute` is present, Tag 206.
1308    pub fn has_opt_attribute(&self) -> bool {
1309        self.message.body.has(tag::OPT_ATTRIBUTE)
1310    }
1311
1312
1313
1314
1315    /// Sets `OrderPercent`, Tag 516.
1316    pub fn set_order_percent(&mut self, val: Decimal, scale: i32) {
1317        self.message.body.set_field(tag::ORDER_PERCENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1318    }
1319
1320    /// Gets `OrderPercent`, Tag 516.
1321    pub fn get_order_percent(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1322        let mut fld = field::OrderPercentField::new(Decimal::ZERO, 0);
1323        self.message.body.get_field(tag::ORDER_PERCENT, &mut fld.0)?;
1324        Ok(fld.value())
1325    }
1326
1327
1328    /// Returns true if `OrderPercent` is present, Tag 516.
1329    pub fn has_order_percent(&self) -> bool {
1330        self.message.body.has(tag::ORDER_PERCENT)
1331    }
1332
1333
1334
1335
1336    /// Sets `OrderQty`, Tag 38.
1337    pub fn set_order_qty(&mut self, val: Decimal, scale: i32) {
1338        self.message.body.set_field(tag::ORDER_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1339    }
1340
1341    /// Gets `OrderQty`, Tag 38.
1342    pub fn get_order_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1343        let mut fld = field::OrderQtyField::new(Decimal::ZERO, 0);
1344        self.message.body.get_field(tag::ORDER_QTY, &mut fld.0)?;
1345        Ok(fld.value())
1346    }
1347
1348
1349    /// Returns true if `OrderQty` is present, Tag 38.
1350    pub fn has_order_qty(&self) -> bool {
1351        self.message.body.has(tag::ORDER_QTY)
1352    }
1353
1354
1355
1356
1357    /// Sets `Pool`, Tag 691.
1358    pub fn set_pool(&mut self, v: String) {
1359        self.message.body.set_field(tag::POOL, FIXString::from(v));
1360    }
1361
1362    /// Gets `Pool`, Tag 691.
1363    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
1364        let mut fld = field::PoolField::new(String::new());
1365        self.message.body.get_field(tag::POOL, &mut fld.0)?;
1366        Ok(fld.value().to_string())
1367    }
1368
1369
1370    /// Returns true if `Pool` is present, Tag 691.
1371    pub fn has_pool(&self) -> bool {
1372        self.message.body.has(tag::POOL)
1373    }
1374
1375
1376
1377
1378    /// Sets `PositionLimit`, Tag 970.
1379    pub fn set_position_limit(&mut self, v: isize) {
1380        self.message.body.set_field(tag::POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1381    }
1382
1383    /// Gets `PositionLimit`, Tag 970.
1384    pub fn get_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1385        let mut fld = field::PositionLimitField::new(0);
1386        self.message.body.get_field(tag::POSITION_LIMIT, &mut fld.0)?;
1387        Ok(fld.value())
1388    }
1389
1390
1391    /// Returns true if `PositionLimit` is present, Tag 970.
1392    pub fn has_position_limit(&self) -> bool {
1393        self.message.body.has(tag::POSITION_LIMIT)
1394    }
1395
1396
1397
1398
1399    /// Sets `Price`, Tag 44.
1400    pub fn set_price(&mut self, val: Decimal, scale: i32) {
1401        self.message.body.set_field(tag::PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1402    }
1403
1404    /// Gets `Price`, Tag 44.
1405    pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1406        let mut fld = field::PriceField::new(Decimal::ZERO, 0);
1407        self.message.body.get_field(tag::PRICE, &mut fld.0)?;
1408        Ok(fld.value())
1409    }
1410
1411
1412    /// Returns true if `Price` is present, Tag 44.
1413    pub fn has_price(&self) -> bool {
1414        self.message.body.has(tag::PRICE)
1415    }
1416
1417
1418
1419
1420    /// Sets `PriceType`, Tag 423.
1421    pub fn set_price_type(&mut self, v: isize) {
1422        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
1423    }
1424
1425    /// Gets `PriceType`, Tag 423.
1426    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1427        let mut fld = field::PriceTypeField::new(0);
1428        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
1429        Ok(fld.value())
1430    }
1431
1432
1433    /// Returns true if `PriceType` is present, Tag 423.
1434    pub fn has_price_type(&self) -> bool {
1435        self.message.body.has(tag::PRICE_TYPE)
1436    }
1437
1438
1439
1440
1441    /// Sets `Product`, Tag 460.
1442    pub fn set_product(&mut self, v: isize) {
1443        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
1444    }
1445
1446    /// Gets `Product`, Tag 460.
1447    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
1448        let mut fld = field::ProductField::new(0);
1449        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
1450        Ok(fld.value())
1451    }
1452
1453
1454    /// Returns true if `Product` is present, Tag 460.
1455    pub fn has_product(&self) -> bool {
1456        self.message.body.has(tag::PRODUCT)
1457    }
1458
1459
1460
1461
1462    /// Sets `QtyType`, Tag 854.
1463    pub fn set_qty_type(&mut self, v: isize) {
1464        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
1465    }
1466
1467    /// Gets `QtyType`, Tag 854.
1468    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1469        let mut fld = field::QtyTypeField::new(0);
1470        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
1471        Ok(fld.value())
1472    }
1473
1474
1475    /// Returns true if `QtyType` is present, Tag 854.
1476    pub fn has_qty_type(&self) -> bool {
1477        self.message.body.has(tag::QTY_TYPE)
1478    }
1479
1480
1481
1482
1483    /// Sets `RedemptionDate`, Tag 240.
1484    pub fn set_redemption_date(&mut self, v: String) {
1485        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
1486    }
1487
1488    /// Gets `RedemptionDate`, Tag 240.
1489    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
1490        let mut fld = field::RedemptionDateField::new(String::new());
1491        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
1492        Ok(fld.value().to_string())
1493    }
1494
1495
1496    /// Returns true if `RedemptionDate` is present, Tag 240.
1497    pub fn has_redemption_date(&self) -> bool {
1498        self.message.body.has(tag::REDEMPTION_DATE)
1499    }
1500
1501
1502
1503
1504    /// Sets `RepoCollateralSecurityType`, Tag 239.
1505    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
1506        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
1507    }
1508
1509    /// Gets `RepoCollateralSecurityType`, Tag 239.
1510    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1511        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
1512        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
1513        Ok(fld.value())
1514    }
1515
1516
1517    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
1518    pub fn has_repo_collateral_security_type(&self) -> bool {
1519        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
1520    }
1521
1522
1523
1524
1525    /// Sets `RepurchaseRate`, Tag 227.
1526    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
1527        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1528    }
1529
1530    /// Gets `RepurchaseRate`, Tag 227.
1531    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1532        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
1533        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
1534        Ok(fld.value())
1535    }
1536
1537
1538    /// Returns true if `RepurchaseRate` is present, Tag 227.
1539    pub fn has_repurchase_rate(&self) -> bool {
1540        self.message.body.has(tag::REPURCHASE_RATE)
1541    }
1542
1543
1544
1545
1546    /// Sets `RepurchaseTerm`, Tag 226.
1547    pub fn set_repurchase_term(&mut self, v: isize) {
1548        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
1549    }
1550
1551    /// Gets `RepurchaseTerm`, Tag 226.
1552    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
1553        let mut fld = field::RepurchaseTermField::new(0);
1554        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
1555        Ok(fld.value())
1556    }
1557
1558
1559    /// Returns true if `RepurchaseTerm` is present, Tag 226.
1560    pub fn has_repurchase_term(&self) -> bool {
1561        self.message.body.has(tag::REPURCHASE_TERM)
1562    }
1563
1564
1565
1566
1567    /// Sets `RoundingDirection`, Tag 468.
1568    pub fn set_rounding_direction(&mut self, v: String) {
1569        self.message.body.set_field(tag::ROUNDING_DIRECTION, FIXString::from(v));
1570    }
1571
1572    /// Gets `RoundingDirection`, Tag 468.
1573    pub fn get_rounding_direction(&self) -> Result<String, MessageRejectErrorEnum> {
1574        let mut fld = field::RoundingDirectionField::new(String::new());
1575        self.message.body.get_field(tag::ROUNDING_DIRECTION, &mut fld.0)?;
1576        Ok(fld.value().to_string())
1577    }
1578
1579
1580    /// Returns true if `RoundingDirection` is present, Tag 468.
1581    pub fn has_rounding_direction(&self) -> bool {
1582        self.message.body.has(tag::ROUNDING_DIRECTION)
1583    }
1584
1585
1586
1587
1588    /// Sets `RoundingModulus`, Tag 469.
1589    pub fn set_rounding_modulus(&mut self, val: Decimal, scale: i32) {
1590        self.message.body.set_field(tag::ROUNDING_MODULUS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1591    }
1592
1593    /// Gets `RoundingModulus`, Tag 469.
1594    pub fn get_rounding_modulus(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1595        let mut fld = field::RoundingModulusField::new(Decimal::ZERO, 0);
1596        self.message.body.get_field(tag::ROUNDING_MODULUS, &mut fld.0)?;
1597        Ok(fld.value())
1598    }
1599
1600
1601    /// Returns true if `RoundingModulus` is present, Tag 469.
1602    pub fn has_rounding_modulus(&self) -> bool {
1603        self.message.body.has(tag::ROUNDING_MODULUS)
1604    }
1605
1606
1607
1608
1609    /// Sets `SecurityDesc`, Tag 107.
1610    pub fn set_security_desc(&mut self, v: String) {
1611        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
1612    }
1613
1614    /// Gets `SecurityDesc`, Tag 107.
1615    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
1616        let mut fld = field::SecurityDescField::new(String::new());
1617        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
1618        Ok(fld.value().to_string())
1619    }
1620
1621
1622    /// Returns true if `SecurityDesc` is present, Tag 107.
1623    pub fn has_security_desc(&self) -> bool {
1624        self.message.body.has(tag::SECURITY_DESC)
1625    }
1626
1627
1628
1629
1630    /// Sets `SecurityExchange`, Tag 207.
1631    pub fn set_security_exchange(&mut self, v: String) {
1632        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
1633    }
1634
1635    /// Gets `SecurityExchange`, Tag 207.
1636    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
1637        let mut fld = field::SecurityExchangeField::new(String::new());
1638        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
1639        Ok(fld.value().to_string())
1640    }
1641
1642
1643    /// Returns true if `SecurityExchange` is present, Tag 207.
1644    pub fn has_security_exchange(&self) -> bool {
1645        self.message.body.has(tag::SECURITY_EXCHANGE)
1646    }
1647
1648
1649
1650
1651    /// Sets `SecurityID`, Tag 48.
1652    pub fn set_security_id(&mut self, v: String) {
1653        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
1654    }
1655
1656    /// Gets `SecurityID`, Tag 48.
1657    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
1658        let mut fld = field::SecurityIDField::new(String::new());
1659        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
1660        Ok(fld.value().to_string())
1661    }
1662
1663
1664    /// Returns true if `SecurityID` is present, Tag 48.
1665    pub fn has_security_id(&self) -> bool {
1666        self.message.body.has(tag::SECURITY_ID)
1667    }
1668
1669
1670
1671
1672    /// Sets `SecurityIDSource`, Tag 22.
1673    pub fn set_security_id_source(&mut self, v: String) {
1674        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
1675    }
1676
1677    /// Gets `SecurityIDSource`, Tag 22.
1678    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
1679        let mut fld = field::SecurityIDSourceField::new(String::new());
1680        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
1681        Ok(fld.value().to_string())
1682    }
1683
1684
1685    /// Returns true if `SecurityIDSource` is present, Tag 22.
1686    pub fn has_security_id_source(&self) -> bool {
1687        self.message.body.has(tag::SECURITY_ID_SOURCE)
1688    }
1689
1690
1691
1692
1693    /// Sets `SecurityStatus`, Tag 965.
1694    pub fn set_security_status(&mut self, v: String) {
1695        self.message.body.set_field(tag::SECURITY_STATUS, FIXString::from(v));
1696    }
1697
1698    /// Gets `SecurityStatus`, Tag 965.
1699    pub fn get_security_status(&self) -> Result<String, MessageRejectErrorEnum> {
1700        let mut fld = field::SecurityStatusField::new(String::new());
1701        self.message.body.get_field(tag::SECURITY_STATUS, &mut fld.0)?;
1702        Ok(fld.value().to_string())
1703    }
1704
1705
1706    /// Returns true if `SecurityStatus` is present, Tag 965.
1707    pub fn has_security_status(&self) -> bool {
1708        self.message.body.has(tag::SECURITY_STATUS)
1709    }
1710
1711
1712
1713
1714    /// Sets `SecuritySubType`, Tag 762.
1715    pub fn set_security_sub_type(&mut self, v: String) {
1716        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
1717    }
1718
1719    /// Gets `SecuritySubType`, Tag 762.
1720    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
1721        let mut fld = field::SecuritySubTypeField::new(String::new());
1722        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
1723        Ok(fld.value().to_string())
1724    }
1725
1726
1727    /// Returns true if `SecuritySubType` is present, Tag 762.
1728    pub fn has_security_sub_type(&self) -> bool {
1729        self.message.body.has(tag::SECURITY_SUB_TYPE)
1730    }
1731
1732
1733
1734
1735    /// Sets `SecurityType`, Tag 167.
1736    pub fn set_security_type(&mut self, v: String) {
1737        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
1738    }
1739
1740    /// Gets `SecurityType`, Tag 167.
1741    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
1742        let mut fld = field::SecurityTypeField::new(String::new());
1743        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
1744        Ok(fld.value().to_string())
1745    }
1746
1747
1748    /// Returns true if `SecurityType` is present, Tag 167.
1749    pub fn has_security_type(&self) -> bool {
1750        self.message.body.has(tag::SECURITY_TYPE)
1751    }
1752
1753
1754
1755
1756    /// Sets `SettleOnOpenFlag`, Tag 966.
1757    pub fn set_settle_on_open_flag(&mut self, v: String) {
1758        self.message.body.set_field(tag::SETTLE_ON_OPEN_FLAG, FIXString::from(v));
1759    }
1760
1761    /// Gets `SettleOnOpenFlag`, Tag 966.
1762    pub fn get_settle_on_open_flag(&self) -> Result<String, MessageRejectErrorEnum> {
1763        let mut fld = field::SettleOnOpenFlagField::new(String::new());
1764        self.message.body.get_field(tag::SETTLE_ON_OPEN_FLAG, &mut fld.0)?;
1765        Ok(fld.value().to_string())
1766    }
1767
1768
1769    /// Returns true if `SettleOnOpenFlag` is present, Tag 966.
1770    pub fn has_settle_on_open_flag(&self) -> bool {
1771        self.message.body.has(tag::SETTLE_ON_OPEN_FLAG)
1772    }
1773
1774
1775
1776
1777    /// Sets `Side`, Tag 54.
1778    pub fn set_side(&mut self, v: String) {
1779        self.message.body.set_field(tag::SIDE, FIXString::from(v));
1780    }
1781
1782    /// Gets `Side`, Tag 54.
1783    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
1784        let mut fld = field::SideField::new(String::new());
1785        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
1786        Ok(fld.value().to_string())
1787    }
1788
1789
1790    /// Returns true if `Side` is present, Tag 54.
1791    pub fn has_side(&self) -> bool {
1792        self.message.body.has(tag::SIDE)
1793    }
1794
1795
1796
1797
1798    /// Sets `Spread`, Tag 218.
1799    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
1800        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1801    }
1802
1803    /// Gets `Spread`, Tag 218.
1804    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1805        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
1806        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
1807        Ok(fld.value())
1808    }
1809
1810
1811    /// Returns true if `Spread` is present, Tag 218.
1812    pub fn has_spread(&self) -> bool {
1813        self.message.body.has(tag::SPREAD)
1814    }
1815
1816
1817
1818
1819    /// Sets `StartDate`, Tag 916.
1820    pub fn set_start_date(&mut self, v: String) {
1821        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
1822    }
1823
1824    /// Gets `StartDate`, Tag 916.
1825    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
1826        let mut fld = field::StartDateField::new(String::new());
1827        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
1828        Ok(fld.value().to_string())
1829    }
1830
1831
1832    /// Returns true if `StartDate` is present, Tag 916.
1833    pub fn has_start_date(&self) -> bool {
1834        self.message.body.has(tag::START_DATE)
1835    }
1836
1837
1838
1839
1840    /// Sets `StateOrProvinceOfIssue`, Tag 471.
1841    pub fn set_state_or_province_of_issue(&mut self, v: String) {
1842        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
1843    }
1844
1845    /// Gets `StateOrProvinceOfIssue`, Tag 471.
1846    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1847        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
1848        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
1849        Ok(fld.value().to_string())
1850    }
1851
1852
1853    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
1854    pub fn has_state_or_province_of_issue(&self) -> bool {
1855        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
1856    }
1857
1858
1859
1860
1861    /// Sets `StrikeCurrency`, Tag 947.
1862    pub fn set_strike_currency(&mut self, v: String) {
1863        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
1864    }
1865
1866    /// Gets `StrikeCurrency`, Tag 947.
1867    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
1868        let mut fld = field::StrikeCurrencyField::new(String::new());
1869        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
1870        Ok(fld.value().to_string())
1871    }
1872
1873
1874    /// Returns true if `StrikeCurrency` is present, Tag 947.
1875    pub fn has_strike_currency(&self) -> bool {
1876        self.message.body.has(tag::STRIKE_CURRENCY)
1877    }
1878
1879
1880
1881
1882    /// Sets `StrikeMultiplier`, Tag 967.
1883    pub fn set_strike_multiplier(&mut self, val: Decimal, scale: i32) {
1884        self.message.body.set_field(tag::STRIKE_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1885    }
1886
1887    /// Gets `StrikeMultiplier`, Tag 967.
1888    pub fn get_strike_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1889        let mut fld = field::StrikeMultiplierField::new(Decimal::ZERO, 0);
1890        self.message.body.get_field(tag::STRIKE_MULTIPLIER, &mut fld.0)?;
1891        Ok(fld.value())
1892    }
1893
1894
1895    /// Returns true if `StrikeMultiplier` is present, Tag 967.
1896    pub fn has_strike_multiplier(&self) -> bool {
1897        self.message.body.has(tag::STRIKE_MULTIPLIER)
1898    }
1899
1900
1901
1902
1903    /// Sets `StrikePrice`, Tag 202.
1904    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
1905        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1906    }
1907
1908    /// Gets `StrikePrice`, Tag 202.
1909    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1910        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
1911        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
1912        Ok(fld.value())
1913    }
1914
1915
1916    /// Returns true if `StrikePrice` is present, Tag 202.
1917    pub fn has_strike_price(&self) -> bool {
1918        self.message.body.has(tag::STRIKE_PRICE)
1919    }
1920
1921
1922
1923
1924    /// Sets `StrikeValue`, Tag 968.
1925    pub fn set_strike_value(&mut self, val: Decimal, scale: i32) {
1926        self.message.body.set_field(tag::STRIKE_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1927    }
1928
1929    /// Gets `StrikeValue`, Tag 968.
1930    pub fn get_strike_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1931        let mut fld = field::StrikeValueField::new(Decimal::ZERO, 0);
1932        self.message.body.get_field(tag::STRIKE_VALUE, &mut fld.0)?;
1933        Ok(fld.value())
1934    }
1935
1936
1937    /// Returns true if `StrikeValue` is present, Tag 968.
1938    pub fn has_strike_value(&self) -> bool {
1939        self.message.body.has(tag::STRIKE_VALUE)
1940    }
1941
1942
1943
1944
1945    /// Sets `Symbol`, Tag 55.
1946    pub fn set_symbol(&mut self, v: String) {
1947        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
1948    }
1949
1950    /// Gets `Symbol`, Tag 55.
1951    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
1952        let mut fld = field::SymbolField::new(String::new());
1953        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
1954        Ok(fld.value().to_string())
1955    }
1956
1957
1958    /// Returns true if `Symbol` is present, Tag 55.
1959    pub fn has_symbol(&self) -> bool {
1960        self.message.body.has(tag::SYMBOL)
1961    }
1962
1963
1964
1965
1966    /// Sets `SymbolSfx`, Tag 65.
1967    pub fn set_symbol_sfx(&mut self, v: String) {
1968        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
1969    }
1970
1971    /// Gets `SymbolSfx`, Tag 65.
1972    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
1973        let mut fld = field::SymbolSfxField::new(String::new());
1974        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
1975        Ok(fld.value().to_string())
1976    }
1977
1978
1979    /// Returns true if `SymbolSfx` is present, Tag 65.
1980    pub fn has_symbol_sfx(&self) -> bool {
1981        self.message.body.has(tag::SYMBOL_SFX)
1982    }
1983
1984
1985
1986
1987    /// Sets `TerminationType`, Tag 788.
1988    pub fn set_termination_type(&mut self, v: isize) {
1989        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
1990    }
1991
1992    /// Gets `TerminationType`, Tag 788.
1993    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1994        let mut fld = field::TerminationTypeField::new(0);
1995        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
1996        Ok(fld.value())
1997    }
1998
1999
2000    /// Returns true if `TerminationType` is present, Tag 788.
2001    pub fn has_termination_type(&self) -> bool {
2002        self.message.body.has(tag::TERMINATION_TYPE)
2003    }
2004
2005
2006
2007
2008    /// Sets `Text`, Tag 58.
2009    pub fn set_text(&mut self, v: String) {
2010        self.message.body.set_field(tag::TEXT, FIXString::from(v));
2011    }
2012
2013    /// Gets `Text`, Tag 58.
2014    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
2015        let mut fld = field::TextField::new(String::new());
2016        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
2017        Ok(fld.value().to_string())
2018    }
2019
2020
2021    /// Returns true if `Text` is present, Tag 58.
2022    pub fn has_text(&self) -> bool {
2023        self.message.body.has(tag::TEXT)
2024    }
2025
2026
2027
2028
2029    /// Sets `TimeUnit`, Tag 997.
2030    pub fn set_time_unit(&mut self, v: String) {
2031        self.message.body.set_field(tag::TIME_UNIT, FIXString::from(v));
2032    }
2033
2034    /// Gets `TimeUnit`, Tag 997.
2035    pub fn get_time_unit(&self) -> Result<String, MessageRejectErrorEnum> {
2036        let mut fld = field::TimeUnitField::new(String::new());
2037        self.message.body.get_field(tag::TIME_UNIT, &mut fld.0)?;
2038        Ok(fld.value().to_string())
2039    }
2040
2041
2042    /// Returns true if `TimeUnit` is present, Tag 997.
2043    pub fn has_time_unit(&self) -> bool {
2044        self.message.body.has(tag::TIME_UNIT)
2045    }
2046
2047
2048
2049
2050    /// Sets `TransactTime`, Tag 60.
2051    pub fn set_transact_time(&mut self, v: Timestamp) {
2052        self.message.body.set_field(tag::TRANSACT_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
2053            time: v,
2054            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
2055        });
2056    }
2057
2058    /// Gets `TransactTime`, Tag 60.
2059    pub fn get_transact_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
2060        let mut fld = field::TransactTimeField::new(Timestamp::UNIX_EPOCH);
2061        self.message.body.get_field(tag::TRANSACT_TIME, &mut fld.0)?;
2062        Ok(fld.value())
2063    }
2064
2065
2066    /// Returns true if `TransactTime` is present, Tag 60.
2067    pub fn has_transact_time(&self) -> bool {
2068        self.message.body.has(tag::TRANSACT_TIME)
2069    }
2070
2071
2072
2073
2074    /// Sets `URLLink`, Tag 149.
2075    pub fn set_url_link(&mut self, v: String) {
2076        self.message.body.set_field(tag::URL_LINK, FIXString::from(v));
2077    }
2078
2079    /// Gets `URLLink`, Tag 149.
2080    pub fn get_url_link(&self) -> Result<String, MessageRejectErrorEnum> {
2081        let mut fld = field::URLLinkField::new(String::new());
2082        self.message.body.get_field(tag::URL_LINK, &mut fld.0)?;
2083        Ok(fld.value().to_string())
2084    }
2085
2086
2087    /// Returns true if `URLLink` is present, Tag 149.
2088    pub fn has_url_link(&self) -> bool {
2089        self.message.body.has(tag::URL_LINK)
2090    }
2091
2092
2093
2094
2095    /// Sets `UnitOfMeasure`, Tag 996.
2096    pub fn set_unit_of_measure(&mut self, v: String) {
2097        self.message.body.set_field(tag::UNIT_OF_MEASURE, FIXString::from(v));
2098    }
2099
2100    /// Gets `UnitOfMeasure`, Tag 996.
2101    pub fn get_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
2102        let mut fld = field::UnitOfMeasureField::new(String::new());
2103        self.message.body.get_field(tag::UNIT_OF_MEASURE, &mut fld.0)?;
2104        Ok(fld.value().to_string())
2105    }
2106
2107
2108    /// Returns true if `UnitOfMeasure` is present, Tag 996.
2109    pub fn has_unit_of_measure(&self) -> bool {
2110        self.message.body.has(tag::UNIT_OF_MEASURE)
2111    }
2112
2113
2114
2115
2116    /// Sets `ValidUntilTime`, Tag 62.
2117    pub fn set_valid_until_time(&mut self, v: Timestamp) {
2118        self.message.body.set_field(tag::VALID_UNTIL_TIME, fixer::fix_utc_timestamp::FIXUTCTimestamp {
2119            time: v,
2120            precision: fixer::fix_utc_timestamp::TimestampPrecision::Millis,
2121        });
2122    }
2123
2124    /// Gets `ValidUntilTime`, Tag 62.
2125    pub fn get_valid_until_time(&self) -> Result<Timestamp, MessageRejectErrorEnum> {
2126        let mut fld = field::ValidUntilTimeField::new(Timestamp::UNIX_EPOCH);
2127        self.message.body.get_field(tag::VALID_UNTIL_TIME, &mut fld.0)?;
2128        Ok(fld.value())
2129    }
2130
2131
2132    /// Returns true if `ValidUntilTime` is present, Tag 62.
2133    pub fn has_valid_until_time(&self) -> bool {
2134        self.message.body.has(tag::VALID_UNTIL_TIME)
2135    }
2136
2137
2138
2139
2140    /// Sets `Yield`, Tag 236.
2141    pub fn set_yield(&mut self, val: Decimal, scale: i32) {
2142        self.message.body.set_field(tag::YIELD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2143    }
2144
2145    /// Gets `Yield`, Tag 236.
2146    pub fn get_yield(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2147        let mut fld = field::YieldField::new(Decimal::ZERO, 0);
2148        self.message.body.get_field(tag::YIELD, &mut fld.0)?;
2149        Ok(fld.value())
2150    }
2151
2152
2153    /// Returns true if `Yield` is present, Tag 236.
2154    pub fn has_yield(&self) -> bool {
2155        self.message.body.has(tag::YIELD)
2156    }
2157
2158
2159
2160
2161    /// Sets `YieldCalcDate`, Tag 701.
2162    pub fn set_yield_calc_date(&mut self, v: String) {
2163        self.message.body.set_field(tag::YIELD_CALC_DATE, FIXString::from(v));
2164    }
2165
2166    /// Gets `YieldCalcDate`, Tag 701.
2167    pub fn get_yield_calc_date(&self) -> Result<String, MessageRejectErrorEnum> {
2168        let mut fld = field::YieldCalcDateField::new(String::new());
2169        self.message.body.get_field(tag::YIELD_CALC_DATE, &mut fld.0)?;
2170        Ok(fld.value().to_string())
2171    }
2172
2173
2174    /// Returns true if `YieldCalcDate` is present, Tag 701.
2175    pub fn has_yield_calc_date(&self) -> bool {
2176        self.message.body.has(tag::YIELD_CALC_DATE)
2177    }
2178
2179
2180
2181
2182    /// Sets `YieldRedemptionDate`, Tag 696.
2183    pub fn set_yield_redemption_date(&mut self, v: String) {
2184        self.message.body.set_field(tag::YIELD_REDEMPTION_DATE, FIXString::from(v));
2185    }
2186
2187    /// Gets `YieldRedemptionDate`, Tag 696.
2188    pub fn get_yield_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
2189        let mut fld = field::YieldRedemptionDateField::new(String::new());
2190        self.message.body.get_field(tag::YIELD_REDEMPTION_DATE, &mut fld.0)?;
2191        Ok(fld.value().to_string())
2192    }
2193
2194
2195    /// Returns true if `YieldRedemptionDate` is present, Tag 696.
2196    pub fn has_yield_redemption_date(&self) -> bool {
2197        self.message.body.has(tag::YIELD_REDEMPTION_DATE)
2198    }
2199
2200
2201
2202
2203    /// Sets `YieldRedemptionPrice`, Tag 697.
2204    pub fn set_yield_redemption_price(&mut self, val: Decimal, scale: i32) {
2205        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2206    }
2207
2208    /// Gets `YieldRedemptionPrice`, Tag 697.
2209    pub fn get_yield_redemption_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2210        let mut fld = field::YieldRedemptionPriceField::new(Decimal::ZERO, 0);
2211        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE, &mut fld.0)?;
2212        Ok(fld.value())
2213    }
2214
2215
2216    /// Returns true if `YieldRedemptionPrice` is present, Tag 697.
2217    pub fn has_yield_redemption_price(&self) -> bool {
2218        self.message.body.has(tag::YIELD_REDEMPTION_PRICE)
2219    }
2220
2221
2222
2223
2224    /// Sets `YieldRedemptionPriceType`, Tag 698.
2225    pub fn set_yield_redemption_price_type(&mut self, v: isize) {
2226        self.message.body.set_field(tag::YIELD_REDEMPTION_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
2227    }
2228
2229    /// Gets `YieldRedemptionPriceType`, Tag 698.
2230    pub fn get_yield_redemption_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2231        let mut fld = field::YieldRedemptionPriceTypeField::new(0);
2232        self.message.body.get_field(tag::YIELD_REDEMPTION_PRICE_TYPE, &mut fld.0)?;
2233        Ok(fld.value())
2234    }
2235
2236
2237    /// Returns true if `YieldRedemptionPriceType` is present, Tag 698.
2238    pub fn has_yield_redemption_price_type(&self) -> bool {
2239        self.message.body.has(tag::YIELD_REDEMPTION_PRICE_TYPE)
2240    }
2241
2242
2243
2244
2245    /// Sets `YieldType`, Tag 235.
2246    pub fn set_yield_type(&mut self, v: String) {
2247        self.message.body.set_field(tag::YIELD_TYPE, FIXString::from(v));
2248    }
2249
2250    /// Gets `YieldType`, Tag 235.
2251    pub fn get_yield_type(&self) -> Result<String, MessageRejectErrorEnum> {
2252        let mut fld = field::YieldTypeField::new(String::new());
2253        self.message.body.get_field(tag::YIELD_TYPE, &mut fld.0)?;
2254        Ok(fld.value().to_string())
2255    }
2256
2257
2258    /// Returns true if `YieldType` is present, Tag 235.
2259    pub fn has_yield_type(&self) -> bool {
2260        self.message.body.has(tag::YIELD_TYPE)
2261    }
2262
2263
2264}
2265
2266/// `RouteOut` is the callback type for routing `IOI` messages.
2267pub type RouteOut = fn(msg: IOI, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
2268
2269/// Route type returned by the `route` function.
2270pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
2271
2272/// Returns the begin string, message type, and route function for `IOI`.
2273pub fn route(router: RouteOut) -> Route {
2274    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
2275        router(IOI::from_message(msg.clone()), session_id)
2276    };
2277    ("7", "6", Box::new(r))
2278}