Skip to main content

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