Skip to main content

fixer_fix/fix50sp2/
collateral_inquiry.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 crate::field;
16use crate::tag;
17
18/// `CollateralInquiry` is the `fix50sp2` `CollateralInquiry` type, `MsgType` = BB.
19pub struct CollateralInquiry {
20    pub message: Message,
21}
22
23impl CollateralInquiry {
24    /// Creates a new `CollateralInquiry` with required fields.
25    pub fn new(coll_inquiry_id: field::CollInquiryIDField) -> Self {
26        let mut msg = Message::new();
27        msg.header.set_field(tag::MSG_TYPE, FIXString::from("BB".to_string()));
28
29        msg.body.set_field(tag::COLL_INQUIRY_ID, coll_inquiry_id.0);
30
31        Self { message: msg }
32    }
33
34    /// Creates a `CollateralInquiry` from an existing `Message`.
35    pub fn from_message(msg: Message) -> Self {
36        Self { message: msg }
37    }
38
39    /// Returns the underlying `Message`.
40    pub fn to_message(self) -> Message {
41        self.message
42    }
43
44
45
46
47    /// Sets `Account`, Tag 1.
48    pub fn set_account(&mut self, v: String) {
49        self.message.body.set_field(tag::ACCOUNT, FIXString::from(v));
50    }
51
52    /// Gets `Account`, Tag 1.
53    pub fn get_account(&self) -> Result<String, MessageRejectErrorEnum> {
54        let mut fld = field::AccountField::new(String::new());
55        self.message.body.get_field(tag::ACCOUNT, &mut fld.0)?;
56        Ok(fld.value().to_string())
57    }
58
59
60    /// Returns true if `Account` is present, Tag 1.
61    pub fn has_account(&self) -> bool {
62        self.message.body.has(tag::ACCOUNT)
63    }
64
65
66
67
68    /// Sets `AccountType`, Tag 581.
69    pub fn set_account_type(&mut self, v: isize) {
70        self.message.body.set_field(tag::ACCOUNT_TYPE, fixer::fix_int::FIXInt::from(v));
71    }
72
73    /// Gets `AccountType`, Tag 581.
74    pub fn get_account_type(&self) -> Result<isize, MessageRejectErrorEnum> {
75        let mut fld = field::AccountTypeField::new(0);
76        self.message.body.get_field(tag::ACCOUNT_TYPE, &mut fld.0)?;
77        Ok(fld.value())
78    }
79
80
81    /// Returns true if `AccountType` is present, Tag 581.
82    pub fn has_account_type(&self) -> bool {
83        self.message.body.has(tag::ACCOUNT_TYPE)
84    }
85
86
87
88
89    /// Sets `AccruedInterestAmt`, Tag 159.
90    pub fn set_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
91        self.message.body.set_field(tag::ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
92    }
93
94    /// Gets `AccruedInterestAmt`, Tag 159.
95    pub fn get_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
96        let mut fld = field::AccruedInterestAmtField::new(Decimal::ZERO, 0);
97        self.message.body.get_field(tag::ACCRUED_INTEREST_AMT, &mut fld.0)?;
98        Ok(fld.value())
99    }
100
101
102    /// Returns true if `AccruedInterestAmt` is present, Tag 159.
103    pub fn has_accrued_interest_amt(&self) -> bool {
104        self.message.body.has(tag::ACCRUED_INTEREST_AMT)
105    }
106
107
108
109
110    /// Sets `AgreementCurrency`, Tag 918.
111    pub fn set_agreement_currency(&mut self, v: String) {
112        self.message.body.set_field(tag::AGREEMENT_CURRENCY, FIXString::from(v));
113    }
114
115    /// Gets `AgreementCurrency`, Tag 918.
116    pub fn get_agreement_currency(&self) -> Result<String, MessageRejectErrorEnum> {
117        let mut fld = field::AgreementCurrencyField::new(String::new());
118        self.message.body.get_field(tag::AGREEMENT_CURRENCY, &mut fld.0)?;
119        Ok(fld.value().to_string())
120    }
121
122
123    /// Returns true if `AgreementCurrency` is present, Tag 918.
124    pub fn has_agreement_currency(&self) -> bool {
125        self.message.body.has(tag::AGREEMENT_CURRENCY)
126    }
127
128
129
130
131    /// Sets `AgreementDate`, Tag 915.
132    pub fn set_agreement_date(&mut self, v: String) {
133        self.message.body.set_field(tag::AGREEMENT_DATE, FIXString::from(v));
134    }
135
136    /// Gets `AgreementDate`, Tag 915.
137    pub fn get_agreement_date(&self) -> Result<String, MessageRejectErrorEnum> {
138        let mut fld = field::AgreementDateField::new(String::new());
139        self.message.body.get_field(tag::AGREEMENT_DATE, &mut fld.0)?;
140        Ok(fld.value().to_string())
141    }
142
143
144    /// Returns true if `AgreementDate` is present, Tag 915.
145    pub fn has_agreement_date(&self) -> bool {
146        self.message.body.has(tag::AGREEMENT_DATE)
147    }
148
149
150
151
152    /// Sets `AgreementDesc`, Tag 913.
153    pub fn set_agreement_desc(&mut self, v: String) {
154        self.message.body.set_field(tag::AGREEMENT_DESC, FIXString::from(v));
155    }
156
157    /// Gets `AgreementDesc`, Tag 913.
158    pub fn get_agreement_desc(&self) -> Result<String, MessageRejectErrorEnum> {
159        let mut fld = field::AgreementDescField::new(String::new());
160        self.message.body.get_field(tag::AGREEMENT_DESC, &mut fld.0)?;
161        Ok(fld.value().to_string())
162    }
163
164
165    /// Returns true if `AgreementDesc` is present, Tag 913.
166    pub fn has_agreement_desc(&self) -> bool {
167        self.message.body.has(tag::AGREEMENT_DESC)
168    }
169
170
171
172
173    /// Sets `AgreementID`, Tag 914.
174    pub fn set_agreement_id(&mut self, v: String) {
175        self.message.body.set_field(tag::AGREEMENT_ID, FIXString::from(v));
176    }
177
178    /// Gets `AgreementID`, Tag 914.
179    pub fn get_agreement_id(&self) -> Result<String, MessageRejectErrorEnum> {
180        let mut fld = field::AgreementIDField::new(String::new());
181        self.message.body.get_field(tag::AGREEMENT_ID, &mut fld.0)?;
182        Ok(fld.value().to_string())
183    }
184
185
186    /// Returns true if `AgreementID` is present, Tag 914.
187    pub fn has_agreement_id(&self) -> bool {
188        self.message.body.has(tag::AGREEMENT_ID)
189    }
190
191
192
193
194    /// Sets `AttachmentPoint`, Tag 1457.
195    pub fn set_attachment_point(&mut self, val: Decimal, scale: i32) {
196        self.message.body.set_field(tag::ATTACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
197    }
198
199    /// Gets `AttachmentPoint`, Tag 1457.
200    pub fn get_attachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
201        let mut fld = field::AttachmentPointField::new(Decimal::ZERO, 0);
202        self.message.body.get_field(tag::ATTACHMENT_POINT, &mut fld.0)?;
203        Ok(fld.value())
204    }
205
206
207    /// Returns true if `AttachmentPoint` is present, Tag 1457.
208    pub fn has_attachment_point(&self) -> bool {
209        self.message.body.has(tag::ATTACHMENT_POINT)
210    }
211
212
213
214
215    /// Sets `BenchmarkCurveCurrency`, Tag 220.
216    pub fn set_benchmark_curve_currency(&mut self, v: String) {
217        self.message.body.set_field(tag::BENCHMARK_CURVE_CURRENCY, FIXString::from(v));
218    }
219
220    /// Gets `BenchmarkCurveCurrency`, Tag 220.
221    pub fn get_benchmark_curve_currency(&self) -> Result<String, MessageRejectErrorEnum> {
222        let mut fld = field::BenchmarkCurveCurrencyField::new(String::new());
223        self.message.body.get_field(tag::BENCHMARK_CURVE_CURRENCY, &mut fld.0)?;
224        Ok(fld.value().to_string())
225    }
226
227
228    /// Returns true if `BenchmarkCurveCurrency` is present, Tag 220.
229    pub fn has_benchmark_curve_currency(&self) -> bool {
230        self.message.body.has(tag::BENCHMARK_CURVE_CURRENCY)
231    }
232
233
234
235
236    /// Sets `BenchmarkCurveName`, Tag 221.
237    pub fn set_benchmark_curve_name(&mut self, v: String) {
238        self.message.body.set_field(tag::BENCHMARK_CURVE_NAME, FIXString::from(v));
239    }
240
241    /// Gets `BenchmarkCurveName`, Tag 221.
242    pub fn get_benchmark_curve_name(&self) -> Result<String, MessageRejectErrorEnum> {
243        let mut fld = field::BenchmarkCurveNameField::new(String::new());
244        self.message.body.get_field(tag::BENCHMARK_CURVE_NAME, &mut fld.0)?;
245        Ok(fld.value().to_string())
246    }
247
248
249    /// Returns true if `BenchmarkCurveName` is present, Tag 221.
250    pub fn has_benchmark_curve_name(&self) -> bool {
251        self.message.body.has(tag::BENCHMARK_CURVE_NAME)
252    }
253
254
255
256
257    /// Sets `BenchmarkCurvePoint`, Tag 222.
258    pub fn set_benchmark_curve_point(&mut self, v: String) {
259        self.message.body.set_field(tag::BENCHMARK_CURVE_POINT, FIXString::from(v));
260    }
261
262    /// Gets `BenchmarkCurvePoint`, Tag 222.
263    pub fn get_benchmark_curve_point(&self) -> Result<String, MessageRejectErrorEnum> {
264        let mut fld = field::BenchmarkCurvePointField::new(String::new());
265        self.message.body.get_field(tag::BENCHMARK_CURVE_POINT, &mut fld.0)?;
266        Ok(fld.value().to_string())
267    }
268
269
270    /// Returns true if `BenchmarkCurvePoint` is present, Tag 222.
271    pub fn has_benchmark_curve_point(&self) -> bool {
272        self.message.body.has(tag::BENCHMARK_CURVE_POINT)
273    }
274
275
276
277
278    /// Sets `BenchmarkPrice`, Tag 662.
279    pub fn set_benchmark_price(&mut self, val: Decimal, scale: i32) {
280        self.message.body.set_field(tag::BENCHMARK_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
281    }
282
283    /// Gets `BenchmarkPrice`, Tag 662.
284    pub fn get_benchmark_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
285        let mut fld = field::BenchmarkPriceField::new(Decimal::ZERO, 0);
286        self.message.body.get_field(tag::BENCHMARK_PRICE, &mut fld.0)?;
287        Ok(fld.value())
288    }
289
290
291    /// Returns true if `BenchmarkPrice` is present, Tag 662.
292    pub fn has_benchmark_price(&self) -> bool {
293        self.message.body.has(tag::BENCHMARK_PRICE)
294    }
295
296
297
298
299    /// Sets `BenchmarkPriceType`, Tag 663.
300    pub fn set_benchmark_price_type(&mut self, v: isize) {
301        self.message.body.set_field(tag::BENCHMARK_PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
302    }
303
304    /// Gets `BenchmarkPriceType`, Tag 663.
305    pub fn get_benchmark_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
306        let mut fld = field::BenchmarkPriceTypeField::new(0);
307        self.message.body.get_field(tag::BENCHMARK_PRICE_TYPE, &mut fld.0)?;
308        Ok(fld.value())
309    }
310
311
312    /// Returns true if `BenchmarkPriceType` is present, Tag 663.
313    pub fn has_benchmark_price_type(&self) -> bool {
314        self.message.body.has(tag::BENCHMARK_PRICE_TYPE)
315    }
316
317
318
319
320    /// Sets `BenchmarkSecurityID`, Tag 699.
321    pub fn set_benchmark_security_id(&mut self, v: String) {
322        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID, FIXString::from(v));
323    }
324
325    /// Gets `BenchmarkSecurityID`, Tag 699.
326    pub fn get_benchmark_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
327        let mut fld = field::BenchmarkSecurityIDField::new(String::new());
328        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID, &mut fld.0)?;
329        Ok(fld.value().to_string())
330    }
331
332
333    /// Returns true if `BenchmarkSecurityID` is present, Tag 699.
334    pub fn has_benchmark_security_id(&self) -> bool {
335        self.message.body.has(tag::BENCHMARK_SECURITY_ID)
336    }
337
338
339
340
341    /// Sets `BenchmarkSecurityIDSource`, Tag 761.
342    pub fn set_benchmark_security_id_source(&mut self, v: String) {
343        self.message.body.set_field(tag::BENCHMARK_SECURITY_ID_SOURCE, FIXString::from(v));
344    }
345
346    /// Gets `BenchmarkSecurityIDSource`, Tag 761.
347    pub fn get_benchmark_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
348        let mut fld = field::BenchmarkSecurityIDSourceField::new(String::new());
349        self.message.body.get_field(tag::BENCHMARK_SECURITY_ID_SOURCE, &mut fld.0)?;
350        Ok(fld.value().to_string())
351    }
352
353
354    /// Returns true if `BenchmarkSecurityIDSource` is present, Tag 761.
355    pub fn has_benchmark_security_id_source(&self) -> bool {
356        self.message.body.has(tag::BENCHMARK_SECURITY_ID_SOURCE)
357    }
358
359
360
361
362    /// Sets `CFICode`, Tag 461.
363    pub fn set_cfi_code(&mut self, v: String) {
364        self.message.body.set_field(tag::CFI_CODE, FIXString::from(v));
365    }
366
367    /// Gets `CFICode`, Tag 461.
368    pub fn get_cfi_code(&self) -> Result<String, MessageRejectErrorEnum> {
369        let mut fld = field::CFICodeField::new(String::new());
370        self.message.body.get_field(tag::CFI_CODE, &mut fld.0)?;
371        Ok(fld.value().to_string())
372    }
373
374
375    /// Returns true if `CFICode` is present, Tag 461.
376    pub fn has_cfi_code(&self) -> bool {
377        self.message.body.has(tag::CFI_CODE)
378    }
379
380
381
382
383    /// Sets `CPProgram`, Tag 875.
384    pub fn set_cp_program(&mut self, v: isize) {
385        self.message.body.set_field(tag::CP_PROGRAM, fixer::fix_int::FIXInt::from(v));
386    }
387
388    /// Gets `CPProgram`, Tag 875.
389    pub fn get_cp_program(&self) -> Result<isize, MessageRejectErrorEnum> {
390        let mut fld = field::CPProgramField::new(0);
391        self.message.body.get_field(tag::CP_PROGRAM, &mut fld.0)?;
392        Ok(fld.value())
393    }
394
395
396    /// Returns true if `CPProgram` is present, Tag 875.
397    pub fn has_cp_program(&self) -> bool {
398        self.message.body.has(tag::CP_PROGRAM)
399    }
400
401
402
403
404    /// Sets `CPRegType`, Tag 876.
405    pub fn set_cp_reg_type(&mut self, v: String) {
406        self.message.body.set_field(tag::CP_REG_TYPE, FIXString::from(v));
407    }
408
409    /// Gets `CPRegType`, Tag 876.
410    pub fn get_cp_reg_type(&self) -> Result<String, MessageRejectErrorEnum> {
411        let mut fld = field::CPRegTypeField::new(String::new());
412        self.message.body.get_field(tag::CP_REG_TYPE, &mut fld.0)?;
413        Ok(fld.value().to_string())
414    }
415
416
417    /// Returns true if `CPRegType` is present, Tag 876.
418    pub fn has_cp_reg_type(&self) -> bool {
419        self.message.body.has(tag::CP_REG_TYPE)
420    }
421
422
423
424
425    /// Sets `CapPrice`, Tag 1199.
426    pub fn set_cap_price(&mut self, val: Decimal, scale: i32) {
427        self.message.body.set_field(tag::CAP_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
428    }
429
430    /// Gets `CapPrice`, Tag 1199.
431    pub fn get_cap_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
432        let mut fld = field::CapPriceField::new(Decimal::ZERO, 0);
433        self.message.body.get_field(tag::CAP_PRICE, &mut fld.0)?;
434        Ok(fld.value())
435    }
436
437
438    /// Returns true if `CapPrice` is present, Tag 1199.
439    pub fn has_cap_price(&self) -> bool {
440        self.message.body.has(tag::CAP_PRICE)
441    }
442
443
444
445
446    /// Sets `CashOutstanding`, Tag 901.
447    pub fn set_cash_outstanding(&mut self, val: Decimal, scale: i32) {
448        self.message.body.set_field(tag::CASH_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
449    }
450
451    /// Gets `CashOutstanding`, Tag 901.
452    pub fn get_cash_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
453        let mut fld = field::CashOutstandingField::new(Decimal::ZERO, 0);
454        self.message.body.get_field(tag::CASH_OUTSTANDING, &mut fld.0)?;
455        Ok(fld.value())
456    }
457
458
459    /// Returns true if `CashOutstanding` is present, Tag 901.
460    pub fn has_cash_outstanding(&self) -> bool {
461        self.message.body.has(tag::CASH_OUTSTANDING)
462    }
463
464
465
466
467    /// Sets `ClOrdID`, Tag 11.
468    pub fn set_cl_ord_id(&mut self, v: String) {
469        self.message.body.set_field(tag::CL_ORD_ID, FIXString::from(v));
470    }
471
472    /// Gets `ClOrdID`, Tag 11.
473    pub fn get_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
474        let mut fld = field::ClOrdIDField::new(String::new());
475        self.message.body.get_field(tag::CL_ORD_ID, &mut fld.0)?;
476        Ok(fld.value().to_string())
477    }
478
479
480    /// Returns true if `ClOrdID` is present, Tag 11.
481    pub fn has_cl_ord_id(&self) -> bool {
482        self.message.body.has(tag::CL_ORD_ID)
483    }
484
485
486
487
488    /// Sets `ClearingBusinessDate`, Tag 715.
489    pub fn set_clearing_business_date(&mut self, v: String) {
490        self.message.body.set_field(tag::CLEARING_BUSINESS_DATE, FIXString::from(v));
491    }
492
493    /// Gets `ClearingBusinessDate`, Tag 715.
494    pub fn get_clearing_business_date(&self) -> Result<String, MessageRejectErrorEnum> {
495        let mut fld = field::ClearingBusinessDateField::new(String::new());
496        self.message.body.get_field(tag::CLEARING_BUSINESS_DATE, &mut fld.0)?;
497        Ok(fld.value().to_string())
498    }
499
500
501    /// Returns true if `ClearingBusinessDate` is present, Tag 715.
502    pub fn has_clearing_business_date(&self) -> bool {
503        self.message.body.has(tag::CLEARING_BUSINESS_DATE)
504    }
505
506
507
508
509    /// Sets `CollInquiryID`, Tag 909.
510    pub fn set_coll_inquiry_id(&mut self, v: String) {
511        self.message.body.set_field(tag::COLL_INQUIRY_ID, FIXString::from(v));
512    }
513
514    /// Gets `CollInquiryID`, Tag 909.
515    pub fn get_coll_inquiry_id(&self) -> Result<String, MessageRejectErrorEnum> {
516        let mut fld = field::CollInquiryIDField::new(String::new());
517        self.message.body.get_field(tag::COLL_INQUIRY_ID, &mut fld.0)?;
518        Ok(fld.value().to_string())
519    }
520
521
522    /// Returns true if `CollInquiryID` is present, Tag 909.
523    pub fn has_coll_inquiry_id(&self) -> bool {
524        self.message.body.has(tag::COLL_INQUIRY_ID)
525    }
526
527
528
529
530    /// Sets `ContractMultiplier`, Tag 231.
531    pub fn set_contract_multiplier(&mut self, val: Decimal, scale: i32) {
532        self.message.body.set_field(tag::CONTRACT_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
533    }
534
535    /// Gets `ContractMultiplier`, Tag 231.
536    pub fn get_contract_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
537        let mut fld = field::ContractMultiplierField::new(Decimal::ZERO, 0);
538        self.message.body.get_field(tag::CONTRACT_MULTIPLIER, &mut fld.0)?;
539        Ok(fld.value())
540    }
541
542
543    /// Returns true if `ContractMultiplier` is present, Tag 231.
544    pub fn has_contract_multiplier(&self) -> bool {
545        self.message.body.has(tag::CONTRACT_MULTIPLIER)
546    }
547
548
549
550
551    /// Sets `ContractMultiplierUnit`, Tag 1435.
552    pub fn set_contract_multiplier_unit(&mut self, v: isize) {
553        self.message.body.set_field(tag::CONTRACT_MULTIPLIER_UNIT, fixer::fix_int::FIXInt::from(v));
554    }
555
556    /// Gets `ContractMultiplierUnit`, Tag 1435.
557    pub fn get_contract_multiplier_unit(&self) -> Result<isize, MessageRejectErrorEnum> {
558        let mut fld = field::ContractMultiplierUnitField::new(0);
559        self.message.body.get_field(tag::CONTRACT_MULTIPLIER_UNIT, &mut fld.0)?;
560        Ok(fld.value())
561    }
562
563
564    /// Returns true if `ContractMultiplierUnit` is present, Tag 1435.
565    pub fn has_contract_multiplier_unit(&self) -> bool {
566        self.message.body.has(tag::CONTRACT_MULTIPLIER_UNIT)
567    }
568
569
570
571
572    /// Sets `ContractSettlMonth`, Tag 667.
573    pub fn set_contract_settl_month(&mut self, v: String) {
574        self.message.body.set_field(tag::CONTRACT_SETTL_MONTH, FIXString::from(v));
575    }
576
577    /// Gets `ContractSettlMonth`, Tag 667.
578    pub fn get_contract_settl_month(&self) -> Result<String, MessageRejectErrorEnum> {
579        let mut fld = field::ContractSettlMonthField::new(String::new());
580        self.message.body.get_field(tag::CONTRACT_SETTL_MONTH, &mut fld.0)?;
581        Ok(fld.value().to_string())
582    }
583
584
585    /// Returns true if `ContractSettlMonth` is present, Tag 667.
586    pub fn has_contract_settl_month(&self) -> bool {
587        self.message.body.has(tag::CONTRACT_SETTL_MONTH)
588    }
589
590
591
592
593    /// Sets `CountryOfIssue`, Tag 470.
594    pub fn set_country_of_issue(&mut self, v: String) {
595        self.message.body.set_field(tag::COUNTRY_OF_ISSUE, FIXString::from(v));
596    }
597
598    /// Gets `CountryOfIssue`, Tag 470.
599    pub fn get_country_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
600        let mut fld = field::CountryOfIssueField::new(String::new());
601        self.message.body.get_field(tag::COUNTRY_OF_ISSUE, &mut fld.0)?;
602        Ok(fld.value().to_string())
603    }
604
605
606    /// Returns true if `CountryOfIssue` is present, Tag 470.
607    pub fn has_country_of_issue(&self) -> bool {
608        self.message.body.has(tag::COUNTRY_OF_ISSUE)
609    }
610
611
612
613
614    /// Sets `CouponPaymentDate`, Tag 224.
615    pub fn set_coupon_payment_date(&mut self, v: String) {
616        self.message.body.set_field(tag::COUPON_PAYMENT_DATE, FIXString::from(v));
617    }
618
619    /// Gets `CouponPaymentDate`, Tag 224.
620    pub fn get_coupon_payment_date(&self) -> Result<String, MessageRejectErrorEnum> {
621        let mut fld = field::CouponPaymentDateField::new(String::new());
622        self.message.body.get_field(tag::COUPON_PAYMENT_DATE, &mut fld.0)?;
623        Ok(fld.value().to_string())
624    }
625
626
627    /// Returns true if `CouponPaymentDate` is present, Tag 224.
628    pub fn has_coupon_payment_date(&self) -> bool {
629        self.message.body.has(tag::COUPON_PAYMENT_DATE)
630    }
631
632
633
634
635    /// Sets `CouponRate`, Tag 223.
636    pub fn set_coupon_rate(&mut self, val: Decimal, scale: i32) {
637        self.message.body.set_field(tag::COUPON_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
638    }
639
640    /// Gets `CouponRate`, Tag 223.
641    pub fn get_coupon_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
642        let mut fld = field::CouponRateField::new(Decimal::ZERO, 0);
643        self.message.body.get_field(tag::COUPON_RATE, &mut fld.0)?;
644        Ok(fld.value())
645    }
646
647
648    /// Returns true if `CouponRate` is present, Tag 223.
649    pub fn has_coupon_rate(&self) -> bool {
650        self.message.body.has(tag::COUPON_RATE)
651    }
652
653
654
655
656    /// Sets `CreditRating`, Tag 255.
657    pub fn set_credit_rating(&mut self, v: String) {
658        self.message.body.set_field(tag::CREDIT_RATING, FIXString::from(v));
659    }
660
661    /// Gets `CreditRating`, Tag 255.
662    pub fn get_credit_rating(&self) -> Result<String, MessageRejectErrorEnum> {
663        let mut fld = field::CreditRatingField::new(String::new());
664        self.message.body.get_field(tag::CREDIT_RATING, &mut fld.0)?;
665        Ok(fld.value().to_string())
666    }
667
668
669    /// Returns true if `CreditRating` is present, Tag 255.
670    pub fn has_credit_rating(&self) -> bool {
671        self.message.body.has(tag::CREDIT_RATING)
672    }
673
674
675
676
677    /// Sets `Currency`, Tag 15.
678    pub fn set_currency(&mut self, v: String) {
679        self.message.body.set_field(tag::CURRENCY, FIXString::from(v));
680    }
681
682    /// Gets `Currency`, Tag 15.
683    pub fn get_currency(&self) -> Result<String, MessageRejectErrorEnum> {
684        let mut fld = field::CurrencyField::new(String::new());
685        self.message.body.get_field(tag::CURRENCY, &mut fld.0)?;
686        Ok(fld.value().to_string())
687    }
688
689
690    /// Returns true if `Currency` is present, Tag 15.
691    pub fn has_currency(&self) -> bool {
692        self.message.body.has(tag::CURRENCY)
693    }
694
695
696
697
698    /// Sets `DatedDate`, Tag 873.
699    pub fn set_dated_date(&mut self, v: String) {
700        self.message.body.set_field(tag::DATED_DATE, FIXString::from(v));
701    }
702
703    /// Gets `DatedDate`, Tag 873.
704    pub fn get_dated_date(&self) -> Result<String, MessageRejectErrorEnum> {
705        let mut fld = field::DatedDateField::new(String::new());
706        self.message.body.get_field(tag::DATED_DATE, &mut fld.0)?;
707        Ok(fld.value().to_string())
708    }
709
710
711    /// Returns true if `DatedDate` is present, Tag 873.
712    pub fn has_dated_date(&self) -> bool {
713        self.message.body.has(tag::DATED_DATE)
714    }
715
716
717
718
719    /// Sets `DeliveryType`, Tag 919.
720    pub fn set_delivery_type(&mut self, v: isize) {
721        self.message.body.set_field(tag::DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
722    }
723
724    /// Gets `DeliveryType`, Tag 919.
725    pub fn get_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
726        let mut fld = field::DeliveryTypeField::new(0);
727        self.message.body.get_field(tag::DELIVERY_TYPE, &mut fld.0)?;
728        Ok(fld.value())
729    }
730
731
732    /// Returns true if `DeliveryType` is present, Tag 919.
733    pub fn has_delivery_type(&self) -> bool {
734        self.message.body.has(tag::DELIVERY_TYPE)
735    }
736
737
738
739
740    /// Sets `DetachmentPoint`, Tag 1458.
741    pub fn set_detachment_point(&mut self, val: Decimal, scale: i32) {
742        self.message.body.set_field(tag::DETACHMENT_POINT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
743    }
744
745    /// Gets `DetachmentPoint`, Tag 1458.
746    pub fn get_detachment_point(&self) -> Result<Decimal, MessageRejectErrorEnum> {
747        let mut fld = field::DetachmentPointField::new(Decimal::ZERO, 0);
748        self.message.body.get_field(tag::DETACHMENT_POINT, &mut fld.0)?;
749        Ok(fld.value())
750    }
751
752
753    /// Returns true if `DetachmentPoint` is present, Tag 1458.
754    pub fn has_detachment_point(&self) -> bool {
755        self.message.body.has(tag::DETACHMENT_POINT)
756    }
757
758
759
760
761    /// Sets `EncodedIssuer`, Tag 349.
762    pub fn set_encoded_issuer(&mut self, v: String) {
763        self.message.body.set_field(tag::ENCODED_ISSUER, FIXString::from(v));
764    }
765
766    /// Gets `EncodedIssuer`, Tag 349.
767    pub fn get_encoded_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
768        let mut fld = field::EncodedIssuerField::new(String::new());
769        self.message.body.get_field(tag::ENCODED_ISSUER, &mut fld.0)?;
770        Ok(fld.value().to_string())
771    }
772
773
774    /// Returns true if `EncodedIssuer` is present, Tag 349.
775    pub fn has_encoded_issuer(&self) -> bool {
776        self.message.body.has(tag::ENCODED_ISSUER)
777    }
778
779
780
781
782    /// Sets `EncodedIssuerLen`, Tag 348.
783    pub fn set_encoded_issuer_len(&mut self, v: isize) {
784        self.message.body.set_field(tag::ENCODED_ISSUER_LEN, fixer::fix_int::FIXInt::from(v));
785    }
786
787    /// Gets `EncodedIssuerLen`, Tag 348.
788    pub fn get_encoded_issuer_len(&self) -> Result<isize, MessageRejectErrorEnum> {
789        let mut fld = field::EncodedIssuerLenField::new(0);
790        self.message.body.get_field(tag::ENCODED_ISSUER_LEN, &mut fld.0)?;
791        Ok(fld.value())
792    }
793
794
795    /// Returns true if `EncodedIssuerLen` is present, Tag 348.
796    pub fn has_encoded_issuer_len(&self) -> bool {
797        self.message.body.has(tag::ENCODED_ISSUER_LEN)
798    }
799
800
801
802
803    /// Sets `EncodedSecurityDesc`, Tag 351.
804    pub fn set_encoded_security_desc(&mut self, v: String) {
805        self.message.body.set_field(tag::ENCODED_SECURITY_DESC, FIXString::from(v));
806    }
807
808    /// Gets `EncodedSecurityDesc`, Tag 351.
809    pub fn get_encoded_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
810        let mut fld = field::EncodedSecurityDescField::new(String::new());
811        self.message.body.get_field(tag::ENCODED_SECURITY_DESC, &mut fld.0)?;
812        Ok(fld.value().to_string())
813    }
814
815
816    /// Returns true if `EncodedSecurityDesc` is present, Tag 351.
817    pub fn has_encoded_security_desc(&self) -> bool {
818        self.message.body.has(tag::ENCODED_SECURITY_DESC)
819    }
820
821
822
823
824    /// Sets `EncodedSecurityDescLen`, Tag 350.
825    pub fn set_encoded_security_desc_len(&mut self, v: isize) {
826        self.message.body.set_field(tag::ENCODED_SECURITY_DESC_LEN, fixer::fix_int::FIXInt::from(v));
827    }
828
829    /// Gets `EncodedSecurityDescLen`, Tag 350.
830    pub fn get_encoded_security_desc_len(&self) -> Result<isize, MessageRejectErrorEnum> {
831        let mut fld = field::EncodedSecurityDescLenField::new(0);
832        self.message.body.get_field(tag::ENCODED_SECURITY_DESC_LEN, &mut fld.0)?;
833        Ok(fld.value())
834    }
835
836
837    /// Returns true if `EncodedSecurityDescLen` is present, Tag 350.
838    pub fn has_encoded_security_desc_len(&self) -> bool {
839        self.message.body.has(tag::ENCODED_SECURITY_DESC_LEN)
840    }
841
842
843
844
845    /// Sets `EncodedText`, Tag 355.
846    pub fn set_encoded_text(&mut self, v: String) {
847        self.message.body.set_field(tag::ENCODED_TEXT, FIXString::from(v));
848    }
849
850    /// Gets `EncodedText`, Tag 355.
851    pub fn get_encoded_text(&self) -> Result<String, MessageRejectErrorEnum> {
852        let mut fld = field::EncodedTextField::new(String::new());
853        self.message.body.get_field(tag::ENCODED_TEXT, &mut fld.0)?;
854        Ok(fld.value().to_string())
855    }
856
857
858    /// Returns true if `EncodedText` is present, Tag 355.
859    pub fn has_encoded_text(&self) -> bool {
860        self.message.body.has(tag::ENCODED_TEXT)
861    }
862
863
864
865
866    /// Sets `EncodedTextLen`, Tag 354.
867    pub fn set_encoded_text_len(&mut self, v: isize) {
868        self.message.body.set_field(tag::ENCODED_TEXT_LEN, fixer::fix_int::FIXInt::from(v));
869    }
870
871    /// Gets `EncodedTextLen`, Tag 354.
872    pub fn get_encoded_text_len(&self) -> Result<isize, MessageRejectErrorEnum> {
873        let mut fld = field::EncodedTextLenField::new(0);
874        self.message.body.get_field(tag::ENCODED_TEXT_LEN, &mut fld.0)?;
875        Ok(fld.value())
876    }
877
878
879    /// Returns true if `EncodedTextLen` is present, Tag 354.
880    pub fn has_encoded_text_len(&self) -> bool {
881        self.message.body.has(tag::ENCODED_TEXT_LEN)
882    }
883
884
885
886
887    /// Sets `EndAccruedInterestAmt`, Tag 920.
888    pub fn set_end_accrued_interest_amt(&mut self, val: Decimal, scale: i32) {
889        self.message.body.set_field(tag::END_ACCRUED_INTEREST_AMT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
890    }
891
892    /// Gets `EndAccruedInterestAmt`, Tag 920.
893    pub fn get_end_accrued_interest_amt(&self) -> Result<Decimal, MessageRejectErrorEnum> {
894        let mut fld = field::EndAccruedInterestAmtField::new(Decimal::ZERO, 0);
895        self.message.body.get_field(tag::END_ACCRUED_INTEREST_AMT, &mut fld.0)?;
896        Ok(fld.value())
897    }
898
899
900    /// Returns true if `EndAccruedInterestAmt` is present, Tag 920.
901    pub fn has_end_accrued_interest_amt(&self) -> bool {
902        self.message.body.has(tag::END_ACCRUED_INTEREST_AMT)
903    }
904
905
906
907
908    /// Sets `EndCash`, Tag 922.
909    pub fn set_end_cash(&mut self, val: Decimal, scale: i32) {
910        self.message.body.set_field(tag::END_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
911    }
912
913    /// Gets `EndCash`, Tag 922.
914    pub fn get_end_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
915        let mut fld = field::EndCashField::new(Decimal::ZERO, 0);
916        self.message.body.get_field(tag::END_CASH, &mut fld.0)?;
917        Ok(fld.value())
918    }
919
920
921    /// Returns true if `EndCash` is present, Tag 922.
922    pub fn has_end_cash(&self) -> bool {
923        self.message.body.has(tag::END_CASH)
924    }
925
926
927
928
929    /// Sets `EndDate`, Tag 917.
930    pub fn set_end_date(&mut self, v: String) {
931        self.message.body.set_field(tag::END_DATE, FIXString::from(v));
932    }
933
934    /// Gets `EndDate`, Tag 917.
935    pub fn get_end_date(&self) -> Result<String, MessageRejectErrorEnum> {
936        let mut fld = field::EndDateField::new(String::new());
937        self.message.body.get_field(tag::END_DATE, &mut fld.0)?;
938        Ok(fld.value().to_string())
939    }
940
941
942    /// Returns true if `EndDate` is present, Tag 917.
943    pub fn has_end_date(&self) -> bool {
944        self.message.body.has(tag::END_DATE)
945    }
946
947
948
949
950    /// Sets `ExerciseStyle`, Tag 1194.
951    pub fn set_exercise_style(&mut self, v: isize) {
952        self.message.body.set_field(tag::EXERCISE_STYLE, fixer::fix_int::FIXInt::from(v));
953    }
954
955    /// Gets `ExerciseStyle`, Tag 1194.
956    pub fn get_exercise_style(&self) -> Result<isize, MessageRejectErrorEnum> {
957        let mut fld = field::ExerciseStyleField::new(0);
958        self.message.body.get_field(tag::EXERCISE_STYLE, &mut fld.0)?;
959        Ok(fld.value())
960    }
961
962
963    /// Returns true if `ExerciseStyle` is present, Tag 1194.
964    pub fn has_exercise_style(&self) -> bool {
965        self.message.body.has(tag::EXERCISE_STYLE)
966    }
967
968
969
970
971    /// Sets `Factor`, Tag 228.
972    pub fn set_factor(&mut self, val: Decimal, scale: i32) {
973        self.message.body.set_field(tag::FACTOR, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
974    }
975
976    /// Gets `Factor`, Tag 228.
977    pub fn get_factor(&self) -> Result<Decimal, MessageRejectErrorEnum> {
978        let mut fld = field::FactorField::new(Decimal::ZERO, 0);
979        self.message.body.get_field(tag::FACTOR, &mut fld.0)?;
980        Ok(fld.value())
981    }
982
983
984    /// Returns true if `Factor` is present, Tag 228.
985    pub fn has_factor(&self) -> bool {
986        self.message.body.has(tag::FACTOR)
987    }
988
989
990
991
992    /// Sets `FlexProductEligibilityIndicator`, Tag 1242.
993    pub fn set_flex_product_eligibility_indicator(&mut self, v: bool) {
994        self.message.body.set_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
995    }
996
997    /// Gets `FlexProductEligibilityIndicator`, Tag 1242.
998    pub fn get_flex_product_eligibility_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
999        let mut fld = field::FlexProductEligibilityIndicatorField::new(false);
1000        self.message.body.get_field(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR, &mut fld.0)?;
1001        Ok(fld.value())
1002    }
1003
1004
1005    /// Returns true if `FlexProductEligibilityIndicator` is present, Tag 1242.
1006    pub fn has_flex_product_eligibility_indicator(&self) -> bool {
1007        self.message.body.has(tag::FLEX_PRODUCT_ELIGIBILITY_INDICATOR)
1008    }
1009
1010
1011
1012
1013    /// Sets `FlexibleIndicator`, Tag 1244.
1014    pub fn set_flexible_indicator(&mut self, v: bool) {
1015        self.message.body.set_field(tag::FLEXIBLE_INDICATOR, fixer::fix_boolean::FIXBoolean::from(v));
1016    }
1017
1018    /// Gets `FlexibleIndicator`, Tag 1244.
1019    pub fn get_flexible_indicator(&self) -> Result<bool, MessageRejectErrorEnum> {
1020        let mut fld = field::FlexibleIndicatorField::new(false);
1021        self.message.body.get_field(tag::FLEXIBLE_INDICATOR, &mut fld.0)?;
1022        Ok(fld.value())
1023    }
1024
1025
1026    /// Returns true if `FlexibleIndicator` is present, Tag 1244.
1027    pub fn has_flexible_indicator(&self) -> bool {
1028        self.message.body.has(tag::FLEXIBLE_INDICATOR)
1029    }
1030
1031
1032
1033
1034    /// Sets `FloorPrice`, Tag 1200.
1035    pub fn set_floor_price(&mut self, val: Decimal, scale: i32) {
1036        self.message.body.set_field(tag::FLOOR_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1037    }
1038
1039    /// Gets `FloorPrice`, Tag 1200.
1040    pub fn get_floor_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1041        let mut fld = field::FloorPriceField::new(Decimal::ZERO, 0);
1042        self.message.body.get_field(tag::FLOOR_PRICE, &mut fld.0)?;
1043        Ok(fld.value())
1044    }
1045
1046
1047    /// Returns true if `FloorPrice` is present, Tag 1200.
1048    pub fn has_floor_price(&self) -> bool {
1049        self.message.body.has(tag::FLOOR_PRICE)
1050    }
1051
1052
1053
1054
1055    /// Sets `FlowScheduleType`, Tag 1439.
1056    pub fn set_flow_schedule_type(&mut self, v: isize) {
1057        self.message.body.set_field(tag::FLOW_SCHEDULE_TYPE, fixer::fix_int::FIXInt::from(v));
1058    }
1059
1060    /// Gets `FlowScheduleType`, Tag 1439.
1061    pub fn get_flow_schedule_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1062        let mut fld = field::FlowScheduleTypeField::new(0);
1063        self.message.body.get_field(tag::FLOW_SCHEDULE_TYPE, &mut fld.0)?;
1064        Ok(fld.value())
1065    }
1066
1067
1068    /// Returns true if `FlowScheduleType` is present, Tag 1439.
1069    pub fn has_flow_schedule_type(&self) -> bool {
1070        self.message.body.has(tag::FLOW_SCHEDULE_TYPE)
1071    }
1072
1073
1074
1075
1076    /// Sets `InstrRegistry`, Tag 543.
1077    pub fn set_instr_registry(&mut self, v: String) {
1078        self.message.body.set_field(tag::INSTR_REGISTRY, FIXString::from(v));
1079    }
1080
1081    /// Gets `InstrRegistry`, Tag 543.
1082    pub fn get_instr_registry(&self) -> Result<String, MessageRejectErrorEnum> {
1083        let mut fld = field::InstrRegistryField::new(String::new());
1084        self.message.body.get_field(tag::INSTR_REGISTRY, &mut fld.0)?;
1085        Ok(fld.value().to_string())
1086    }
1087
1088
1089    /// Returns true if `InstrRegistry` is present, Tag 543.
1090    pub fn has_instr_registry(&self) -> bool {
1091        self.message.body.has(tag::INSTR_REGISTRY)
1092    }
1093
1094
1095
1096
1097    /// Sets `InstrmtAssignmentMethod`, Tag 1049.
1098    pub fn set_instrmt_assignment_method(&mut self, v: String) {
1099        self.message.body.set_field(tag::INSTRMT_ASSIGNMENT_METHOD, FIXString::from(v));
1100    }
1101
1102    /// Gets `InstrmtAssignmentMethod`, Tag 1049.
1103    pub fn get_instrmt_assignment_method(&self) -> Result<String, MessageRejectErrorEnum> {
1104        let mut fld = field::InstrmtAssignmentMethodField::new(String::new());
1105        self.message.body.get_field(tag::INSTRMT_ASSIGNMENT_METHOD, &mut fld.0)?;
1106        Ok(fld.value().to_string())
1107    }
1108
1109
1110    /// Returns true if `InstrmtAssignmentMethod` is present, Tag 1049.
1111    pub fn has_instrmt_assignment_method(&self) -> bool {
1112        self.message.body.has(tag::INSTRMT_ASSIGNMENT_METHOD)
1113    }
1114
1115
1116
1117
1118    /// Sets `InterestAccrualDate`, Tag 874.
1119    pub fn set_interest_accrual_date(&mut self, v: String) {
1120        self.message.body.set_field(tag::INTEREST_ACCRUAL_DATE, FIXString::from(v));
1121    }
1122
1123    /// Gets `InterestAccrualDate`, Tag 874.
1124    pub fn get_interest_accrual_date(&self) -> Result<String, MessageRejectErrorEnum> {
1125        let mut fld = field::InterestAccrualDateField::new(String::new());
1126        self.message.body.get_field(tag::INTEREST_ACCRUAL_DATE, &mut fld.0)?;
1127        Ok(fld.value().to_string())
1128    }
1129
1130
1131    /// Returns true if `InterestAccrualDate` is present, Tag 874.
1132    pub fn has_interest_accrual_date(&self) -> bool {
1133        self.message.body.has(tag::INTEREST_ACCRUAL_DATE)
1134    }
1135
1136
1137
1138
1139    /// Sets `IssueDate`, Tag 225.
1140    pub fn set_issue_date(&mut self, v: String) {
1141        self.message.body.set_field(tag::ISSUE_DATE, FIXString::from(v));
1142    }
1143
1144    /// Gets `IssueDate`, Tag 225.
1145    pub fn get_issue_date(&self) -> Result<String, MessageRejectErrorEnum> {
1146        let mut fld = field::IssueDateField::new(String::new());
1147        self.message.body.get_field(tag::ISSUE_DATE, &mut fld.0)?;
1148        Ok(fld.value().to_string())
1149    }
1150
1151
1152    /// Returns true if `IssueDate` is present, Tag 225.
1153    pub fn has_issue_date(&self) -> bool {
1154        self.message.body.has(tag::ISSUE_DATE)
1155    }
1156
1157
1158
1159
1160    /// Sets `Issuer`, Tag 106.
1161    pub fn set_issuer(&mut self, v: String) {
1162        self.message.body.set_field(tag::ISSUER, FIXString::from(v));
1163    }
1164
1165    /// Gets `Issuer`, Tag 106.
1166    pub fn get_issuer(&self) -> Result<String, MessageRejectErrorEnum> {
1167        let mut fld = field::IssuerField::new(String::new());
1168        self.message.body.get_field(tag::ISSUER, &mut fld.0)?;
1169        Ok(fld.value().to_string())
1170    }
1171
1172
1173    /// Returns true if `Issuer` is present, Tag 106.
1174    pub fn has_issuer(&self) -> bool {
1175        self.message.body.has(tag::ISSUER)
1176    }
1177
1178
1179
1180
1181    /// Sets `ListMethod`, Tag 1198.
1182    pub fn set_list_method(&mut self, v: isize) {
1183        self.message.body.set_field(tag::LIST_METHOD, fixer::fix_int::FIXInt::from(v));
1184    }
1185
1186    /// Gets `ListMethod`, Tag 1198.
1187    pub fn get_list_method(&self) -> Result<isize, MessageRejectErrorEnum> {
1188        let mut fld = field::ListMethodField::new(0);
1189        self.message.body.get_field(tag::LIST_METHOD, &mut fld.0)?;
1190        Ok(fld.value())
1191    }
1192
1193
1194    /// Returns true if `ListMethod` is present, Tag 1198.
1195    pub fn has_list_method(&self) -> bool {
1196        self.message.body.has(tag::LIST_METHOD)
1197    }
1198
1199
1200
1201
1202    /// Sets `LocaleOfIssue`, Tag 472.
1203    pub fn set_locale_of_issue(&mut self, v: String) {
1204        self.message.body.set_field(tag::LOCALE_OF_ISSUE, FIXString::from(v));
1205    }
1206
1207    /// Gets `LocaleOfIssue`, Tag 472.
1208    pub fn get_locale_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
1209        let mut fld = field::LocaleOfIssueField::new(String::new());
1210        self.message.body.get_field(tag::LOCALE_OF_ISSUE, &mut fld.0)?;
1211        Ok(fld.value().to_string())
1212    }
1213
1214
1215    /// Returns true if `LocaleOfIssue` is present, Tag 472.
1216    pub fn has_locale_of_issue(&self) -> bool {
1217        self.message.body.has(tag::LOCALE_OF_ISSUE)
1218    }
1219
1220
1221
1222
1223    /// Sets `MarginExcess`, Tag 899.
1224    pub fn set_margin_excess(&mut self, val: Decimal, scale: i32) {
1225        self.message.body.set_field(tag::MARGIN_EXCESS, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1226    }
1227
1228    /// Gets `MarginExcess`, Tag 899.
1229    pub fn get_margin_excess(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1230        let mut fld = field::MarginExcessField::new(Decimal::ZERO, 0);
1231        self.message.body.get_field(tag::MARGIN_EXCESS, &mut fld.0)?;
1232        Ok(fld.value())
1233    }
1234
1235
1236    /// Returns true if `MarginExcess` is present, Tag 899.
1237    pub fn has_margin_excess(&self) -> bool {
1238        self.message.body.has(tag::MARGIN_EXCESS)
1239    }
1240
1241
1242
1243
1244    /// Sets `MarginRatio`, Tag 898.
1245    pub fn set_margin_ratio(&mut self, val: Decimal, scale: i32) {
1246        self.message.body.set_field(tag::MARGIN_RATIO, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1247    }
1248
1249    /// Gets `MarginRatio`, Tag 898.
1250    pub fn get_margin_ratio(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1251        let mut fld = field::MarginRatioField::new(Decimal::ZERO, 0);
1252        self.message.body.get_field(tag::MARGIN_RATIO, &mut fld.0)?;
1253        Ok(fld.value())
1254    }
1255
1256
1257    /// Returns true if `MarginRatio` is present, Tag 898.
1258    pub fn has_margin_ratio(&self) -> bool {
1259        self.message.body.has(tag::MARGIN_RATIO)
1260    }
1261
1262
1263
1264
1265    /// Sets `MaturityDate`, Tag 541.
1266    pub fn set_maturity_date(&mut self, v: String) {
1267        self.message.body.set_field(tag::MATURITY_DATE, FIXString::from(v));
1268    }
1269
1270    /// Gets `MaturityDate`, Tag 541.
1271    pub fn get_maturity_date(&self) -> Result<String, MessageRejectErrorEnum> {
1272        let mut fld = field::MaturityDateField::new(String::new());
1273        self.message.body.get_field(tag::MATURITY_DATE, &mut fld.0)?;
1274        Ok(fld.value().to_string())
1275    }
1276
1277
1278    /// Returns true if `MaturityDate` is present, Tag 541.
1279    pub fn has_maturity_date(&self) -> bool {
1280        self.message.body.has(tag::MATURITY_DATE)
1281    }
1282
1283
1284
1285
1286    /// Sets `MaturityMonthYear`, Tag 200.
1287    pub fn set_maturity_month_year(&mut self, v: String) {
1288        self.message.body.set_field(tag::MATURITY_MONTH_YEAR, FIXString::from(v));
1289    }
1290
1291    /// Gets `MaturityMonthYear`, Tag 200.
1292    pub fn get_maturity_month_year(&self) -> Result<String, MessageRejectErrorEnum> {
1293        let mut fld = field::MaturityMonthYearField::new(String::new());
1294        self.message.body.get_field(tag::MATURITY_MONTH_YEAR, &mut fld.0)?;
1295        Ok(fld.value().to_string())
1296    }
1297
1298
1299    /// Returns true if `MaturityMonthYear` is present, Tag 200.
1300    pub fn has_maturity_month_year(&self) -> bool {
1301        self.message.body.has(tag::MATURITY_MONTH_YEAR)
1302    }
1303
1304
1305
1306
1307    /// Sets `MaturityTime`, Tag 1079.
1308    pub fn set_maturity_time(&mut self, v: String) {
1309        self.message.body.set_field(tag::MATURITY_TIME, FIXString::from(v));
1310    }
1311
1312    /// Gets `MaturityTime`, Tag 1079.
1313    pub fn get_maturity_time(&self) -> Result<String, MessageRejectErrorEnum> {
1314        let mut fld = field::MaturityTimeField::new(String::new());
1315        self.message.body.get_field(tag::MATURITY_TIME, &mut fld.0)?;
1316        Ok(fld.value().to_string())
1317    }
1318
1319
1320    /// Returns true if `MaturityTime` is present, Tag 1079.
1321    pub fn has_maturity_time(&self) -> bool {
1322        self.message.body.has(tag::MATURITY_TIME)
1323    }
1324
1325
1326
1327
1328    /// Sets `MinPriceIncrement`, Tag 969.
1329    pub fn set_min_price_increment(&mut self, val: Decimal, scale: i32) {
1330        self.message.body.set_field(tag::MIN_PRICE_INCREMENT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1331    }
1332
1333    /// Gets `MinPriceIncrement`, Tag 969.
1334    pub fn get_min_price_increment(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1335        let mut fld = field::MinPriceIncrementField::new(Decimal::ZERO, 0);
1336        self.message.body.get_field(tag::MIN_PRICE_INCREMENT, &mut fld.0)?;
1337        Ok(fld.value())
1338    }
1339
1340
1341    /// Returns true if `MinPriceIncrement` is present, Tag 969.
1342    pub fn has_min_price_increment(&self) -> bool {
1343        self.message.body.has(tag::MIN_PRICE_INCREMENT)
1344    }
1345
1346
1347
1348
1349    /// Sets `MinPriceIncrementAmount`, Tag 1146.
1350    pub fn set_min_price_increment_amount(&mut self, val: Decimal, scale: i32) {
1351        self.message.body.set_field(tag::MIN_PRICE_INCREMENT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1352    }
1353
1354    /// Gets `MinPriceIncrementAmount`, Tag 1146.
1355    pub fn get_min_price_increment_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1356        let mut fld = field::MinPriceIncrementAmountField::new(Decimal::ZERO, 0);
1357        self.message.body.get_field(tag::MIN_PRICE_INCREMENT_AMOUNT, &mut fld.0)?;
1358        Ok(fld.value())
1359    }
1360
1361
1362    /// Returns true if `MinPriceIncrementAmount` is present, Tag 1146.
1363    pub fn has_min_price_increment_amount(&self) -> bool {
1364        self.message.body.has(tag::MIN_PRICE_INCREMENT_AMOUNT)
1365    }
1366
1367
1368
1369
1370    /// Sets `NTPositionLimit`, Tag 971.
1371    pub fn set_nt_position_limit(&mut self, v: isize) {
1372        self.message.body.set_field(tag::NT_POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1373    }
1374
1375    /// Gets `NTPositionLimit`, Tag 971.
1376    pub fn get_nt_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1377        let mut fld = field::NTPositionLimitField::new(0);
1378        self.message.body.get_field(tag::NT_POSITION_LIMIT, &mut fld.0)?;
1379        Ok(fld.value())
1380    }
1381
1382
1383    /// Returns true if `NTPositionLimit` is present, Tag 971.
1384    pub fn has_nt_position_limit(&self) -> bool {
1385        self.message.body.has(tag::NT_POSITION_LIMIT)
1386    }
1387
1388
1389
1390
1391    /// Sets `NoCollInquiryQualifier`, Tag 938.
1392    pub fn set_no_coll_inquiry_qualifier(&mut self, v: isize) {
1393        self.message.body.set_field(tag::NO_COLL_INQUIRY_QUALIFIER, fixer::fix_int::FIXInt::from(v));
1394    }
1395
1396    /// Gets `NoCollInquiryQualifier`, Tag 938.
1397    pub fn get_no_coll_inquiry_qualifier(&self) -> Result<isize, MessageRejectErrorEnum> {
1398        let mut fld = field::NoCollInquiryQualifierField::new(0);
1399        self.message.body.get_field(tag::NO_COLL_INQUIRY_QUALIFIER, &mut fld.0)?;
1400        Ok(fld.value())
1401    }
1402
1403
1404    /// Returns true if `NoCollInquiryQualifier` is present, Tag 938.
1405    pub fn has_no_coll_inquiry_qualifier(&self) -> bool {
1406        self.message.body.has(tag::NO_COLL_INQUIRY_QUALIFIER)
1407    }
1408
1409
1410
1411
1412    /// Sets `NoComplexEvents`, Tag 1483.
1413    pub fn set_no_complex_events(&mut self, v: isize) {
1414        self.message.body.set_field(tag::NO_COMPLEX_EVENTS, fixer::fix_int::FIXInt::from(v));
1415    }
1416
1417    /// Gets `NoComplexEvents`, Tag 1483.
1418    pub fn get_no_complex_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1419        let mut fld = field::NoComplexEventsField::new(0);
1420        self.message.body.get_field(tag::NO_COMPLEX_EVENTS, &mut fld.0)?;
1421        Ok(fld.value())
1422    }
1423
1424
1425    /// Returns true if `NoComplexEvents` is present, Tag 1483.
1426    pub fn has_no_complex_events(&self) -> bool {
1427        self.message.body.has(tag::NO_COMPLEX_EVENTS)
1428    }
1429
1430
1431
1432
1433    /// Sets `NoDlvyInst`, Tag 85.
1434    pub fn set_no_dlvy_inst(&mut self, v: isize) {
1435        self.message.body.set_field(tag::NO_DLVY_INST, fixer::fix_int::FIXInt::from(v));
1436    }
1437
1438    /// Gets `NoDlvyInst`, Tag 85.
1439    pub fn get_no_dlvy_inst(&self) -> Result<isize, MessageRejectErrorEnum> {
1440        let mut fld = field::NoDlvyInstField::new(0);
1441        self.message.body.get_field(tag::NO_DLVY_INST, &mut fld.0)?;
1442        Ok(fld.value())
1443    }
1444
1445
1446    /// Returns true if `NoDlvyInst` is present, Tag 85.
1447    pub fn has_no_dlvy_inst(&self) -> bool {
1448        self.message.body.has(tag::NO_DLVY_INST)
1449    }
1450
1451
1452
1453
1454    /// Sets `NoEvents`, Tag 864.
1455    pub fn set_no_events(&mut self, v: isize) {
1456        self.message.body.set_field(tag::NO_EVENTS, fixer::fix_int::FIXInt::from(v));
1457    }
1458
1459    /// Gets `NoEvents`, Tag 864.
1460    pub fn get_no_events(&self) -> Result<isize, MessageRejectErrorEnum> {
1461        let mut fld = field::NoEventsField::new(0);
1462        self.message.body.get_field(tag::NO_EVENTS, &mut fld.0)?;
1463        Ok(fld.value())
1464    }
1465
1466
1467    /// Returns true if `NoEvents` is present, Tag 864.
1468    pub fn has_no_events(&self) -> bool {
1469        self.message.body.has(tag::NO_EVENTS)
1470    }
1471
1472
1473
1474
1475    /// Sets `NoExecs`, Tag 124.
1476    pub fn set_no_execs(&mut self, v: isize) {
1477        self.message.body.set_field(tag::NO_EXECS, fixer::fix_int::FIXInt::from(v));
1478    }
1479
1480    /// Gets `NoExecs`, Tag 124.
1481    pub fn get_no_execs(&self) -> Result<isize, MessageRejectErrorEnum> {
1482        let mut fld = field::NoExecsField::new(0);
1483        self.message.body.get_field(tag::NO_EXECS, &mut fld.0)?;
1484        Ok(fld.value())
1485    }
1486
1487
1488    /// Returns true if `NoExecs` is present, Tag 124.
1489    pub fn has_no_execs(&self) -> bool {
1490        self.message.body.has(tag::NO_EXECS)
1491    }
1492
1493
1494
1495
1496    /// Sets `NoInstrumentParties`, Tag 1018.
1497    pub fn set_no_instrument_parties(&mut self, v: isize) {
1498        self.message.body.set_field(tag::NO_INSTRUMENT_PARTIES, fixer::fix_int::FIXInt::from(v));
1499    }
1500
1501    /// Gets `NoInstrumentParties`, Tag 1018.
1502    pub fn get_no_instrument_parties(&self) -> Result<isize, MessageRejectErrorEnum> {
1503        let mut fld = field::NoInstrumentPartiesField::new(0);
1504        self.message.body.get_field(tag::NO_INSTRUMENT_PARTIES, &mut fld.0)?;
1505        Ok(fld.value())
1506    }
1507
1508
1509    /// Returns true if `NoInstrumentParties` is present, Tag 1018.
1510    pub fn has_no_instrument_parties(&self) -> bool {
1511        self.message.body.has(tag::NO_INSTRUMENT_PARTIES)
1512    }
1513
1514
1515
1516
1517    /// Sets `NoLegs`, Tag 555.
1518    pub fn set_no_legs(&mut self, v: isize) {
1519        self.message.body.set_field(tag::NO_LEGS, fixer::fix_int::FIXInt::from(v));
1520    }
1521
1522    /// Gets `NoLegs`, Tag 555.
1523    pub fn get_no_legs(&self) -> Result<isize, MessageRejectErrorEnum> {
1524        let mut fld = field::NoLegsField::new(0);
1525        self.message.body.get_field(tag::NO_LEGS, &mut fld.0)?;
1526        Ok(fld.value())
1527    }
1528
1529
1530    /// Returns true if `NoLegs` is present, Tag 555.
1531    pub fn has_no_legs(&self) -> bool {
1532        self.message.body.has(tag::NO_LEGS)
1533    }
1534
1535
1536
1537
1538    /// Sets `NoPartyIDs`, Tag 453.
1539    pub fn set_no_party_i_ds(&mut self, v: isize) {
1540        self.message.body.set_field(tag::NO_PARTY_I_DS, fixer::fix_int::FIXInt::from(v));
1541    }
1542
1543    /// Gets `NoPartyIDs`, Tag 453.
1544    pub fn get_no_party_i_ds(&self) -> Result<isize, MessageRejectErrorEnum> {
1545        let mut fld = field::NoPartyIDsField::new(0);
1546        self.message.body.get_field(tag::NO_PARTY_I_DS, &mut fld.0)?;
1547        Ok(fld.value())
1548    }
1549
1550
1551    /// Returns true if `NoPartyIDs` is present, Tag 453.
1552    pub fn has_no_party_i_ds(&self) -> bool {
1553        self.message.body.has(tag::NO_PARTY_I_DS)
1554    }
1555
1556
1557
1558
1559    /// Sets `NoSecurityAltID`, Tag 454.
1560    pub fn set_no_security_alt_id(&mut self, v: isize) {
1561        self.message.body.set_field(tag::NO_SECURITY_ALT_ID, fixer::fix_int::FIXInt::from(v));
1562    }
1563
1564    /// Gets `NoSecurityAltID`, Tag 454.
1565    pub fn get_no_security_alt_id(&self) -> Result<isize, MessageRejectErrorEnum> {
1566        let mut fld = field::NoSecurityAltIDField::new(0);
1567        self.message.body.get_field(tag::NO_SECURITY_ALT_ID, &mut fld.0)?;
1568        Ok(fld.value())
1569    }
1570
1571
1572    /// Returns true if `NoSecurityAltID` is present, Tag 454.
1573    pub fn has_no_security_alt_id(&self) -> bool {
1574        self.message.body.has(tag::NO_SECURITY_ALT_ID)
1575    }
1576
1577
1578
1579
1580    /// Sets `NoStipulations`, Tag 232.
1581    pub fn set_no_stipulations(&mut self, v: isize) {
1582        self.message.body.set_field(tag::NO_STIPULATIONS, fixer::fix_int::FIXInt::from(v));
1583    }
1584
1585    /// Gets `NoStipulations`, Tag 232.
1586    pub fn get_no_stipulations(&self) -> Result<isize, MessageRejectErrorEnum> {
1587        let mut fld = field::NoStipulationsField::new(0);
1588        self.message.body.get_field(tag::NO_STIPULATIONS, &mut fld.0)?;
1589        Ok(fld.value())
1590    }
1591
1592
1593    /// Returns true if `NoStipulations` is present, Tag 232.
1594    pub fn has_no_stipulations(&self) -> bool {
1595        self.message.body.has(tag::NO_STIPULATIONS)
1596    }
1597
1598
1599
1600
1601    /// Sets `NoTrades`, Tag 897.
1602    pub fn set_no_trades(&mut self, v: isize) {
1603        self.message.body.set_field(tag::NO_TRADES, fixer::fix_int::FIXInt::from(v));
1604    }
1605
1606    /// Gets `NoTrades`, Tag 897.
1607    pub fn get_no_trades(&self) -> Result<isize, MessageRejectErrorEnum> {
1608        let mut fld = field::NoTradesField::new(0);
1609        self.message.body.get_field(tag::NO_TRADES, &mut fld.0)?;
1610        Ok(fld.value())
1611    }
1612
1613
1614    /// Returns true if `NoTrades` is present, Tag 897.
1615    pub fn has_no_trades(&self) -> bool {
1616        self.message.body.has(tag::NO_TRADES)
1617    }
1618
1619
1620
1621
1622    /// Sets `NoTrdRegTimestamps`, Tag 768.
1623    pub fn set_no_trd_reg_timestamps(&mut self, v: isize) {
1624        self.message.body.set_field(tag::NO_TRD_REG_TIMESTAMPS, fixer::fix_int::FIXInt::from(v));
1625    }
1626
1627    /// Gets `NoTrdRegTimestamps`, Tag 768.
1628    pub fn get_no_trd_reg_timestamps(&self) -> Result<isize, MessageRejectErrorEnum> {
1629        let mut fld = field::NoTrdRegTimestampsField::new(0);
1630        self.message.body.get_field(tag::NO_TRD_REG_TIMESTAMPS, &mut fld.0)?;
1631        Ok(fld.value())
1632    }
1633
1634
1635    /// Returns true if `NoTrdRegTimestamps` is present, Tag 768.
1636    pub fn has_no_trd_reg_timestamps(&self) -> bool {
1637        self.message.body.has(tag::NO_TRD_REG_TIMESTAMPS)
1638    }
1639
1640
1641
1642
1643    /// Sets `NoUnderlyings`, Tag 711.
1644    pub fn set_no_underlyings(&mut self, v: isize) {
1645        self.message.body.set_field(tag::NO_UNDERLYINGS, fixer::fix_int::FIXInt::from(v));
1646    }
1647
1648    /// Gets `NoUnderlyings`, Tag 711.
1649    pub fn get_no_underlyings(&self) -> Result<isize, MessageRejectErrorEnum> {
1650        let mut fld = field::NoUnderlyingsField::new(0);
1651        self.message.body.get_field(tag::NO_UNDERLYINGS, &mut fld.0)?;
1652        Ok(fld.value())
1653    }
1654
1655
1656    /// Returns true if `NoUnderlyings` is present, Tag 711.
1657    pub fn has_no_underlyings(&self) -> bool {
1658        self.message.body.has(tag::NO_UNDERLYINGS)
1659    }
1660
1661
1662
1663
1664    /// Sets `NotionalPercentageOutstanding`, Tag 1451.
1665    pub fn set_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
1666        self.message.body.set_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1667    }
1668
1669    /// Gets `NotionalPercentageOutstanding`, Tag 1451.
1670    pub fn get_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1671        let mut fld = field::NotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
1672        self.message.body.get_field(tag::NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
1673        Ok(fld.value())
1674    }
1675
1676
1677    /// Returns true if `NotionalPercentageOutstanding` is present, Tag 1451.
1678    pub fn has_notional_percentage_outstanding(&self) -> bool {
1679        self.message.body.has(tag::NOTIONAL_PERCENTAGE_OUTSTANDING)
1680    }
1681
1682
1683
1684
1685    /// Sets `OptAttribute`, Tag 206.
1686    pub fn set_opt_attribute(&mut self, v: String) {
1687        self.message.body.set_field(tag::OPT_ATTRIBUTE, FIXString::from(v));
1688    }
1689
1690    /// Gets `OptAttribute`, Tag 206.
1691    pub fn get_opt_attribute(&self) -> Result<String, MessageRejectErrorEnum> {
1692        let mut fld = field::OptAttributeField::new(String::new());
1693        self.message.body.get_field(tag::OPT_ATTRIBUTE, &mut fld.0)?;
1694        Ok(fld.value().to_string())
1695    }
1696
1697
1698    /// Returns true if `OptAttribute` is present, Tag 206.
1699    pub fn has_opt_attribute(&self) -> bool {
1700        self.message.body.has(tag::OPT_ATTRIBUTE)
1701    }
1702
1703
1704
1705
1706    /// Sets `OptPayoutAmount`, Tag 1195.
1707    pub fn set_opt_payout_amount(&mut self, val: Decimal, scale: i32) {
1708        self.message.body.set_field(tag::OPT_PAYOUT_AMOUNT, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1709    }
1710
1711    /// Gets `OptPayoutAmount`, Tag 1195.
1712    pub fn get_opt_payout_amount(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1713        let mut fld = field::OptPayoutAmountField::new(Decimal::ZERO, 0);
1714        self.message.body.get_field(tag::OPT_PAYOUT_AMOUNT, &mut fld.0)?;
1715        Ok(fld.value())
1716    }
1717
1718
1719    /// Returns true if `OptPayoutAmount` is present, Tag 1195.
1720    pub fn has_opt_payout_amount(&self) -> bool {
1721        self.message.body.has(tag::OPT_PAYOUT_AMOUNT)
1722    }
1723
1724
1725
1726
1727    /// Sets `OptPayoutType`, Tag 1482.
1728    pub fn set_opt_payout_type(&mut self, v: isize) {
1729        self.message.body.set_field(tag::OPT_PAYOUT_TYPE, fixer::fix_int::FIXInt::from(v));
1730    }
1731
1732    /// Gets `OptPayoutType`, Tag 1482.
1733    pub fn get_opt_payout_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1734        let mut fld = field::OptPayoutTypeField::new(0);
1735        self.message.body.get_field(tag::OPT_PAYOUT_TYPE, &mut fld.0)?;
1736        Ok(fld.value())
1737    }
1738
1739
1740    /// Returns true if `OptPayoutType` is present, Tag 1482.
1741    pub fn has_opt_payout_type(&self) -> bool {
1742        self.message.body.has(tag::OPT_PAYOUT_TYPE)
1743    }
1744
1745
1746
1747
1748    /// Sets `OrderID`, Tag 37.
1749    pub fn set_order_id(&mut self, v: String) {
1750        self.message.body.set_field(tag::ORDER_ID, FIXString::from(v));
1751    }
1752
1753    /// Gets `OrderID`, Tag 37.
1754    pub fn get_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
1755        let mut fld = field::OrderIDField::new(String::new());
1756        self.message.body.get_field(tag::ORDER_ID, &mut fld.0)?;
1757        Ok(fld.value().to_string())
1758    }
1759
1760
1761    /// Returns true if `OrderID` is present, Tag 37.
1762    pub fn has_order_id(&self) -> bool {
1763        self.message.body.has(tag::ORDER_ID)
1764    }
1765
1766
1767
1768
1769    /// Sets `OriginalNotionalPercentageOutstanding`, Tag 1452.
1770    pub fn set_original_notional_percentage_outstanding(&mut self, val: Decimal, scale: i32) {
1771        self.message.body.set_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1772    }
1773
1774    /// Gets `OriginalNotionalPercentageOutstanding`, Tag 1452.
1775    pub fn get_original_notional_percentage_outstanding(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1776        let mut fld = field::OriginalNotionalPercentageOutstandingField::new(Decimal::ZERO, 0);
1777        self.message.body.get_field(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING, &mut fld.0)?;
1778        Ok(fld.value())
1779    }
1780
1781
1782    /// Returns true if `OriginalNotionalPercentageOutstanding` is present, Tag 1452.
1783    pub fn has_original_notional_percentage_outstanding(&self) -> bool {
1784        self.message.body.has(tag::ORIGINAL_NOTIONAL_PERCENTAGE_OUTSTANDING)
1785    }
1786
1787
1788
1789
1790    /// Sets `Pool`, Tag 691.
1791    pub fn set_pool(&mut self, v: String) {
1792        self.message.body.set_field(tag::POOL, FIXString::from(v));
1793    }
1794
1795    /// Gets `Pool`, Tag 691.
1796    pub fn get_pool(&self) -> Result<String, MessageRejectErrorEnum> {
1797        let mut fld = field::PoolField::new(String::new());
1798        self.message.body.get_field(tag::POOL, &mut fld.0)?;
1799        Ok(fld.value().to_string())
1800    }
1801
1802
1803    /// Returns true if `Pool` is present, Tag 691.
1804    pub fn has_pool(&self) -> bool {
1805        self.message.body.has(tag::POOL)
1806    }
1807
1808
1809
1810
1811    /// Sets `PositionLimit`, Tag 970.
1812    pub fn set_position_limit(&mut self, v: isize) {
1813        self.message.body.set_field(tag::POSITION_LIMIT, fixer::fix_int::FIXInt::from(v));
1814    }
1815
1816    /// Gets `PositionLimit`, Tag 970.
1817    pub fn get_position_limit(&self) -> Result<isize, MessageRejectErrorEnum> {
1818        let mut fld = field::PositionLimitField::new(0);
1819        self.message.body.get_field(tag::POSITION_LIMIT, &mut fld.0)?;
1820        Ok(fld.value())
1821    }
1822
1823
1824    /// Returns true if `PositionLimit` is present, Tag 970.
1825    pub fn has_position_limit(&self) -> bool {
1826        self.message.body.has(tag::POSITION_LIMIT)
1827    }
1828
1829
1830
1831
1832    /// Sets `Price`, Tag 44.
1833    pub fn set_price(&mut self, val: Decimal, scale: i32) {
1834        self.message.body.set_field(tag::PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1835    }
1836
1837    /// Gets `Price`, Tag 44.
1838    pub fn get_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1839        let mut fld = field::PriceField::new(Decimal::ZERO, 0);
1840        self.message.body.get_field(tag::PRICE, &mut fld.0)?;
1841        Ok(fld.value())
1842    }
1843
1844
1845    /// Returns true if `Price` is present, Tag 44.
1846    pub fn has_price(&self) -> bool {
1847        self.message.body.has(tag::PRICE)
1848    }
1849
1850
1851
1852
1853    /// Sets `PriceQuoteMethod`, Tag 1196.
1854    pub fn set_price_quote_method(&mut self, v: String) {
1855        self.message.body.set_field(tag::PRICE_QUOTE_METHOD, FIXString::from(v));
1856    }
1857
1858    /// Gets `PriceQuoteMethod`, Tag 1196.
1859    pub fn get_price_quote_method(&self) -> Result<String, MessageRejectErrorEnum> {
1860        let mut fld = field::PriceQuoteMethodField::new(String::new());
1861        self.message.body.get_field(tag::PRICE_QUOTE_METHOD, &mut fld.0)?;
1862        Ok(fld.value().to_string())
1863    }
1864
1865
1866    /// Returns true if `PriceQuoteMethod` is present, Tag 1196.
1867    pub fn has_price_quote_method(&self) -> bool {
1868        self.message.body.has(tag::PRICE_QUOTE_METHOD)
1869    }
1870
1871
1872
1873
1874    /// Sets `PriceType`, Tag 423.
1875    pub fn set_price_type(&mut self, v: isize) {
1876        self.message.body.set_field(tag::PRICE_TYPE, fixer::fix_int::FIXInt::from(v));
1877    }
1878
1879    /// Gets `PriceType`, Tag 423.
1880    pub fn get_price_type(&self) -> Result<isize, MessageRejectErrorEnum> {
1881        let mut fld = field::PriceTypeField::new(0);
1882        self.message.body.get_field(tag::PRICE_TYPE, &mut fld.0)?;
1883        Ok(fld.value())
1884    }
1885
1886
1887    /// Returns true if `PriceType` is present, Tag 423.
1888    pub fn has_price_type(&self) -> bool {
1889        self.message.body.has(tag::PRICE_TYPE)
1890    }
1891
1892
1893
1894
1895    /// Sets `PriceUnitOfMeasure`, Tag 1191.
1896    pub fn set_price_unit_of_measure(&mut self, v: String) {
1897        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE, FIXString::from(v));
1898    }
1899
1900    /// Gets `PriceUnitOfMeasure`, Tag 1191.
1901    pub fn get_price_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
1902        let mut fld = field::PriceUnitOfMeasureField::new(String::new());
1903        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE, &mut fld.0)?;
1904        Ok(fld.value().to_string())
1905    }
1906
1907
1908    /// Returns true if `PriceUnitOfMeasure` is present, Tag 1191.
1909    pub fn has_price_unit_of_measure(&self) -> bool {
1910        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE)
1911    }
1912
1913
1914
1915
1916    /// Sets `PriceUnitOfMeasureQty`, Tag 1192.
1917    pub fn set_price_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
1918        self.message.body.set_field(tag::PRICE_UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
1919    }
1920
1921    /// Gets `PriceUnitOfMeasureQty`, Tag 1192.
1922    pub fn get_price_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
1923        let mut fld = field::PriceUnitOfMeasureQtyField::new(Decimal::ZERO, 0);
1924        self.message.body.get_field(tag::PRICE_UNIT_OF_MEASURE_QTY, &mut fld.0)?;
1925        Ok(fld.value())
1926    }
1927
1928
1929    /// Returns true if `PriceUnitOfMeasureQty` is present, Tag 1192.
1930    pub fn has_price_unit_of_measure_qty(&self) -> bool {
1931        self.message.body.has(tag::PRICE_UNIT_OF_MEASURE_QTY)
1932    }
1933
1934
1935
1936
1937    /// Sets `Product`, Tag 460.
1938    pub fn set_product(&mut self, v: isize) {
1939        self.message.body.set_field(tag::PRODUCT, fixer::fix_int::FIXInt::from(v));
1940    }
1941
1942    /// Gets `Product`, Tag 460.
1943    pub fn get_product(&self) -> Result<isize, MessageRejectErrorEnum> {
1944        let mut fld = field::ProductField::new(0);
1945        self.message.body.get_field(tag::PRODUCT, &mut fld.0)?;
1946        Ok(fld.value())
1947    }
1948
1949
1950    /// Returns true if `Product` is present, Tag 460.
1951    pub fn has_product(&self) -> bool {
1952        self.message.body.has(tag::PRODUCT)
1953    }
1954
1955
1956
1957
1958    /// Sets `ProductComplex`, Tag 1227.
1959    pub fn set_product_complex(&mut self, v: String) {
1960        self.message.body.set_field(tag::PRODUCT_COMPLEX, FIXString::from(v));
1961    }
1962
1963    /// Gets `ProductComplex`, Tag 1227.
1964    pub fn get_product_complex(&self) -> Result<String, MessageRejectErrorEnum> {
1965        let mut fld = field::ProductComplexField::new(String::new());
1966        self.message.body.get_field(tag::PRODUCT_COMPLEX, &mut fld.0)?;
1967        Ok(fld.value().to_string())
1968    }
1969
1970
1971    /// Returns true if `ProductComplex` is present, Tag 1227.
1972    pub fn has_product_complex(&self) -> bool {
1973        self.message.body.has(tag::PRODUCT_COMPLEX)
1974    }
1975
1976
1977
1978
1979    /// Sets `PutOrCall`, Tag 201.
1980    pub fn set_put_or_call(&mut self, v: isize) {
1981        self.message.body.set_field(tag::PUT_OR_CALL, fixer::fix_int::FIXInt::from(v));
1982    }
1983
1984    /// Gets `PutOrCall`, Tag 201.
1985    pub fn get_put_or_call(&self) -> Result<isize, MessageRejectErrorEnum> {
1986        let mut fld = field::PutOrCallField::new(0);
1987        self.message.body.get_field(tag::PUT_OR_CALL, &mut fld.0)?;
1988        Ok(fld.value())
1989    }
1990
1991
1992    /// Returns true if `PutOrCall` is present, Tag 201.
1993    pub fn has_put_or_call(&self) -> bool {
1994        self.message.body.has(tag::PUT_OR_CALL)
1995    }
1996
1997
1998
1999
2000    /// Sets `QtyType`, Tag 854.
2001    pub fn set_qty_type(&mut self, v: isize) {
2002        self.message.body.set_field(tag::QTY_TYPE, fixer::fix_int::FIXInt::from(v));
2003    }
2004
2005    /// Gets `QtyType`, Tag 854.
2006    pub fn get_qty_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2007        let mut fld = field::QtyTypeField::new(0);
2008        self.message.body.get_field(tag::QTY_TYPE, &mut fld.0)?;
2009        Ok(fld.value())
2010    }
2011
2012
2013    /// Returns true if `QtyType` is present, Tag 854.
2014    pub fn has_qty_type(&self) -> bool {
2015        self.message.body.has(tag::QTY_TYPE)
2016    }
2017
2018
2019
2020
2021    /// Sets `Quantity`, Tag 53.
2022    pub fn set_quantity(&mut self, val: Decimal, scale: i32) {
2023        self.message.body.set_field(tag::QUANTITY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2024    }
2025
2026    /// Gets `Quantity`, Tag 53.
2027    pub fn get_quantity(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2028        let mut fld = field::QuantityField::new(Decimal::ZERO, 0);
2029        self.message.body.get_field(tag::QUANTITY, &mut fld.0)?;
2030        Ok(fld.value())
2031    }
2032
2033
2034    /// Returns true if `Quantity` is present, Tag 53.
2035    pub fn has_quantity(&self) -> bool {
2036        self.message.body.has(tag::QUANTITY)
2037    }
2038
2039
2040
2041
2042    /// Sets `RedemptionDate`, Tag 240.
2043    pub fn set_redemption_date(&mut self, v: String) {
2044        self.message.body.set_field(tag::REDEMPTION_DATE, FIXString::from(v));
2045    }
2046
2047    /// Gets `RedemptionDate`, Tag 240.
2048    pub fn get_redemption_date(&self) -> Result<String, MessageRejectErrorEnum> {
2049        let mut fld = field::RedemptionDateField::new(String::new());
2050        self.message.body.get_field(tag::REDEMPTION_DATE, &mut fld.0)?;
2051        Ok(fld.value().to_string())
2052    }
2053
2054
2055    /// Returns true if `RedemptionDate` is present, Tag 240.
2056    pub fn has_redemption_date(&self) -> bool {
2057        self.message.body.has(tag::REDEMPTION_DATE)
2058    }
2059
2060
2061
2062
2063    /// Sets `RepoCollateralSecurityType`, Tag 239.
2064    pub fn set_repo_collateral_security_type(&mut self, v: isize) {
2065        self.message.body.set_field(tag::REPO_COLLATERAL_SECURITY_TYPE, fixer::fix_int::FIXInt::from(v));
2066    }
2067
2068    /// Gets `RepoCollateralSecurityType`, Tag 239.
2069    pub fn get_repo_collateral_security_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2070        let mut fld = field::RepoCollateralSecurityTypeField::new(0);
2071        self.message.body.get_field(tag::REPO_COLLATERAL_SECURITY_TYPE, &mut fld.0)?;
2072        Ok(fld.value())
2073    }
2074
2075
2076    /// Returns true if `RepoCollateralSecurityType` is present, Tag 239.
2077    pub fn has_repo_collateral_security_type(&self) -> bool {
2078        self.message.body.has(tag::REPO_COLLATERAL_SECURITY_TYPE)
2079    }
2080
2081
2082
2083
2084    /// Sets `RepurchaseRate`, Tag 227.
2085    pub fn set_repurchase_rate(&mut self, val: Decimal, scale: i32) {
2086        self.message.body.set_field(tag::REPURCHASE_RATE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2087    }
2088
2089    /// Gets `RepurchaseRate`, Tag 227.
2090    pub fn get_repurchase_rate(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2091        let mut fld = field::RepurchaseRateField::new(Decimal::ZERO, 0);
2092        self.message.body.get_field(tag::REPURCHASE_RATE, &mut fld.0)?;
2093        Ok(fld.value())
2094    }
2095
2096
2097    /// Returns true if `RepurchaseRate` is present, Tag 227.
2098    pub fn has_repurchase_rate(&self) -> bool {
2099        self.message.body.has(tag::REPURCHASE_RATE)
2100    }
2101
2102
2103
2104
2105    /// Sets `RepurchaseTerm`, Tag 226.
2106    pub fn set_repurchase_term(&mut self, v: isize) {
2107        self.message.body.set_field(tag::REPURCHASE_TERM, fixer::fix_int::FIXInt::from(v));
2108    }
2109
2110    /// Gets `RepurchaseTerm`, Tag 226.
2111    pub fn get_repurchase_term(&self) -> Result<isize, MessageRejectErrorEnum> {
2112        let mut fld = field::RepurchaseTermField::new(0);
2113        self.message.body.get_field(tag::REPURCHASE_TERM, &mut fld.0)?;
2114        Ok(fld.value())
2115    }
2116
2117
2118    /// Returns true if `RepurchaseTerm` is present, Tag 226.
2119    pub fn has_repurchase_term(&self) -> bool {
2120        self.message.body.has(tag::REPURCHASE_TERM)
2121    }
2122
2123
2124
2125
2126    /// Sets `ResponseDestination`, Tag 726.
2127    pub fn set_response_destination(&mut self, v: String) {
2128        self.message.body.set_field(tag::RESPONSE_DESTINATION, FIXString::from(v));
2129    }
2130
2131    /// Gets `ResponseDestination`, Tag 726.
2132    pub fn get_response_destination(&self) -> Result<String, MessageRejectErrorEnum> {
2133        let mut fld = field::ResponseDestinationField::new(String::new());
2134        self.message.body.get_field(tag::RESPONSE_DESTINATION, &mut fld.0)?;
2135        Ok(fld.value().to_string())
2136    }
2137
2138
2139    /// Returns true if `ResponseDestination` is present, Tag 726.
2140    pub fn has_response_destination(&self) -> bool {
2141        self.message.body.has(tag::RESPONSE_DESTINATION)
2142    }
2143
2144
2145
2146
2147    /// Sets `ResponseTransportType`, Tag 725.
2148    pub fn set_response_transport_type(&mut self, v: isize) {
2149        self.message.body.set_field(tag::RESPONSE_TRANSPORT_TYPE, fixer::fix_int::FIXInt::from(v));
2150    }
2151
2152    /// Gets `ResponseTransportType`, Tag 725.
2153    pub fn get_response_transport_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2154        let mut fld = field::ResponseTransportTypeField::new(0);
2155        self.message.body.get_field(tag::RESPONSE_TRANSPORT_TYPE, &mut fld.0)?;
2156        Ok(fld.value())
2157    }
2158
2159
2160    /// Returns true if `ResponseTransportType` is present, Tag 725.
2161    pub fn has_response_transport_type(&self) -> bool {
2162        self.message.body.has(tag::RESPONSE_TRANSPORT_TYPE)
2163    }
2164
2165
2166
2167
2168    /// Sets `RestructuringType`, Tag 1449.
2169    pub fn set_restructuring_type(&mut self, v: String) {
2170        self.message.body.set_field(tag::RESTRUCTURING_TYPE, FIXString::from(v));
2171    }
2172
2173    /// Gets `RestructuringType`, Tag 1449.
2174    pub fn get_restructuring_type(&self) -> Result<String, MessageRejectErrorEnum> {
2175        let mut fld = field::RestructuringTypeField::new(String::new());
2176        self.message.body.get_field(tag::RESTRUCTURING_TYPE, &mut fld.0)?;
2177        Ok(fld.value().to_string())
2178    }
2179
2180
2181    /// Returns true if `RestructuringType` is present, Tag 1449.
2182    pub fn has_restructuring_type(&self) -> bool {
2183        self.message.body.has(tag::RESTRUCTURING_TYPE)
2184    }
2185
2186
2187
2188
2189    /// Sets `SecondaryClOrdID`, Tag 526.
2190    pub fn set_secondary_cl_ord_id(&mut self, v: String) {
2191        self.message.body.set_field(tag::SECONDARY_CL_ORD_ID, FIXString::from(v));
2192    }
2193
2194    /// Gets `SecondaryClOrdID`, Tag 526.
2195    pub fn get_secondary_cl_ord_id(&self) -> Result<String, MessageRejectErrorEnum> {
2196        let mut fld = field::SecondaryClOrdIDField::new(String::new());
2197        self.message.body.get_field(tag::SECONDARY_CL_ORD_ID, &mut fld.0)?;
2198        Ok(fld.value().to_string())
2199    }
2200
2201
2202    /// Returns true if `SecondaryClOrdID` is present, Tag 526.
2203    pub fn has_secondary_cl_ord_id(&self) -> bool {
2204        self.message.body.has(tag::SECONDARY_CL_ORD_ID)
2205    }
2206
2207
2208
2209
2210    /// Sets `SecondaryOrderID`, Tag 198.
2211    pub fn set_secondary_order_id(&mut self, v: String) {
2212        self.message.body.set_field(tag::SECONDARY_ORDER_ID, FIXString::from(v));
2213    }
2214
2215    /// Gets `SecondaryOrderID`, Tag 198.
2216    pub fn get_secondary_order_id(&self) -> Result<String, MessageRejectErrorEnum> {
2217        let mut fld = field::SecondaryOrderIDField::new(String::new());
2218        self.message.body.get_field(tag::SECONDARY_ORDER_ID, &mut fld.0)?;
2219        Ok(fld.value().to_string())
2220    }
2221
2222
2223    /// Returns true if `SecondaryOrderID` is present, Tag 198.
2224    pub fn has_secondary_order_id(&self) -> bool {
2225        self.message.body.has(tag::SECONDARY_ORDER_ID)
2226    }
2227
2228
2229
2230
2231    /// Sets `SecurityDesc`, Tag 107.
2232    pub fn set_security_desc(&mut self, v: String) {
2233        self.message.body.set_field(tag::SECURITY_DESC, FIXString::from(v));
2234    }
2235
2236    /// Gets `SecurityDesc`, Tag 107.
2237    pub fn get_security_desc(&self) -> Result<String, MessageRejectErrorEnum> {
2238        let mut fld = field::SecurityDescField::new(String::new());
2239        self.message.body.get_field(tag::SECURITY_DESC, &mut fld.0)?;
2240        Ok(fld.value().to_string())
2241    }
2242
2243
2244    /// Returns true if `SecurityDesc` is present, Tag 107.
2245    pub fn has_security_desc(&self) -> bool {
2246        self.message.body.has(tag::SECURITY_DESC)
2247    }
2248
2249
2250
2251
2252    /// Sets `SecurityExchange`, Tag 207.
2253    pub fn set_security_exchange(&mut self, v: String) {
2254        self.message.body.set_field(tag::SECURITY_EXCHANGE, FIXString::from(v));
2255    }
2256
2257    /// Gets `SecurityExchange`, Tag 207.
2258    pub fn get_security_exchange(&self) -> Result<String, MessageRejectErrorEnum> {
2259        let mut fld = field::SecurityExchangeField::new(String::new());
2260        self.message.body.get_field(tag::SECURITY_EXCHANGE, &mut fld.0)?;
2261        Ok(fld.value().to_string())
2262    }
2263
2264
2265    /// Returns true if `SecurityExchange` is present, Tag 207.
2266    pub fn has_security_exchange(&self) -> bool {
2267        self.message.body.has(tag::SECURITY_EXCHANGE)
2268    }
2269
2270
2271
2272
2273    /// Sets `SecurityGroup`, Tag 1151.
2274    pub fn set_security_group(&mut self, v: String) {
2275        self.message.body.set_field(tag::SECURITY_GROUP, FIXString::from(v));
2276    }
2277
2278    /// Gets `SecurityGroup`, Tag 1151.
2279    pub fn get_security_group(&self) -> Result<String, MessageRejectErrorEnum> {
2280        let mut fld = field::SecurityGroupField::new(String::new());
2281        self.message.body.get_field(tag::SECURITY_GROUP, &mut fld.0)?;
2282        Ok(fld.value().to_string())
2283    }
2284
2285
2286    /// Returns true if `SecurityGroup` is present, Tag 1151.
2287    pub fn has_security_group(&self) -> bool {
2288        self.message.body.has(tag::SECURITY_GROUP)
2289    }
2290
2291
2292
2293
2294    /// Sets `SecurityID`, Tag 48.
2295    pub fn set_security_id(&mut self, v: String) {
2296        self.message.body.set_field(tag::SECURITY_ID, FIXString::from(v));
2297    }
2298
2299    /// Gets `SecurityID`, Tag 48.
2300    pub fn get_security_id(&self) -> Result<String, MessageRejectErrorEnum> {
2301        let mut fld = field::SecurityIDField::new(String::new());
2302        self.message.body.get_field(tag::SECURITY_ID, &mut fld.0)?;
2303        Ok(fld.value().to_string())
2304    }
2305
2306
2307    /// Returns true if `SecurityID` is present, Tag 48.
2308    pub fn has_security_id(&self) -> bool {
2309        self.message.body.has(tag::SECURITY_ID)
2310    }
2311
2312
2313
2314
2315    /// Sets `SecurityIDSource`, Tag 22.
2316    pub fn set_security_id_source(&mut self, v: String) {
2317        self.message.body.set_field(tag::SECURITY_ID_SOURCE, FIXString::from(v));
2318    }
2319
2320    /// Gets `SecurityIDSource`, Tag 22.
2321    pub fn get_security_id_source(&self) -> Result<String, MessageRejectErrorEnum> {
2322        let mut fld = field::SecurityIDSourceField::new(String::new());
2323        self.message.body.get_field(tag::SECURITY_ID_SOURCE, &mut fld.0)?;
2324        Ok(fld.value().to_string())
2325    }
2326
2327
2328    /// Returns true if `SecurityIDSource` is present, Tag 22.
2329    pub fn has_security_id_source(&self) -> bool {
2330        self.message.body.has(tag::SECURITY_ID_SOURCE)
2331    }
2332
2333
2334
2335
2336    /// Sets `SecurityStatus`, Tag 965.
2337    pub fn set_security_status(&mut self, v: String) {
2338        self.message.body.set_field(tag::SECURITY_STATUS, FIXString::from(v));
2339    }
2340
2341    /// Gets `SecurityStatus`, Tag 965.
2342    pub fn get_security_status(&self) -> Result<String, MessageRejectErrorEnum> {
2343        let mut fld = field::SecurityStatusField::new(String::new());
2344        self.message.body.get_field(tag::SECURITY_STATUS, &mut fld.0)?;
2345        Ok(fld.value().to_string())
2346    }
2347
2348
2349    /// Returns true if `SecurityStatus` is present, Tag 965.
2350    pub fn has_security_status(&self) -> bool {
2351        self.message.body.has(tag::SECURITY_STATUS)
2352    }
2353
2354
2355
2356
2357    /// Sets `SecuritySubType`, Tag 762.
2358    pub fn set_security_sub_type(&mut self, v: String) {
2359        self.message.body.set_field(tag::SECURITY_SUB_TYPE, FIXString::from(v));
2360    }
2361
2362    /// Gets `SecuritySubType`, Tag 762.
2363    pub fn get_security_sub_type(&self) -> Result<String, MessageRejectErrorEnum> {
2364        let mut fld = field::SecuritySubTypeField::new(String::new());
2365        self.message.body.get_field(tag::SECURITY_SUB_TYPE, &mut fld.0)?;
2366        Ok(fld.value().to_string())
2367    }
2368
2369
2370    /// Returns true if `SecuritySubType` is present, Tag 762.
2371    pub fn has_security_sub_type(&self) -> bool {
2372        self.message.body.has(tag::SECURITY_SUB_TYPE)
2373    }
2374
2375
2376
2377
2378    /// Sets `SecurityType`, Tag 167.
2379    pub fn set_security_type(&mut self, v: String) {
2380        self.message.body.set_field(tag::SECURITY_TYPE, FIXString::from(v));
2381    }
2382
2383    /// Gets `SecurityType`, Tag 167.
2384    pub fn get_security_type(&self) -> Result<String, MessageRejectErrorEnum> {
2385        let mut fld = field::SecurityTypeField::new(String::new());
2386        self.message.body.get_field(tag::SECURITY_TYPE, &mut fld.0)?;
2387        Ok(fld.value().to_string())
2388    }
2389
2390
2391    /// Returns true if `SecurityType` is present, Tag 167.
2392    pub fn has_security_type(&self) -> bool {
2393        self.message.body.has(tag::SECURITY_TYPE)
2394    }
2395
2396
2397
2398
2399    /// Sets `SecurityXML`, Tag 1185.
2400    pub fn set_security_xml(&mut self, v: String) {
2401        self.message.body.set_field(tag::SECURITY_XML, FIXString::from(v));
2402    }
2403
2404    /// Gets `SecurityXML`, Tag 1185.
2405    pub fn get_security_xml(&self) -> Result<String, MessageRejectErrorEnum> {
2406        let mut fld = field::SecurityXMLField::new(String::new());
2407        self.message.body.get_field(tag::SECURITY_XML, &mut fld.0)?;
2408        Ok(fld.value().to_string())
2409    }
2410
2411
2412    /// Returns true if `SecurityXML` is present, Tag 1185.
2413    pub fn has_security_xml(&self) -> bool {
2414        self.message.body.has(tag::SECURITY_XML)
2415    }
2416
2417
2418
2419
2420    /// Sets `SecurityXMLLen`, Tag 1184.
2421    pub fn set_security_xml_len(&mut self, v: isize) {
2422        self.message.body.set_field(tag::SECURITY_XML_LEN, fixer::fix_int::FIXInt::from(v));
2423    }
2424
2425    /// Gets `SecurityXMLLen`, Tag 1184.
2426    pub fn get_security_xml_len(&self) -> Result<isize, MessageRejectErrorEnum> {
2427        let mut fld = field::SecurityXMLLenField::new(0);
2428        self.message.body.get_field(tag::SECURITY_XML_LEN, &mut fld.0)?;
2429        Ok(fld.value())
2430    }
2431
2432
2433    /// Returns true if `SecurityXMLLen` is present, Tag 1184.
2434    pub fn has_security_xml_len(&self) -> bool {
2435        self.message.body.has(tag::SECURITY_XML_LEN)
2436    }
2437
2438
2439
2440
2441    /// Sets `SecurityXMLSchema`, Tag 1186.
2442    pub fn set_security_xml_schema(&mut self, v: String) {
2443        self.message.body.set_field(tag::SECURITY_XML_SCHEMA, FIXString::from(v));
2444    }
2445
2446    /// Gets `SecurityXMLSchema`, Tag 1186.
2447    pub fn get_security_xml_schema(&self) -> Result<String, MessageRejectErrorEnum> {
2448        let mut fld = field::SecurityXMLSchemaField::new(String::new());
2449        self.message.body.get_field(tag::SECURITY_XML_SCHEMA, &mut fld.0)?;
2450        Ok(fld.value().to_string())
2451    }
2452
2453
2454    /// Returns true if `SecurityXMLSchema` is present, Tag 1186.
2455    pub fn has_security_xml_schema(&self) -> bool {
2456        self.message.body.has(tag::SECURITY_XML_SCHEMA)
2457    }
2458
2459
2460
2461
2462    /// Sets `Seniority`, Tag 1450.
2463    pub fn set_seniority(&mut self, v: String) {
2464        self.message.body.set_field(tag::SENIORITY, FIXString::from(v));
2465    }
2466
2467    /// Gets `Seniority`, Tag 1450.
2468    pub fn get_seniority(&self) -> Result<String, MessageRejectErrorEnum> {
2469        let mut fld = field::SeniorityField::new(String::new());
2470        self.message.body.get_field(tag::SENIORITY, &mut fld.0)?;
2471        Ok(fld.value().to_string())
2472    }
2473
2474
2475    /// Returns true if `Seniority` is present, Tag 1450.
2476    pub fn has_seniority(&self) -> bool {
2477        self.message.body.has(tag::SENIORITY)
2478    }
2479
2480
2481
2482
2483    /// Sets `SettlDate`, Tag 64.
2484    pub fn set_settl_date(&mut self, v: String) {
2485        self.message.body.set_field(tag::SETTL_DATE, FIXString::from(v));
2486    }
2487
2488    /// Gets `SettlDate`, Tag 64.
2489    pub fn get_settl_date(&self) -> Result<String, MessageRejectErrorEnum> {
2490        let mut fld = field::SettlDateField::new(String::new());
2491        self.message.body.get_field(tag::SETTL_DATE, &mut fld.0)?;
2492        Ok(fld.value().to_string())
2493    }
2494
2495
2496    /// Returns true if `SettlDate` is present, Tag 64.
2497    pub fn has_settl_date(&self) -> bool {
2498        self.message.body.has(tag::SETTL_DATE)
2499    }
2500
2501
2502
2503
2504    /// Sets `SettlDeliveryType`, Tag 172.
2505    pub fn set_settl_delivery_type(&mut self, v: isize) {
2506        self.message.body.set_field(tag::SETTL_DELIVERY_TYPE, fixer::fix_int::FIXInt::from(v));
2507    }
2508
2509    /// Gets `SettlDeliveryType`, Tag 172.
2510    pub fn get_settl_delivery_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2511        let mut fld = field::SettlDeliveryTypeField::new(0);
2512        self.message.body.get_field(tag::SETTL_DELIVERY_TYPE, &mut fld.0)?;
2513        Ok(fld.value())
2514    }
2515
2516
2517    /// Returns true if `SettlDeliveryType` is present, Tag 172.
2518    pub fn has_settl_delivery_type(&self) -> bool {
2519        self.message.body.has(tag::SETTL_DELIVERY_TYPE)
2520    }
2521
2522
2523
2524
2525    /// Sets `SettlMethod`, Tag 1193.
2526    pub fn set_settl_method(&mut self, v: String) {
2527        self.message.body.set_field(tag::SETTL_METHOD, FIXString::from(v));
2528    }
2529
2530    /// Gets `SettlMethod`, Tag 1193.
2531    pub fn get_settl_method(&self) -> Result<String, MessageRejectErrorEnum> {
2532        let mut fld = field::SettlMethodField::new(String::new());
2533        self.message.body.get_field(tag::SETTL_METHOD, &mut fld.0)?;
2534        Ok(fld.value().to_string())
2535    }
2536
2537
2538    /// Returns true if `SettlMethod` is present, Tag 1193.
2539    pub fn has_settl_method(&self) -> bool {
2540        self.message.body.has(tag::SETTL_METHOD)
2541    }
2542
2543
2544
2545
2546    /// Sets `SettlSessID`, Tag 716.
2547    pub fn set_settl_sess_id(&mut self, v: String) {
2548        self.message.body.set_field(tag::SETTL_SESS_ID, FIXString::from(v));
2549    }
2550
2551    /// Gets `SettlSessID`, Tag 716.
2552    pub fn get_settl_sess_id(&self) -> Result<String, MessageRejectErrorEnum> {
2553        let mut fld = field::SettlSessIDField::new(String::new());
2554        self.message.body.get_field(tag::SETTL_SESS_ID, &mut fld.0)?;
2555        Ok(fld.value().to_string())
2556    }
2557
2558
2559    /// Returns true if `SettlSessID` is present, Tag 716.
2560    pub fn has_settl_sess_id(&self) -> bool {
2561        self.message.body.has(tag::SETTL_SESS_ID)
2562    }
2563
2564
2565
2566
2567    /// Sets `SettlSessSubID`, Tag 717.
2568    pub fn set_settl_sess_sub_id(&mut self, v: String) {
2569        self.message.body.set_field(tag::SETTL_SESS_SUB_ID, FIXString::from(v));
2570    }
2571
2572    /// Gets `SettlSessSubID`, Tag 717.
2573    pub fn get_settl_sess_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
2574        let mut fld = field::SettlSessSubIDField::new(String::new());
2575        self.message.body.get_field(tag::SETTL_SESS_SUB_ID, &mut fld.0)?;
2576        Ok(fld.value().to_string())
2577    }
2578
2579
2580    /// Returns true if `SettlSessSubID` is present, Tag 717.
2581    pub fn has_settl_sess_sub_id(&self) -> bool {
2582        self.message.body.has(tag::SETTL_SESS_SUB_ID)
2583    }
2584
2585
2586
2587
2588    /// Sets `SettleOnOpenFlag`, Tag 966.
2589    pub fn set_settle_on_open_flag(&mut self, v: String) {
2590        self.message.body.set_field(tag::SETTLE_ON_OPEN_FLAG, FIXString::from(v));
2591    }
2592
2593    /// Gets `SettleOnOpenFlag`, Tag 966.
2594    pub fn get_settle_on_open_flag(&self) -> Result<String, MessageRejectErrorEnum> {
2595        let mut fld = field::SettleOnOpenFlagField::new(String::new());
2596        self.message.body.get_field(tag::SETTLE_ON_OPEN_FLAG, &mut fld.0)?;
2597        Ok(fld.value().to_string())
2598    }
2599
2600
2601    /// Returns true if `SettleOnOpenFlag` is present, Tag 966.
2602    pub fn has_settle_on_open_flag(&self) -> bool {
2603        self.message.body.has(tag::SETTLE_ON_OPEN_FLAG)
2604    }
2605
2606
2607
2608
2609    /// Sets `Side`, Tag 54.
2610    pub fn set_side(&mut self, v: String) {
2611        self.message.body.set_field(tag::SIDE, FIXString::from(v));
2612    }
2613
2614    /// Gets `Side`, Tag 54.
2615    pub fn get_side(&self) -> Result<String, MessageRejectErrorEnum> {
2616        let mut fld = field::SideField::new(String::new());
2617        self.message.body.get_field(tag::SIDE, &mut fld.0)?;
2618        Ok(fld.value().to_string())
2619    }
2620
2621
2622    /// Returns true if `Side` is present, Tag 54.
2623    pub fn has_side(&self) -> bool {
2624        self.message.body.has(tag::SIDE)
2625    }
2626
2627
2628
2629
2630    /// Sets `Spread`, Tag 218.
2631    pub fn set_spread(&mut self, val: Decimal, scale: i32) {
2632        self.message.body.set_field(tag::SPREAD, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2633    }
2634
2635    /// Gets `Spread`, Tag 218.
2636    pub fn get_spread(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2637        let mut fld = field::SpreadField::new(Decimal::ZERO, 0);
2638        self.message.body.get_field(tag::SPREAD, &mut fld.0)?;
2639        Ok(fld.value())
2640    }
2641
2642
2643    /// Returns true if `Spread` is present, Tag 218.
2644    pub fn has_spread(&self) -> bool {
2645        self.message.body.has(tag::SPREAD)
2646    }
2647
2648
2649
2650
2651    /// Sets `StandInstDbID`, Tag 171.
2652    pub fn set_stand_inst_db_id(&mut self, v: String) {
2653        self.message.body.set_field(tag::STAND_INST_DB_ID, FIXString::from(v));
2654    }
2655
2656    /// Gets `StandInstDbID`, Tag 171.
2657    pub fn get_stand_inst_db_id(&self) -> Result<String, MessageRejectErrorEnum> {
2658        let mut fld = field::StandInstDbIDField::new(String::new());
2659        self.message.body.get_field(tag::STAND_INST_DB_ID, &mut fld.0)?;
2660        Ok(fld.value().to_string())
2661    }
2662
2663
2664    /// Returns true if `StandInstDbID` is present, Tag 171.
2665    pub fn has_stand_inst_db_id(&self) -> bool {
2666        self.message.body.has(tag::STAND_INST_DB_ID)
2667    }
2668
2669
2670
2671
2672    /// Sets `StandInstDbName`, Tag 170.
2673    pub fn set_stand_inst_db_name(&mut self, v: String) {
2674        self.message.body.set_field(tag::STAND_INST_DB_NAME, FIXString::from(v));
2675    }
2676
2677    /// Gets `StandInstDbName`, Tag 170.
2678    pub fn get_stand_inst_db_name(&self) -> Result<String, MessageRejectErrorEnum> {
2679        let mut fld = field::StandInstDbNameField::new(String::new());
2680        self.message.body.get_field(tag::STAND_INST_DB_NAME, &mut fld.0)?;
2681        Ok(fld.value().to_string())
2682    }
2683
2684
2685    /// Returns true if `StandInstDbName` is present, Tag 170.
2686    pub fn has_stand_inst_db_name(&self) -> bool {
2687        self.message.body.has(tag::STAND_INST_DB_NAME)
2688    }
2689
2690
2691
2692
2693    /// Sets `StandInstDbType`, Tag 169.
2694    pub fn set_stand_inst_db_type(&mut self, v: isize) {
2695        self.message.body.set_field(tag::STAND_INST_DB_TYPE, fixer::fix_int::FIXInt::from(v));
2696    }
2697
2698    /// Gets `StandInstDbType`, Tag 169.
2699    pub fn get_stand_inst_db_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2700        let mut fld = field::StandInstDbTypeField::new(0);
2701        self.message.body.get_field(tag::STAND_INST_DB_TYPE, &mut fld.0)?;
2702        Ok(fld.value())
2703    }
2704
2705
2706    /// Returns true if `StandInstDbType` is present, Tag 169.
2707    pub fn has_stand_inst_db_type(&self) -> bool {
2708        self.message.body.has(tag::STAND_INST_DB_TYPE)
2709    }
2710
2711
2712
2713
2714    /// Sets `StartCash`, Tag 921.
2715    pub fn set_start_cash(&mut self, val: Decimal, scale: i32) {
2716        self.message.body.set_field(tag::START_CASH, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2717    }
2718
2719    /// Gets `StartCash`, Tag 921.
2720    pub fn get_start_cash(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2721        let mut fld = field::StartCashField::new(Decimal::ZERO, 0);
2722        self.message.body.get_field(tag::START_CASH, &mut fld.0)?;
2723        Ok(fld.value())
2724    }
2725
2726
2727    /// Returns true if `StartCash` is present, Tag 921.
2728    pub fn has_start_cash(&self) -> bool {
2729        self.message.body.has(tag::START_CASH)
2730    }
2731
2732
2733
2734
2735    /// Sets `StartDate`, Tag 916.
2736    pub fn set_start_date(&mut self, v: String) {
2737        self.message.body.set_field(tag::START_DATE, FIXString::from(v));
2738    }
2739
2740    /// Gets `StartDate`, Tag 916.
2741    pub fn get_start_date(&self) -> Result<String, MessageRejectErrorEnum> {
2742        let mut fld = field::StartDateField::new(String::new());
2743        self.message.body.get_field(tag::START_DATE, &mut fld.0)?;
2744        Ok(fld.value().to_string())
2745    }
2746
2747
2748    /// Returns true if `StartDate` is present, Tag 916.
2749    pub fn has_start_date(&self) -> bool {
2750        self.message.body.has(tag::START_DATE)
2751    }
2752
2753
2754
2755
2756    /// Sets `StateOrProvinceOfIssue`, Tag 471.
2757    pub fn set_state_or_province_of_issue(&mut self, v: String) {
2758        self.message.body.set_field(tag::STATE_OR_PROVINCE_OF_ISSUE, FIXString::from(v));
2759    }
2760
2761    /// Gets `StateOrProvinceOfIssue`, Tag 471.
2762    pub fn get_state_or_province_of_issue(&self) -> Result<String, MessageRejectErrorEnum> {
2763        let mut fld = field::StateOrProvinceOfIssueField::new(String::new());
2764        self.message.body.get_field(tag::STATE_OR_PROVINCE_OF_ISSUE, &mut fld.0)?;
2765        Ok(fld.value().to_string())
2766    }
2767
2768
2769    /// Returns true if `StateOrProvinceOfIssue` is present, Tag 471.
2770    pub fn has_state_or_province_of_issue(&self) -> bool {
2771        self.message.body.has(tag::STATE_OR_PROVINCE_OF_ISSUE)
2772    }
2773
2774
2775
2776
2777    /// Sets `StrikeCurrency`, Tag 947.
2778    pub fn set_strike_currency(&mut self, v: String) {
2779        self.message.body.set_field(tag::STRIKE_CURRENCY, FIXString::from(v));
2780    }
2781
2782    /// Gets `StrikeCurrency`, Tag 947.
2783    pub fn get_strike_currency(&self) -> Result<String, MessageRejectErrorEnum> {
2784        let mut fld = field::StrikeCurrencyField::new(String::new());
2785        self.message.body.get_field(tag::STRIKE_CURRENCY, &mut fld.0)?;
2786        Ok(fld.value().to_string())
2787    }
2788
2789
2790    /// Returns true if `StrikeCurrency` is present, Tag 947.
2791    pub fn has_strike_currency(&self) -> bool {
2792        self.message.body.has(tag::STRIKE_CURRENCY)
2793    }
2794
2795
2796
2797
2798    /// Sets `StrikeMultiplier`, Tag 967.
2799    pub fn set_strike_multiplier(&mut self, val: Decimal, scale: i32) {
2800        self.message.body.set_field(tag::STRIKE_MULTIPLIER, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2801    }
2802
2803    /// Gets `StrikeMultiplier`, Tag 967.
2804    pub fn get_strike_multiplier(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2805        let mut fld = field::StrikeMultiplierField::new(Decimal::ZERO, 0);
2806        self.message.body.get_field(tag::STRIKE_MULTIPLIER, &mut fld.0)?;
2807        Ok(fld.value())
2808    }
2809
2810
2811    /// Returns true if `StrikeMultiplier` is present, Tag 967.
2812    pub fn has_strike_multiplier(&self) -> bool {
2813        self.message.body.has(tag::STRIKE_MULTIPLIER)
2814    }
2815
2816
2817
2818
2819    /// Sets `StrikePrice`, Tag 202.
2820    pub fn set_strike_price(&mut self, val: Decimal, scale: i32) {
2821        self.message.body.set_field(tag::STRIKE_PRICE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2822    }
2823
2824    /// Gets `StrikePrice`, Tag 202.
2825    pub fn get_strike_price(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2826        let mut fld = field::StrikePriceField::new(Decimal::ZERO, 0);
2827        self.message.body.get_field(tag::STRIKE_PRICE, &mut fld.0)?;
2828        Ok(fld.value())
2829    }
2830
2831
2832    /// Returns true if `StrikePrice` is present, Tag 202.
2833    pub fn has_strike_price(&self) -> bool {
2834        self.message.body.has(tag::STRIKE_PRICE)
2835    }
2836
2837
2838
2839
2840    /// Sets `StrikePriceBoundaryMethod`, Tag 1479.
2841    pub fn set_strike_price_boundary_method(&mut self, v: isize) {
2842        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, fixer::fix_int::FIXInt::from(v));
2843    }
2844
2845    /// Gets `StrikePriceBoundaryMethod`, Tag 1479.
2846    pub fn get_strike_price_boundary_method(&self) -> Result<isize, MessageRejectErrorEnum> {
2847        let mut fld = field::StrikePriceBoundaryMethodField::new(0);
2848        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_METHOD, &mut fld.0)?;
2849        Ok(fld.value())
2850    }
2851
2852
2853    /// Returns true if `StrikePriceBoundaryMethod` is present, Tag 1479.
2854    pub fn has_strike_price_boundary_method(&self) -> bool {
2855        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_METHOD)
2856    }
2857
2858
2859
2860
2861    /// Sets `StrikePriceBoundaryPrecision`, Tag 1480.
2862    pub fn set_strike_price_boundary_precision(&mut self, val: Decimal, scale: i32) {
2863        self.message.body.set_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2864    }
2865
2866    /// Gets `StrikePriceBoundaryPrecision`, Tag 1480.
2867    pub fn get_strike_price_boundary_precision(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2868        let mut fld = field::StrikePriceBoundaryPrecisionField::new(Decimal::ZERO, 0);
2869        self.message.body.get_field(tag::STRIKE_PRICE_BOUNDARY_PRECISION, &mut fld.0)?;
2870        Ok(fld.value())
2871    }
2872
2873
2874    /// Returns true if `StrikePriceBoundaryPrecision` is present, Tag 1480.
2875    pub fn has_strike_price_boundary_precision(&self) -> bool {
2876        self.message.body.has(tag::STRIKE_PRICE_BOUNDARY_PRECISION)
2877    }
2878
2879
2880
2881
2882    /// Sets `StrikePriceDeterminationMethod`, Tag 1478.
2883    pub fn set_strike_price_determination_method(&mut self, v: isize) {
2884        self.message.body.set_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
2885    }
2886
2887    /// Gets `StrikePriceDeterminationMethod`, Tag 1478.
2888    pub fn get_strike_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
2889        let mut fld = field::StrikePriceDeterminationMethodField::new(0);
2890        self.message.body.get_field(tag::STRIKE_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
2891        Ok(fld.value())
2892    }
2893
2894
2895    /// Returns true if `StrikePriceDeterminationMethod` is present, Tag 1478.
2896    pub fn has_strike_price_determination_method(&self) -> bool {
2897        self.message.body.has(tag::STRIKE_PRICE_DETERMINATION_METHOD)
2898    }
2899
2900
2901
2902
2903    /// Sets `StrikeValue`, Tag 968.
2904    pub fn set_strike_value(&mut self, val: Decimal, scale: i32) {
2905        self.message.body.set_field(tag::STRIKE_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
2906    }
2907
2908    /// Gets `StrikeValue`, Tag 968.
2909    pub fn get_strike_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
2910        let mut fld = field::StrikeValueField::new(Decimal::ZERO, 0);
2911        self.message.body.get_field(tag::STRIKE_VALUE, &mut fld.0)?;
2912        Ok(fld.value())
2913    }
2914
2915
2916    /// Returns true if `StrikeValue` is present, Tag 968.
2917    pub fn has_strike_value(&self) -> bool {
2918        self.message.body.has(tag::STRIKE_VALUE)
2919    }
2920
2921
2922
2923
2924    /// Sets `SubscriptionRequestType`, Tag 263.
2925    pub fn set_subscription_request_type(&mut self, v: String) {
2926        self.message.body.set_field(tag::SUBSCRIPTION_REQUEST_TYPE, FIXString::from(v));
2927    }
2928
2929    /// Gets `SubscriptionRequestType`, Tag 263.
2930    pub fn get_subscription_request_type(&self) -> Result<String, MessageRejectErrorEnum> {
2931        let mut fld = field::SubscriptionRequestTypeField::new(String::new());
2932        self.message.body.get_field(tag::SUBSCRIPTION_REQUEST_TYPE, &mut fld.0)?;
2933        Ok(fld.value().to_string())
2934    }
2935
2936
2937    /// Returns true if `SubscriptionRequestType` is present, Tag 263.
2938    pub fn has_subscription_request_type(&self) -> bool {
2939        self.message.body.has(tag::SUBSCRIPTION_REQUEST_TYPE)
2940    }
2941
2942
2943
2944
2945    /// Sets `Symbol`, Tag 55.
2946    pub fn set_symbol(&mut self, v: String) {
2947        self.message.body.set_field(tag::SYMBOL, FIXString::from(v));
2948    }
2949
2950    /// Gets `Symbol`, Tag 55.
2951    pub fn get_symbol(&self) -> Result<String, MessageRejectErrorEnum> {
2952        let mut fld = field::SymbolField::new(String::new());
2953        self.message.body.get_field(tag::SYMBOL, &mut fld.0)?;
2954        Ok(fld.value().to_string())
2955    }
2956
2957
2958    /// Returns true if `Symbol` is present, Tag 55.
2959    pub fn has_symbol(&self) -> bool {
2960        self.message.body.has(tag::SYMBOL)
2961    }
2962
2963
2964
2965
2966    /// Sets `SymbolSfx`, Tag 65.
2967    pub fn set_symbol_sfx(&mut self, v: String) {
2968        self.message.body.set_field(tag::SYMBOL_SFX, FIXString::from(v));
2969    }
2970
2971    /// Gets `SymbolSfx`, Tag 65.
2972    pub fn get_symbol_sfx(&self) -> Result<String, MessageRejectErrorEnum> {
2973        let mut fld = field::SymbolSfxField::new(String::new());
2974        self.message.body.get_field(tag::SYMBOL_SFX, &mut fld.0)?;
2975        Ok(fld.value().to_string())
2976    }
2977
2978
2979    /// Returns true if `SymbolSfx` is present, Tag 65.
2980    pub fn has_symbol_sfx(&self) -> bool {
2981        self.message.body.has(tag::SYMBOL_SFX)
2982    }
2983
2984
2985
2986
2987    /// Sets `TerminationType`, Tag 788.
2988    pub fn set_termination_type(&mut self, v: isize) {
2989        self.message.body.set_field(tag::TERMINATION_TYPE, fixer::fix_int::FIXInt::from(v));
2990    }
2991
2992    /// Gets `TerminationType`, Tag 788.
2993    pub fn get_termination_type(&self) -> Result<isize, MessageRejectErrorEnum> {
2994        let mut fld = field::TerminationTypeField::new(0);
2995        self.message.body.get_field(tag::TERMINATION_TYPE, &mut fld.0)?;
2996        Ok(fld.value())
2997    }
2998
2999
3000    /// Returns true if `TerminationType` is present, Tag 788.
3001    pub fn has_termination_type(&self) -> bool {
3002        self.message.body.has(tag::TERMINATION_TYPE)
3003    }
3004
3005
3006
3007
3008    /// Sets `Text`, Tag 58.
3009    pub fn set_text(&mut self, v: String) {
3010        self.message.body.set_field(tag::TEXT, FIXString::from(v));
3011    }
3012
3013    /// Gets `Text`, Tag 58.
3014    pub fn get_text(&self) -> Result<String, MessageRejectErrorEnum> {
3015        let mut fld = field::TextField::new(String::new());
3016        self.message.body.get_field(tag::TEXT, &mut fld.0)?;
3017        Ok(fld.value().to_string())
3018    }
3019
3020
3021    /// Returns true if `Text` is present, Tag 58.
3022    pub fn has_text(&self) -> bool {
3023        self.message.body.has(tag::TEXT)
3024    }
3025
3026
3027
3028
3029    /// Sets `TimeUnit`, Tag 997.
3030    pub fn set_time_unit(&mut self, v: String) {
3031        self.message.body.set_field(tag::TIME_UNIT, FIXString::from(v));
3032    }
3033
3034    /// Gets `TimeUnit`, Tag 997.
3035    pub fn get_time_unit(&self) -> Result<String, MessageRejectErrorEnum> {
3036        let mut fld = field::TimeUnitField::new(String::new());
3037        self.message.body.get_field(tag::TIME_UNIT, &mut fld.0)?;
3038        Ok(fld.value().to_string())
3039    }
3040
3041
3042    /// Returns true if `TimeUnit` is present, Tag 997.
3043    pub fn has_time_unit(&self) -> bool {
3044        self.message.body.has(tag::TIME_UNIT)
3045    }
3046
3047
3048
3049
3050    /// Sets `TotalNetValue`, Tag 900.
3051    pub fn set_total_net_value(&mut self, val: Decimal, scale: i32) {
3052        self.message.body.set_field(tag::TOTAL_NET_VALUE, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3053    }
3054
3055    /// Gets `TotalNetValue`, Tag 900.
3056    pub fn get_total_net_value(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3057        let mut fld = field::TotalNetValueField::new(Decimal::ZERO, 0);
3058        self.message.body.get_field(tag::TOTAL_NET_VALUE, &mut fld.0)?;
3059        Ok(fld.value())
3060    }
3061
3062
3063    /// Returns true if `TotalNetValue` is present, Tag 900.
3064    pub fn has_total_net_value(&self) -> bool {
3065        self.message.body.has(tag::TOTAL_NET_VALUE)
3066    }
3067
3068
3069
3070
3071    /// Sets `TradingSessionID`, Tag 336.
3072    pub fn set_trading_session_id(&mut self, v: String) {
3073        self.message.body.set_field(tag::TRADING_SESSION_ID, FIXString::from(v));
3074    }
3075
3076    /// Gets `TradingSessionID`, Tag 336.
3077    pub fn get_trading_session_id(&self) -> Result<String, MessageRejectErrorEnum> {
3078        let mut fld = field::TradingSessionIDField::new(String::new());
3079        self.message.body.get_field(tag::TRADING_SESSION_ID, &mut fld.0)?;
3080        Ok(fld.value().to_string())
3081    }
3082
3083
3084    /// Returns true if `TradingSessionID` is present, Tag 336.
3085    pub fn has_trading_session_id(&self) -> bool {
3086        self.message.body.has(tag::TRADING_SESSION_ID)
3087    }
3088
3089
3090
3091
3092    /// Sets `TradingSessionSubID`, Tag 625.
3093    pub fn set_trading_session_sub_id(&mut self, v: String) {
3094        self.message.body.set_field(tag::TRADING_SESSION_SUB_ID, FIXString::from(v));
3095    }
3096
3097    /// Gets `TradingSessionSubID`, Tag 625.
3098    pub fn get_trading_session_sub_id(&self) -> Result<String, MessageRejectErrorEnum> {
3099        let mut fld = field::TradingSessionSubIDField::new(String::new());
3100        self.message.body.get_field(tag::TRADING_SESSION_SUB_ID, &mut fld.0)?;
3101        Ok(fld.value().to_string())
3102    }
3103
3104
3105    /// Returns true if `TradingSessionSubID` is present, Tag 625.
3106    pub fn has_trading_session_sub_id(&self) -> bool {
3107        self.message.body.has(tag::TRADING_SESSION_SUB_ID)
3108    }
3109
3110
3111
3112
3113    /// Sets `UnderlyingPriceDeterminationMethod`, Tag 1481.
3114    pub fn set_underlying_price_determination_method(&mut self, v: isize) {
3115        self.message.body.set_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, fixer::fix_int::FIXInt::from(v));
3116    }
3117
3118    /// Gets `UnderlyingPriceDeterminationMethod`, Tag 1481.
3119    pub fn get_underlying_price_determination_method(&self) -> Result<isize, MessageRejectErrorEnum> {
3120        let mut fld = field::UnderlyingPriceDeterminationMethodField::new(0);
3121        self.message.body.get_field(tag::UNDERLYING_PRICE_DETERMINATION_METHOD, &mut fld.0)?;
3122        Ok(fld.value())
3123    }
3124
3125
3126    /// Returns true if `UnderlyingPriceDeterminationMethod` is present, Tag 1481.
3127    pub fn has_underlying_price_determination_method(&self) -> bool {
3128        self.message.body.has(tag::UNDERLYING_PRICE_DETERMINATION_METHOD)
3129    }
3130
3131
3132
3133
3134    /// Sets `UnitOfMeasure`, Tag 996.
3135    pub fn set_unit_of_measure(&mut self, v: String) {
3136        self.message.body.set_field(tag::UNIT_OF_MEASURE, FIXString::from(v));
3137    }
3138
3139    /// Gets `UnitOfMeasure`, Tag 996.
3140    pub fn get_unit_of_measure(&self) -> Result<String, MessageRejectErrorEnum> {
3141        let mut fld = field::UnitOfMeasureField::new(String::new());
3142        self.message.body.get_field(tag::UNIT_OF_MEASURE, &mut fld.0)?;
3143        Ok(fld.value().to_string())
3144    }
3145
3146
3147    /// Returns true if `UnitOfMeasure` is present, Tag 996.
3148    pub fn has_unit_of_measure(&self) -> bool {
3149        self.message.body.has(tag::UNIT_OF_MEASURE)
3150    }
3151
3152
3153
3154
3155    /// Sets `UnitOfMeasureQty`, Tag 1147.
3156    pub fn set_unit_of_measure_qty(&mut self, val: Decimal, scale: i32) {
3157        self.message.body.set_field(tag::UNIT_OF_MEASURE_QTY, fixer::fix_decimal::FIXDecimal { decimal: val, scale });
3158    }
3159
3160    /// Gets `UnitOfMeasureQty`, Tag 1147.
3161    pub fn get_unit_of_measure_qty(&self) -> Result<Decimal, MessageRejectErrorEnum> {
3162        let mut fld = field::UnitOfMeasureQtyField::new(Decimal::ZERO, 0);
3163        self.message.body.get_field(tag::UNIT_OF_MEASURE_QTY, &mut fld.0)?;
3164        Ok(fld.value())
3165    }
3166
3167
3168    /// Returns true if `UnitOfMeasureQty` is present, Tag 1147.
3169    pub fn has_unit_of_measure_qty(&self) -> bool {
3170        self.message.body.has(tag::UNIT_OF_MEASURE_QTY)
3171    }
3172
3173
3174
3175
3176    /// Sets `ValuationMethod`, Tag 1197.
3177    pub fn set_valuation_method(&mut self, v: String) {
3178        self.message.body.set_field(tag::VALUATION_METHOD, FIXString::from(v));
3179    }
3180
3181    /// Gets `ValuationMethod`, Tag 1197.
3182    pub fn get_valuation_method(&self) -> Result<String, MessageRejectErrorEnum> {
3183        let mut fld = field::ValuationMethodField::new(String::new());
3184        self.message.body.get_field(tag::VALUATION_METHOD, &mut fld.0)?;
3185        Ok(fld.value().to_string())
3186    }
3187
3188
3189    /// Returns true if `ValuationMethod` is present, Tag 1197.
3190    pub fn has_valuation_method(&self) -> bool {
3191        self.message.body.has(tag::VALUATION_METHOD)
3192    }
3193
3194
3195}
3196
3197/// `RouteOut` is the callback type for routing `CollateralInquiry` messages.
3198pub type RouteOut = fn(msg: CollateralInquiry, session_id: SessionID) -> Result<(), MessageRejectErrorEnum>;
3199
3200/// Route type returned by the `route` function.
3201pub type Route = (&'static str, &'static str, Box<dyn Fn(&Message, SessionID) -> Result<(), MessageRejectErrorEnum> + Send>);
3202
3203/// Returns the begin string, message type, and route function for `CollateralInquiry`.
3204pub fn route(router: RouteOut) -> Route {
3205    let r = move |msg: &Message, session_id: SessionID| -> Result<(), MessageRejectErrorEnum> {
3206        router(CollateralInquiry::from_message(msg.clone()), session_id)
3207    };
3208    ("9", "BB", Box::new(r))
3209}