Skip to main content

fixer_fix/fix44/
collateral_report.rs

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