Skip to main content

refix_fix44/generated/
enums.rs

1// @generated by refix codegen from FIX44.xml. Do not edit.
2#![cfg_attr(rustfmt, rustfmt::skip)]
3
4/// The values of the `AdvSide` (4) field.
5#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6pub enum AdvSide<'a> {
7    /// `B`
8    Buy,
9    /// `S`
10    Sell,
11    /// `X`
12    Cross,
13    /// `T`
14    Trade,
15    /// A value the dictionary does not list.
16    Unrecognized(&'a str),
17}
18
19impl<'a> AdvSide<'a> {
20    pub fn from_value(value: &'a str) -> Self {
21        match value {
22            "B" => Self::Buy,
23            "S" => Self::Sell,
24            "X" => Self::Cross,
25            "T" => Self::Trade,
26            unrecognized => Self::Unrecognized(unrecognized),
27        }
28    }
29
30    pub fn value(self) -> &'a str {
31        match self {
32            Self::Buy => "B",
33            Self::Sell => "S",
34            Self::Cross => "X",
35            Self::Trade => "T",
36            Self::Unrecognized(value) => value,
37        }
38    }
39}
40
41impl<'a> From<&'a str> for AdvSide<'a> {
42    fn from(value: &'a str) -> Self {
43        Self::from_value(value)
44    }
45}
46
47/// The values of the `AdvTransType` (5) field.
48#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
49pub enum AdvTransType<'a> {
50    /// `N`
51    New,
52    /// `C`
53    Cancel,
54    /// `R`
55    Replace,
56    /// A value the dictionary does not list.
57    Unrecognized(&'a str),
58}
59
60impl<'a> AdvTransType<'a> {
61    pub fn from_value(value: &'a str) -> Self {
62        match value {
63            "N" => Self::New,
64            "C" => Self::Cancel,
65            "R" => Self::Replace,
66            unrecognized => Self::Unrecognized(unrecognized),
67        }
68    }
69
70    pub fn value(self) -> &'a str {
71        match self {
72            Self::New => "N",
73            Self::Cancel => "C",
74            Self::Replace => "R",
75            Self::Unrecognized(value) => value,
76        }
77    }
78}
79
80impl<'a> From<&'a str> for AdvTransType<'a> {
81    fn from(value: &'a str) -> Self {
82        Self::from_value(value)
83    }
84}
85
86/// The values of the `CommType` (13) field.
87#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
88pub enum CommType<'a> {
89    /// `1`
90    PerUnit,
91    /// `2`
92    Percent,
93    /// `3`
94    Absolute,
95    /// `4`
96    PercentageWaivedCashDiscount,
97    /// `5`
98    PercentageWaivedEnhancedUnits,
99    /// `6`
100    PointsPerBondOrContract,
101    /// A value the dictionary does not list.
102    Unrecognized(&'a str),
103}
104
105impl<'a> CommType<'a> {
106    pub fn from_value(value: &'a str) -> Self {
107        match value {
108            "1" => Self::PerUnit,
109            "2" => Self::Percent,
110            "3" => Self::Absolute,
111            "4" => Self::PercentageWaivedCashDiscount,
112            "5" => Self::PercentageWaivedEnhancedUnits,
113            "6" => Self::PointsPerBondOrContract,
114            unrecognized => Self::Unrecognized(unrecognized),
115        }
116    }
117
118    pub fn value(self) -> &'a str {
119        match self {
120            Self::PerUnit => "1",
121            Self::Percent => "2",
122            Self::Absolute => "3",
123            Self::PercentageWaivedCashDiscount => "4",
124            Self::PercentageWaivedEnhancedUnits => "5",
125            Self::PointsPerBondOrContract => "6",
126            Self::Unrecognized(value) => value,
127        }
128    }
129}
130
131impl<'a> From<&'a str> for CommType<'a> {
132    fn from(value: &'a str) -> Self {
133        Self::from_value(value)
134    }
135}
136
137/// The values of the `ExecInst` (18) field.
138#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
139pub enum ExecInst<'a> {
140    /// `1`
141    NotHeld,
142    /// `2`
143    Work,
144    /// `3`
145    GoAlong,
146    /// `4`
147    OverTheDay,
148    /// `5`
149    Held,
150    /// `6`
151    ParticipateDoNotInitiate,
152    /// `7`
153    StrictScale,
154    /// `8`
155    TryToScale,
156    /// `9`
157    StayOnBidSide,
158    /// `0`
159    StayOnOfferSide,
160    /// `A`
161    NoCross,
162    /// `B`
163    OkToCross,
164    /// `C`
165    CallFirst,
166    /// `D`
167    PercentOfVolume,
168    /// `E`
169    DoNotIncrease,
170    /// `F`
171    DoNotReduce,
172    /// `G`
173    AllOrNone,
174    /// `H`
175    ReinstateOnSystemFailure,
176    /// `I`
177    InstitutionsOnly,
178    /// `J`
179    ReinstateOnTradingHalt,
180    /// `K`
181    CancelOnTradingHalt,
182    /// `L`
183    LastPeg,
184    /// `M`
185    MidPricePeg,
186    /// `N`
187    NonNegotiable,
188    /// `O`
189    OpeningPeg,
190    /// `P`
191    MarketPeg,
192    /// `Q`
193    CancelOnSystemFailure,
194    /// `R`
195    PrimaryPeg,
196    /// `S`
197    Suspend,
198    /// `U`
199    CustomerDisplayInstruction,
200    /// `V`
201    Netting,
202    /// `W`
203    PegToVwap,
204    /// `X`
205    TradeAlong,
206    /// `Y`
207    TryToStop,
208    /// `Z`
209    CancelIfNotBest,
210    /// `a`
211    TrailingStopPeg,
212    /// `b`
213    StrictLimit,
214    /// `c`
215    IgnorePriceValidityChecks,
216    /// `d`
217    PegToLimitPrice,
218    /// `e`
219    WorkToTargetStrategy,
220    /// A value the dictionary does not list.
221    Unrecognized(&'a str),
222}
223
224impl<'a> ExecInst<'a> {
225    pub fn from_value(value: &'a str) -> Self {
226        match value {
227            "1" => Self::NotHeld,
228            "2" => Self::Work,
229            "3" => Self::GoAlong,
230            "4" => Self::OverTheDay,
231            "5" => Self::Held,
232            "6" => Self::ParticipateDoNotInitiate,
233            "7" => Self::StrictScale,
234            "8" => Self::TryToScale,
235            "9" => Self::StayOnBidSide,
236            "0" => Self::StayOnOfferSide,
237            "A" => Self::NoCross,
238            "B" => Self::OkToCross,
239            "C" => Self::CallFirst,
240            "D" => Self::PercentOfVolume,
241            "E" => Self::DoNotIncrease,
242            "F" => Self::DoNotReduce,
243            "G" => Self::AllOrNone,
244            "H" => Self::ReinstateOnSystemFailure,
245            "I" => Self::InstitutionsOnly,
246            "J" => Self::ReinstateOnTradingHalt,
247            "K" => Self::CancelOnTradingHalt,
248            "L" => Self::LastPeg,
249            "M" => Self::MidPricePeg,
250            "N" => Self::NonNegotiable,
251            "O" => Self::OpeningPeg,
252            "P" => Self::MarketPeg,
253            "Q" => Self::CancelOnSystemFailure,
254            "R" => Self::PrimaryPeg,
255            "S" => Self::Suspend,
256            "U" => Self::CustomerDisplayInstruction,
257            "V" => Self::Netting,
258            "W" => Self::PegToVwap,
259            "X" => Self::TradeAlong,
260            "Y" => Self::TryToStop,
261            "Z" => Self::CancelIfNotBest,
262            "a" => Self::TrailingStopPeg,
263            "b" => Self::StrictLimit,
264            "c" => Self::IgnorePriceValidityChecks,
265            "d" => Self::PegToLimitPrice,
266            "e" => Self::WorkToTargetStrategy,
267            unrecognized => Self::Unrecognized(unrecognized),
268        }
269    }
270
271    pub fn value(self) -> &'a str {
272        match self {
273            Self::NotHeld => "1",
274            Self::Work => "2",
275            Self::GoAlong => "3",
276            Self::OverTheDay => "4",
277            Self::Held => "5",
278            Self::ParticipateDoNotInitiate => "6",
279            Self::StrictScale => "7",
280            Self::TryToScale => "8",
281            Self::StayOnBidSide => "9",
282            Self::StayOnOfferSide => "0",
283            Self::NoCross => "A",
284            Self::OkToCross => "B",
285            Self::CallFirst => "C",
286            Self::PercentOfVolume => "D",
287            Self::DoNotIncrease => "E",
288            Self::DoNotReduce => "F",
289            Self::AllOrNone => "G",
290            Self::ReinstateOnSystemFailure => "H",
291            Self::InstitutionsOnly => "I",
292            Self::ReinstateOnTradingHalt => "J",
293            Self::CancelOnTradingHalt => "K",
294            Self::LastPeg => "L",
295            Self::MidPricePeg => "M",
296            Self::NonNegotiable => "N",
297            Self::OpeningPeg => "O",
298            Self::MarketPeg => "P",
299            Self::CancelOnSystemFailure => "Q",
300            Self::PrimaryPeg => "R",
301            Self::Suspend => "S",
302            Self::CustomerDisplayInstruction => "U",
303            Self::Netting => "V",
304            Self::PegToVwap => "W",
305            Self::TradeAlong => "X",
306            Self::TryToStop => "Y",
307            Self::CancelIfNotBest => "Z",
308            Self::TrailingStopPeg => "a",
309            Self::StrictLimit => "b",
310            Self::IgnorePriceValidityChecks => "c",
311            Self::PegToLimitPrice => "d",
312            Self::WorkToTargetStrategy => "e",
313            Self::Unrecognized(value) => value,
314        }
315    }
316}
317
318impl<'a> From<&'a str> for ExecInst<'a> {
319    fn from(value: &'a str) -> Self {
320        Self::from_value(value)
321    }
322}
323
324/// The values of the `HandlInst` (21) field.
325#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
326pub enum HandlInst<'a> {
327    /// `1`
328    AutomatedExecutionNoIntervention,
329    /// `2`
330    AutomatedExecutionInterventionOk,
331    /// `3`
332    ManualOrder,
333    /// A value the dictionary does not list.
334    Unrecognized(&'a str),
335}
336
337impl<'a> HandlInst<'a> {
338    pub fn from_value(value: &'a str) -> Self {
339        match value {
340            "1" => Self::AutomatedExecutionNoIntervention,
341            "2" => Self::AutomatedExecutionInterventionOk,
342            "3" => Self::ManualOrder,
343            unrecognized => Self::Unrecognized(unrecognized),
344        }
345    }
346
347    pub fn value(self) -> &'a str {
348        match self {
349            Self::AutomatedExecutionNoIntervention => "1",
350            Self::AutomatedExecutionInterventionOk => "2",
351            Self::ManualOrder => "3",
352            Self::Unrecognized(value) => value,
353        }
354    }
355}
356
357impl<'a> From<&'a str> for HandlInst<'a> {
358    fn from(value: &'a str) -> Self {
359        Self::from_value(value)
360    }
361}
362
363/// The values of the `SecurityIDSource` (22) field.
364#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
365pub enum SecurityIDSource<'a> {
366    /// `1`
367    Cusip,
368    /// `2`
369    Sedol,
370    /// `3`
371    Quik,
372    /// `4`
373    IsinNumber,
374    /// `5`
375    RicCode,
376    /// `6`
377    IsoCurrencyCode,
378    /// `7`
379    IsoCountryCode,
380    /// `8`
381    ExchangeSymbol,
382    /// `9`
383    ConsolidatedTapeAssociation,
384    /// `A`
385    BloombergSymbol,
386    /// `B`
387    Wertpapier,
388    /// `C`
389    Dutch,
390    /// `D`
391    Valoren,
392    /// `E`
393    Sicovam,
394    /// `F`
395    Belgian,
396    /// `G`
397    Common,
398    /// `H`
399    ClearingHouse,
400    /// `I`
401    IsdaFpMlSpecification,
402    /// `J`
403    OptionPriceReportingAuthority,
404    /// A value the dictionary does not list.
405    Unrecognized(&'a str),
406}
407
408impl<'a> SecurityIDSource<'a> {
409    pub fn from_value(value: &'a str) -> Self {
410        match value {
411            "1" => Self::Cusip,
412            "2" => Self::Sedol,
413            "3" => Self::Quik,
414            "4" => Self::IsinNumber,
415            "5" => Self::RicCode,
416            "6" => Self::IsoCurrencyCode,
417            "7" => Self::IsoCountryCode,
418            "8" => Self::ExchangeSymbol,
419            "9" => Self::ConsolidatedTapeAssociation,
420            "A" => Self::BloombergSymbol,
421            "B" => Self::Wertpapier,
422            "C" => Self::Dutch,
423            "D" => Self::Valoren,
424            "E" => Self::Sicovam,
425            "F" => Self::Belgian,
426            "G" => Self::Common,
427            "H" => Self::ClearingHouse,
428            "I" => Self::IsdaFpMlSpecification,
429            "J" => Self::OptionPriceReportingAuthority,
430            unrecognized => Self::Unrecognized(unrecognized),
431        }
432    }
433
434    pub fn value(self) -> &'a str {
435        match self {
436            Self::Cusip => "1",
437            Self::Sedol => "2",
438            Self::Quik => "3",
439            Self::IsinNumber => "4",
440            Self::RicCode => "5",
441            Self::IsoCurrencyCode => "6",
442            Self::IsoCountryCode => "7",
443            Self::ExchangeSymbol => "8",
444            Self::ConsolidatedTapeAssociation => "9",
445            Self::BloombergSymbol => "A",
446            Self::Wertpapier => "B",
447            Self::Dutch => "C",
448            Self::Valoren => "D",
449            Self::Sicovam => "E",
450            Self::Belgian => "F",
451            Self::Common => "G",
452            Self::ClearingHouse => "H",
453            Self::IsdaFpMlSpecification => "I",
454            Self::OptionPriceReportingAuthority => "J",
455            Self::Unrecognized(value) => value,
456        }
457    }
458}
459
460impl<'a> From<&'a str> for SecurityIDSource<'a> {
461    fn from(value: &'a str) -> Self {
462        Self::from_value(value)
463    }
464}
465
466/// The values of the `IOIQltyInd` (25) field.
467#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
468pub enum IOIQltyInd<'a> {
469    /// `L`
470    Low,
471    /// `M`
472    Medium,
473    /// `H`
474    High,
475    /// A value the dictionary does not list.
476    Unrecognized(&'a str),
477}
478
479impl<'a> IOIQltyInd<'a> {
480    pub fn from_value(value: &'a str) -> Self {
481        match value {
482            "L" => Self::Low,
483            "M" => Self::Medium,
484            "H" => Self::High,
485            unrecognized => Self::Unrecognized(unrecognized),
486        }
487    }
488
489    pub fn value(self) -> &'a str {
490        match self {
491            Self::Low => "L",
492            Self::Medium => "M",
493            Self::High => "H",
494            Self::Unrecognized(value) => value,
495        }
496    }
497}
498
499impl<'a> From<&'a str> for IOIQltyInd<'a> {
500    fn from(value: &'a str) -> Self {
501        Self::from_value(value)
502    }
503}
504
505/// The values of the `IOIQty` (27) field.
506#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
507pub enum IOIQty<'a> {
508    /// `S`
509    Small,
510    /// `M`
511    Medium,
512    /// `L`
513    Large,
514    /// A value the dictionary does not list.
515    Unrecognized(&'a str),
516}
517
518impl<'a> IOIQty<'a> {
519    pub fn from_value(value: &'a str) -> Self {
520        match value {
521            "S" => Self::Small,
522            "M" => Self::Medium,
523            "L" => Self::Large,
524            unrecognized => Self::Unrecognized(unrecognized),
525        }
526    }
527
528    pub fn value(self) -> &'a str {
529        match self {
530            Self::Small => "S",
531            Self::Medium => "M",
532            Self::Large => "L",
533            Self::Unrecognized(value) => value,
534        }
535    }
536}
537
538impl<'a> From<&'a str> for IOIQty<'a> {
539    fn from(value: &'a str) -> Self {
540        Self::from_value(value)
541    }
542}
543
544/// The values of the `IOITransType` (28) field.
545#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
546pub enum IOITransType<'a> {
547    /// `N`
548    New,
549    /// `C`
550    Cancel,
551    /// `R`
552    Replace,
553    /// A value the dictionary does not list.
554    Unrecognized(&'a str),
555}
556
557impl<'a> IOITransType<'a> {
558    pub fn from_value(value: &'a str) -> Self {
559        match value {
560            "N" => Self::New,
561            "C" => Self::Cancel,
562            "R" => Self::Replace,
563            unrecognized => Self::Unrecognized(unrecognized),
564        }
565    }
566
567    pub fn value(self) -> &'a str {
568        match self {
569            Self::New => "N",
570            Self::Cancel => "C",
571            Self::Replace => "R",
572            Self::Unrecognized(value) => value,
573        }
574    }
575}
576
577impl<'a> From<&'a str> for IOITransType<'a> {
578    fn from(value: &'a str) -> Self {
579        Self::from_value(value)
580    }
581}
582
583/// The values of the `LastCapacity` (29) field.
584#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
585pub enum LastCapacity<'a> {
586    /// `1`
587    Agent,
588    /// `2`
589    CrossAsAgent,
590    /// `3`
591    CrossAsPrincipal,
592    /// `4`
593    Principal,
594    /// A value the dictionary does not list.
595    Unrecognized(&'a str),
596}
597
598impl<'a> LastCapacity<'a> {
599    pub fn from_value(value: &'a str) -> Self {
600        match value {
601            "1" => Self::Agent,
602            "2" => Self::CrossAsAgent,
603            "3" => Self::CrossAsPrincipal,
604            "4" => Self::Principal,
605            unrecognized => Self::Unrecognized(unrecognized),
606        }
607    }
608
609    pub fn value(self) -> &'a str {
610        match self {
611            Self::Agent => "1",
612            Self::CrossAsAgent => "2",
613            Self::CrossAsPrincipal => "3",
614            Self::Principal => "4",
615            Self::Unrecognized(value) => value,
616        }
617    }
618}
619
620impl<'a> From<&'a str> for LastCapacity<'a> {
621    fn from(value: &'a str) -> Self {
622        Self::from_value(value)
623    }
624}
625
626/// The values of the `MsgType` (35) field.
627#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
628pub enum MsgType<'a> {
629    /// `0`
630    Heartbeat,
631    /// `1`
632    TestRequest,
633    /// `2`
634    ResendRequest,
635    /// `3`
636    Reject,
637    /// `4`
638    SequenceReset,
639    /// `5`
640    Logout,
641    /// `6`
642    Ioi,
643    /// `7`
644    Advertisement,
645    /// `8`
646    ExecutionReport,
647    /// `9`
648    OrderCancelReject,
649    /// `A`
650    Logon,
651    /// `B`
652    News,
653    /// `C`
654    Email,
655    /// `D`
656    NewOrderSingle,
657    /// `E`
658    NewOrderList,
659    /// `F`
660    OrderCancelRequest,
661    /// `G`
662    OrderCancelReplaceRequest,
663    /// `H`
664    OrderStatusRequest,
665    /// `J`
666    AllocationInstruction,
667    /// `K`
668    ListCancelRequest,
669    /// `L`
670    ListExecute,
671    /// `M`
672    ListStatusRequest,
673    /// `N`
674    ListStatus,
675    /// `P`
676    AllocationInstructionAck,
677    /// `Q`
678    DontKnowTrade,
679    /// `R`
680    QuoteRequest,
681    /// `S`
682    Quote,
683    /// `T`
684    SettlementInstructions,
685    /// `V`
686    MarketDataRequest,
687    /// `W`
688    MarketDataSnapshotFullRefresh,
689    /// `X`
690    MarketDataIncrementalRefresh,
691    /// `Y`
692    MarketDataRequestReject,
693    /// `Z`
694    QuoteCancel,
695    /// `a`
696    QuoteStatusRequest,
697    /// `b`
698    MassQuoteAcknowledgement,
699    /// `c`
700    SecurityDefinitionRequest,
701    /// `d`
702    SecurityDefinition,
703    /// `e`
704    SecurityStatusRequest,
705    /// `f`
706    SecurityStatus,
707    /// `g`
708    TradingSessionStatusRequest,
709    /// `h`
710    TradingSessionStatus,
711    /// `i`
712    MassQuote,
713    /// `j`
714    BusinessMessageReject,
715    /// `k`
716    BidRequest,
717    /// `l`
718    BidResponse,
719    /// `m`
720    ListStrikePrice,
721    /// `n`
722    XmlNonFix,
723    /// `o`
724    RegistrationInstructions,
725    /// `p`
726    RegistrationInstructionsResponse,
727    /// `q`
728    OrderMassCancelRequest,
729    /// `r`
730    OrderMassCancelReport,
731    /// `s`
732    NewOrderCross,
733    /// `t`
734    CrossOrderCancelReplaceRequest,
735    /// `u`
736    CrossOrderCancelRequest,
737    /// `v`
738    SecurityTypeRequest,
739    /// `w`
740    SecurityTypes,
741    /// `x`
742    SecurityListRequest,
743    /// `y`
744    SecurityList,
745    /// `z`
746    DerivativeSecurityListRequest,
747    /// `AA`
748    DerivativeSecurityList,
749    /// `AB`
750    NewOrderMultileg,
751    /// `AC`
752    MultilegOrderCancelReplace,
753    /// `AD`
754    TradeCaptureReportRequest,
755    /// `AE`
756    TradeCaptureReport,
757    /// `AF`
758    OrderMassStatusRequest,
759    /// `AG`
760    QuoteRequestReject,
761    /// `AH`
762    RfqRequest,
763    /// `AI`
764    QuoteStatusReport,
765    /// `AJ`
766    QuoteResponse,
767    /// `AK`
768    Confirmation,
769    /// `AL`
770    PositionMaintenanceRequest,
771    /// `AM`
772    PositionMaintenanceReport,
773    /// `AN`
774    RequestForPositions,
775    /// `AO`
776    RequestForPositionsAck,
777    /// `AP`
778    PositionReport,
779    /// `AQ`
780    TradeCaptureReportRequestAck,
781    /// `AR`
782    TradeCaptureReportAck,
783    /// `AS`
784    AllocationReport,
785    /// `AT`
786    AllocationReportAck,
787    /// `AU`
788    ConfirmationAck,
789    /// `AV`
790    SettlementInstructionRequest,
791    /// `AW`
792    AssignmentReport,
793    /// `AX`
794    CollateralRequest,
795    /// `AY`
796    CollateralAssignment,
797    /// `AZ`
798    CollateralResponse,
799    /// `BA`
800    CollateralReport,
801    /// `BB`
802    CollateralInquiry,
803    /// `BC`
804    NetworkCounterpartySystemStatusRequest,
805    /// `BD`
806    NetworkCounterpartySystemStatusResponse,
807    /// `BE`
808    UserRequest,
809    /// `BF`
810    UserResponse,
811    /// `BG`
812    CollateralInquiryAck,
813    /// `BH`
814    ConfirmationRequest,
815    /// A value the dictionary does not list.
816    Unrecognized(&'a str),
817}
818
819impl<'a> MsgType<'a> {
820    pub fn from_value(value: &'a str) -> Self {
821        match value {
822            "0" => Self::Heartbeat,
823            "1" => Self::TestRequest,
824            "2" => Self::ResendRequest,
825            "3" => Self::Reject,
826            "4" => Self::SequenceReset,
827            "5" => Self::Logout,
828            "6" => Self::Ioi,
829            "7" => Self::Advertisement,
830            "8" => Self::ExecutionReport,
831            "9" => Self::OrderCancelReject,
832            "A" => Self::Logon,
833            "B" => Self::News,
834            "C" => Self::Email,
835            "D" => Self::NewOrderSingle,
836            "E" => Self::NewOrderList,
837            "F" => Self::OrderCancelRequest,
838            "G" => Self::OrderCancelReplaceRequest,
839            "H" => Self::OrderStatusRequest,
840            "J" => Self::AllocationInstruction,
841            "K" => Self::ListCancelRequest,
842            "L" => Self::ListExecute,
843            "M" => Self::ListStatusRequest,
844            "N" => Self::ListStatus,
845            "P" => Self::AllocationInstructionAck,
846            "Q" => Self::DontKnowTrade,
847            "R" => Self::QuoteRequest,
848            "S" => Self::Quote,
849            "T" => Self::SettlementInstructions,
850            "V" => Self::MarketDataRequest,
851            "W" => Self::MarketDataSnapshotFullRefresh,
852            "X" => Self::MarketDataIncrementalRefresh,
853            "Y" => Self::MarketDataRequestReject,
854            "Z" => Self::QuoteCancel,
855            "a" => Self::QuoteStatusRequest,
856            "b" => Self::MassQuoteAcknowledgement,
857            "c" => Self::SecurityDefinitionRequest,
858            "d" => Self::SecurityDefinition,
859            "e" => Self::SecurityStatusRequest,
860            "f" => Self::SecurityStatus,
861            "g" => Self::TradingSessionStatusRequest,
862            "h" => Self::TradingSessionStatus,
863            "i" => Self::MassQuote,
864            "j" => Self::BusinessMessageReject,
865            "k" => Self::BidRequest,
866            "l" => Self::BidResponse,
867            "m" => Self::ListStrikePrice,
868            "n" => Self::XmlNonFix,
869            "o" => Self::RegistrationInstructions,
870            "p" => Self::RegistrationInstructionsResponse,
871            "q" => Self::OrderMassCancelRequest,
872            "r" => Self::OrderMassCancelReport,
873            "s" => Self::NewOrderCross,
874            "t" => Self::CrossOrderCancelReplaceRequest,
875            "u" => Self::CrossOrderCancelRequest,
876            "v" => Self::SecurityTypeRequest,
877            "w" => Self::SecurityTypes,
878            "x" => Self::SecurityListRequest,
879            "y" => Self::SecurityList,
880            "z" => Self::DerivativeSecurityListRequest,
881            "AA" => Self::DerivativeSecurityList,
882            "AB" => Self::NewOrderMultileg,
883            "AC" => Self::MultilegOrderCancelReplace,
884            "AD" => Self::TradeCaptureReportRequest,
885            "AE" => Self::TradeCaptureReport,
886            "AF" => Self::OrderMassStatusRequest,
887            "AG" => Self::QuoteRequestReject,
888            "AH" => Self::RfqRequest,
889            "AI" => Self::QuoteStatusReport,
890            "AJ" => Self::QuoteResponse,
891            "AK" => Self::Confirmation,
892            "AL" => Self::PositionMaintenanceRequest,
893            "AM" => Self::PositionMaintenanceReport,
894            "AN" => Self::RequestForPositions,
895            "AO" => Self::RequestForPositionsAck,
896            "AP" => Self::PositionReport,
897            "AQ" => Self::TradeCaptureReportRequestAck,
898            "AR" => Self::TradeCaptureReportAck,
899            "AS" => Self::AllocationReport,
900            "AT" => Self::AllocationReportAck,
901            "AU" => Self::ConfirmationAck,
902            "AV" => Self::SettlementInstructionRequest,
903            "AW" => Self::AssignmentReport,
904            "AX" => Self::CollateralRequest,
905            "AY" => Self::CollateralAssignment,
906            "AZ" => Self::CollateralResponse,
907            "BA" => Self::CollateralReport,
908            "BB" => Self::CollateralInquiry,
909            "BC" => Self::NetworkCounterpartySystemStatusRequest,
910            "BD" => Self::NetworkCounterpartySystemStatusResponse,
911            "BE" => Self::UserRequest,
912            "BF" => Self::UserResponse,
913            "BG" => Self::CollateralInquiryAck,
914            "BH" => Self::ConfirmationRequest,
915            unrecognized => Self::Unrecognized(unrecognized),
916        }
917    }
918
919    pub fn value(self) -> &'a str {
920        match self {
921            Self::Heartbeat => "0",
922            Self::TestRequest => "1",
923            Self::ResendRequest => "2",
924            Self::Reject => "3",
925            Self::SequenceReset => "4",
926            Self::Logout => "5",
927            Self::Ioi => "6",
928            Self::Advertisement => "7",
929            Self::ExecutionReport => "8",
930            Self::OrderCancelReject => "9",
931            Self::Logon => "A",
932            Self::News => "B",
933            Self::Email => "C",
934            Self::NewOrderSingle => "D",
935            Self::NewOrderList => "E",
936            Self::OrderCancelRequest => "F",
937            Self::OrderCancelReplaceRequest => "G",
938            Self::OrderStatusRequest => "H",
939            Self::AllocationInstruction => "J",
940            Self::ListCancelRequest => "K",
941            Self::ListExecute => "L",
942            Self::ListStatusRequest => "M",
943            Self::ListStatus => "N",
944            Self::AllocationInstructionAck => "P",
945            Self::DontKnowTrade => "Q",
946            Self::QuoteRequest => "R",
947            Self::Quote => "S",
948            Self::SettlementInstructions => "T",
949            Self::MarketDataRequest => "V",
950            Self::MarketDataSnapshotFullRefresh => "W",
951            Self::MarketDataIncrementalRefresh => "X",
952            Self::MarketDataRequestReject => "Y",
953            Self::QuoteCancel => "Z",
954            Self::QuoteStatusRequest => "a",
955            Self::MassQuoteAcknowledgement => "b",
956            Self::SecurityDefinitionRequest => "c",
957            Self::SecurityDefinition => "d",
958            Self::SecurityStatusRequest => "e",
959            Self::SecurityStatus => "f",
960            Self::TradingSessionStatusRequest => "g",
961            Self::TradingSessionStatus => "h",
962            Self::MassQuote => "i",
963            Self::BusinessMessageReject => "j",
964            Self::BidRequest => "k",
965            Self::BidResponse => "l",
966            Self::ListStrikePrice => "m",
967            Self::XmlNonFix => "n",
968            Self::RegistrationInstructions => "o",
969            Self::RegistrationInstructionsResponse => "p",
970            Self::OrderMassCancelRequest => "q",
971            Self::OrderMassCancelReport => "r",
972            Self::NewOrderCross => "s",
973            Self::CrossOrderCancelReplaceRequest => "t",
974            Self::CrossOrderCancelRequest => "u",
975            Self::SecurityTypeRequest => "v",
976            Self::SecurityTypes => "w",
977            Self::SecurityListRequest => "x",
978            Self::SecurityList => "y",
979            Self::DerivativeSecurityListRequest => "z",
980            Self::DerivativeSecurityList => "AA",
981            Self::NewOrderMultileg => "AB",
982            Self::MultilegOrderCancelReplace => "AC",
983            Self::TradeCaptureReportRequest => "AD",
984            Self::TradeCaptureReport => "AE",
985            Self::OrderMassStatusRequest => "AF",
986            Self::QuoteRequestReject => "AG",
987            Self::RfqRequest => "AH",
988            Self::QuoteStatusReport => "AI",
989            Self::QuoteResponse => "AJ",
990            Self::Confirmation => "AK",
991            Self::PositionMaintenanceRequest => "AL",
992            Self::PositionMaintenanceReport => "AM",
993            Self::RequestForPositions => "AN",
994            Self::RequestForPositionsAck => "AO",
995            Self::PositionReport => "AP",
996            Self::TradeCaptureReportRequestAck => "AQ",
997            Self::TradeCaptureReportAck => "AR",
998            Self::AllocationReport => "AS",
999            Self::AllocationReportAck => "AT",
1000            Self::ConfirmationAck => "AU",
1001            Self::SettlementInstructionRequest => "AV",
1002            Self::AssignmentReport => "AW",
1003            Self::CollateralRequest => "AX",
1004            Self::CollateralAssignment => "AY",
1005            Self::CollateralResponse => "AZ",
1006            Self::CollateralReport => "BA",
1007            Self::CollateralInquiry => "BB",
1008            Self::NetworkCounterpartySystemStatusRequest => "BC",
1009            Self::NetworkCounterpartySystemStatusResponse => "BD",
1010            Self::UserRequest => "BE",
1011            Self::UserResponse => "BF",
1012            Self::CollateralInquiryAck => "BG",
1013            Self::ConfirmationRequest => "BH",
1014            Self::Unrecognized(value) => value,
1015        }
1016    }
1017}
1018
1019impl<'a> From<&'a str> for MsgType<'a> {
1020    fn from(value: &'a str) -> Self {
1021        Self::from_value(value)
1022    }
1023}
1024
1025/// The values of the `OrdStatus` (39) field.
1026#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1027pub enum OrdStatus<'a> {
1028    /// `0`
1029    New,
1030    /// `1`
1031    PartiallyFilled,
1032    /// `2`
1033    Filled,
1034    /// `3`
1035    DoneForDay,
1036    /// `4`
1037    Canceled,
1038    /// `6`
1039    PendingCancel,
1040    /// `7`
1041    Stopped,
1042    /// `8`
1043    Rejected,
1044    /// `9`
1045    Suspended,
1046    /// `A`
1047    PendingNew,
1048    /// `B`
1049    Calculated,
1050    /// `C`
1051    Expired,
1052    /// `D`
1053    AcceptedForBidding,
1054    /// `E`
1055    PendingReplace,
1056    /// A value the dictionary does not list.
1057    Unrecognized(&'a str),
1058}
1059
1060impl<'a> OrdStatus<'a> {
1061    pub fn from_value(value: &'a str) -> Self {
1062        match value {
1063            "0" => Self::New,
1064            "1" => Self::PartiallyFilled,
1065            "2" => Self::Filled,
1066            "3" => Self::DoneForDay,
1067            "4" => Self::Canceled,
1068            "6" => Self::PendingCancel,
1069            "7" => Self::Stopped,
1070            "8" => Self::Rejected,
1071            "9" => Self::Suspended,
1072            "A" => Self::PendingNew,
1073            "B" => Self::Calculated,
1074            "C" => Self::Expired,
1075            "D" => Self::AcceptedForBidding,
1076            "E" => Self::PendingReplace,
1077            unrecognized => Self::Unrecognized(unrecognized),
1078        }
1079    }
1080
1081    pub fn value(self) -> &'a str {
1082        match self {
1083            Self::New => "0",
1084            Self::PartiallyFilled => "1",
1085            Self::Filled => "2",
1086            Self::DoneForDay => "3",
1087            Self::Canceled => "4",
1088            Self::PendingCancel => "6",
1089            Self::Stopped => "7",
1090            Self::Rejected => "8",
1091            Self::Suspended => "9",
1092            Self::PendingNew => "A",
1093            Self::Calculated => "B",
1094            Self::Expired => "C",
1095            Self::AcceptedForBidding => "D",
1096            Self::PendingReplace => "E",
1097            Self::Unrecognized(value) => value,
1098        }
1099    }
1100}
1101
1102impl<'a> From<&'a str> for OrdStatus<'a> {
1103    fn from(value: &'a str) -> Self {
1104        Self::from_value(value)
1105    }
1106}
1107
1108/// The values of the `OrdType` (40) field.
1109#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1110pub enum OrdType<'a> {
1111    /// `1`
1112    Market,
1113    /// `2`
1114    Limit,
1115    /// `3`
1116    Stop,
1117    /// `4`
1118    StopLimit,
1119    /// `6`
1120    WithOrWithout,
1121    /// `7`
1122    LimitOrBetter,
1123    /// `8`
1124    LimitWithOrWithout,
1125    /// `9`
1126    OnBasis,
1127    /// `D`
1128    PreviouslyQuoted,
1129    /// `E`
1130    PreviouslyIndicated,
1131    /// `G`
1132    ForexSwap,
1133    /// `I`
1134    Funari,
1135    /// `J`
1136    MarketIfTouched,
1137    /// `K`
1138    MarketWithLeftOverAsLimit,
1139    /// `L`
1140    PreviousFundValuationPoint,
1141    /// `M`
1142    NextFundValuationPoint,
1143    /// `P`
1144    Pegged,
1145    /// A value the dictionary does not list.
1146    Unrecognized(&'a str),
1147}
1148
1149impl<'a> OrdType<'a> {
1150    pub fn from_value(value: &'a str) -> Self {
1151        match value {
1152            "1" => Self::Market,
1153            "2" => Self::Limit,
1154            "3" => Self::Stop,
1155            "4" => Self::StopLimit,
1156            "6" => Self::WithOrWithout,
1157            "7" => Self::LimitOrBetter,
1158            "8" => Self::LimitWithOrWithout,
1159            "9" => Self::OnBasis,
1160            "D" => Self::PreviouslyQuoted,
1161            "E" => Self::PreviouslyIndicated,
1162            "G" => Self::ForexSwap,
1163            "I" => Self::Funari,
1164            "J" => Self::MarketIfTouched,
1165            "K" => Self::MarketWithLeftOverAsLimit,
1166            "L" => Self::PreviousFundValuationPoint,
1167            "M" => Self::NextFundValuationPoint,
1168            "P" => Self::Pegged,
1169            unrecognized => Self::Unrecognized(unrecognized),
1170        }
1171    }
1172
1173    pub fn value(self) -> &'a str {
1174        match self {
1175            Self::Market => "1",
1176            Self::Limit => "2",
1177            Self::Stop => "3",
1178            Self::StopLimit => "4",
1179            Self::WithOrWithout => "6",
1180            Self::LimitOrBetter => "7",
1181            Self::LimitWithOrWithout => "8",
1182            Self::OnBasis => "9",
1183            Self::PreviouslyQuoted => "D",
1184            Self::PreviouslyIndicated => "E",
1185            Self::ForexSwap => "G",
1186            Self::Funari => "I",
1187            Self::MarketIfTouched => "J",
1188            Self::MarketWithLeftOverAsLimit => "K",
1189            Self::PreviousFundValuationPoint => "L",
1190            Self::NextFundValuationPoint => "M",
1191            Self::Pegged => "P",
1192            Self::Unrecognized(value) => value,
1193        }
1194    }
1195}
1196
1197impl<'a> From<&'a str> for OrdType<'a> {
1198    fn from(value: &'a str) -> Self {
1199        Self::from_value(value)
1200    }
1201}
1202
1203/// The values of the `Side` (54) field.
1204#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1205pub enum Side<'a> {
1206    /// `1`
1207    Buy,
1208    /// `2`
1209    Sell,
1210    /// `3`
1211    BuyMinus,
1212    /// `4`
1213    SellPlus,
1214    /// `5`
1215    SellShort,
1216    /// `6`
1217    SellShortExempt,
1218    /// `7`
1219    Undisclosed,
1220    /// `8`
1221    Cross,
1222    /// `9`
1223    CrossShort,
1224    /// `A`
1225    CrossShortExempt,
1226    /// `B`
1227    AsDefined,
1228    /// `C`
1229    Opposite,
1230    /// `D`
1231    Subscribe,
1232    /// `E`
1233    Redeem,
1234    /// `F`
1235    Lend,
1236    /// `G`
1237    Borrow,
1238    /// A value the dictionary does not list.
1239    Unrecognized(&'a str),
1240}
1241
1242impl<'a> Side<'a> {
1243    pub fn from_value(value: &'a str) -> Self {
1244        match value {
1245            "1" => Self::Buy,
1246            "2" => Self::Sell,
1247            "3" => Self::BuyMinus,
1248            "4" => Self::SellPlus,
1249            "5" => Self::SellShort,
1250            "6" => Self::SellShortExempt,
1251            "7" => Self::Undisclosed,
1252            "8" => Self::Cross,
1253            "9" => Self::CrossShort,
1254            "A" => Self::CrossShortExempt,
1255            "B" => Self::AsDefined,
1256            "C" => Self::Opposite,
1257            "D" => Self::Subscribe,
1258            "E" => Self::Redeem,
1259            "F" => Self::Lend,
1260            "G" => Self::Borrow,
1261            unrecognized => Self::Unrecognized(unrecognized),
1262        }
1263    }
1264
1265    pub fn value(self) -> &'a str {
1266        match self {
1267            Self::Buy => "1",
1268            Self::Sell => "2",
1269            Self::BuyMinus => "3",
1270            Self::SellPlus => "4",
1271            Self::SellShort => "5",
1272            Self::SellShortExempt => "6",
1273            Self::Undisclosed => "7",
1274            Self::Cross => "8",
1275            Self::CrossShort => "9",
1276            Self::CrossShortExempt => "A",
1277            Self::AsDefined => "B",
1278            Self::Opposite => "C",
1279            Self::Subscribe => "D",
1280            Self::Redeem => "E",
1281            Self::Lend => "F",
1282            Self::Borrow => "G",
1283            Self::Unrecognized(value) => value,
1284        }
1285    }
1286}
1287
1288impl<'a> From<&'a str> for Side<'a> {
1289    fn from(value: &'a str) -> Self {
1290        Self::from_value(value)
1291    }
1292}
1293
1294/// The values of the `TimeInForce` (59) field.
1295#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1296pub enum TimeInForce<'a> {
1297    /// `0`
1298    Day,
1299    /// `1`
1300    GoodTillCancel,
1301    /// `2`
1302    AtTheOpening,
1303    /// `3`
1304    ImmediateOrCancel,
1305    /// `4`
1306    FillOrKill,
1307    /// `5`
1308    GoodTillCrossing,
1309    /// `6`
1310    GoodTillDate,
1311    /// `7`
1312    AtTheClose,
1313    /// A value the dictionary does not list.
1314    Unrecognized(&'a str),
1315}
1316
1317impl<'a> TimeInForce<'a> {
1318    pub fn from_value(value: &'a str) -> Self {
1319        match value {
1320            "0" => Self::Day,
1321            "1" => Self::GoodTillCancel,
1322            "2" => Self::AtTheOpening,
1323            "3" => Self::ImmediateOrCancel,
1324            "4" => Self::FillOrKill,
1325            "5" => Self::GoodTillCrossing,
1326            "6" => Self::GoodTillDate,
1327            "7" => Self::AtTheClose,
1328            unrecognized => Self::Unrecognized(unrecognized),
1329        }
1330    }
1331
1332    pub fn value(self) -> &'a str {
1333        match self {
1334            Self::Day => "0",
1335            Self::GoodTillCancel => "1",
1336            Self::AtTheOpening => "2",
1337            Self::ImmediateOrCancel => "3",
1338            Self::FillOrKill => "4",
1339            Self::GoodTillCrossing => "5",
1340            Self::GoodTillDate => "6",
1341            Self::AtTheClose => "7",
1342            Self::Unrecognized(value) => value,
1343        }
1344    }
1345}
1346
1347impl<'a> From<&'a str> for TimeInForce<'a> {
1348    fn from(value: &'a str) -> Self {
1349        Self::from_value(value)
1350    }
1351}
1352
1353/// The values of the `Urgency` (61) field.
1354#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1355pub enum Urgency<'a> {
1356    /// `0`
1357    Normal,
1358    /// `1`
1359    Flash,
1360    /// `2`
1361    Background,
1362    /// A value the dictionary does not list.
1363    Unrecognized(&'a str),
1364}
1365
1366impl<'a> Urgency<'a> {
1367    pub fn from_value(value: &'a str) -> Self {
1368        match value {
1369            "0" => Self::Normal,
1370            "1" => Self::Flash,
1371            "2" => Self::Background,
1372            unrecognized => Self::Unrecognized(unrecognized),
1373        }
1374    }
1375
1376    pub fn value(self) -> &'a str {
1377        match self {
1378            Self::Normal => "0",
1379            Self::Flash => "1",
1380            Self::Background => "2",
1381            Self::Unrecognized(value) => value,
1382        }
1383    }
1384}
1385
1386impl<'a> From<&'a str> for Urgency<'a> {
1387    fn from(value: &'a str) -> Self {
1388        Self::from_value(value)
1389    }
1390}
1391
1392/// The values of the `SettlType` (63) field.
1393#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1394pub enum SettlType<'a> {
1395    /// `0`
1396    Regular,
1397    /// `1`
1398    Cash,
1399    /// `2`
1400    NextDay,
1401    /// `3`
1402    TPlus2,
1403    /// `4`
1404    TPlus3,
1405    /// `5`
1406    TPlus4,
1407    /// `6`
1408    Future,
1409    /// `7`
1410    WhenAndIfIssued,
1411    /// `8`
1412    SellersOption,
1413    /// `9`
1414    TPlus5,
1415    /// A value the dictionary does not list.
1416    Unrecognized(&'a str),
1417}
1418
1419impl<'a> SettlType<'a> {
1420    pub fn from_value(value: &'a str) -> Self {
1421        match value {
1422            "0" => Self::Regular,
1423            "1" => Self::Cash,
1424            "2" => Self::NextDay,
1425            "3" => Self::TPlus2,
1426            "4" => Self::TPlus3,
1427            "5" => Self::TPlus4,
1428            "6" => Self::Future,
1429            "7" => Self::WhenAndIfIssued,
1430            "8" => Self::SellersOption,
1431            "9" => Self::TPlus5,
1432            unrecognized => Self::Unrecognized(unrecognized),
1433        }
1434    }
1435
1436    pub fn value(self) -> &'a str {
1437        match self {
1438            Self::Regular => "0",
1439            Self::Cash => "1",
1440            Self::NextDay => "2",
1441            Self::TPlus2 => "3",
1442            Self::TPlus3 => "4",
1443            Self::TPlus4 => "5",
1444            Self::Future => "6",
1445            Self::WhenAndIfIssued => "7",
1446            Self::SellersOption => "8",
1447            Self::TPlus5 => "9",
1448            Self::Unrecognized(value) => value,
1449        }
1450    }
1451}
1452
1453impl<'a> From<&'a str> for SettlType<'a> {
1454    fn from(value: &'a str) -> Self {
1455        Self::from_value(value)
1456    }
1457}
1458
1459/// The values of the `AllocTransType` (71) field.
1460#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1461pub enum AllocTransType<'a> {
1462    /// `0`
1463    New,
1464    /// `1`
1465    Replace,
1466    /// `2`
1467    Cancel,
1468    /// A value the dictionary does not list.
1469    Unrecognized(&'a str),
1470}
1471
1472impl<'a> AllocTransType<'a> {
1473    pub fn from_value(value: &'a str) -> Self {
1474        match value {
1475            "0" => Self::New,
1476            "1" => Self::Replace,
1477            "2" => Self::Cancel,
1478            unrecognized => Self::Unrecognized(unrecognized),
1479        }
1480    }
1481
1482    pub fn value(self) -> &'a str {
1483        match self {
1484            Self::New => "0",
1485            Self::Replace => "1",
1486            Self::Cancel => "2",
1487            Self::Unrecognized(value) => value,
1488        }
1489    }
1490}
1491
1492impl<'a> From<&'a str> for AllocTransType<'a> {
1493    fn from(value: &'a str) -> Self {
1494        Self::from_value(value)
1495    }
1496}
1497
1498/// The values of the `PositionEffect` (77) field.
1499#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1500pub enum PositionEffect<'a> {
1501    /// `O`
1502    Open,
1503    /// `C`
1504    Close,
1505    /// `R`
1506    Rolled,
1507    /// `F`
1508    Fifo,
1509    /// A value the dictionary does not list.
1510    Unrecognized(&'a str),
1511}
1512
1513impl<'a> PositionEffect<'a> {
1514    pub fn from_value(value: &'a str) -> Self {
1515        match value {
1516            "O" => Self::Open,
1517            "C" => Self::Close,
1518            "R" => Self::Rolled,
1519            "F" => Self::Fifo,
1520            unrecognized => Self::Unrecognized(unrecognized),
1521        }
1522    }
1523
1524    pub fn value(self) -> &'a str {
1525        match self {
1526            Self::Open => "O",
1527            Self::Close => "C",
1528            Self::Rolled => "R",
1529            Self::Fifo => "F",
1530            Self::Unrecognized(value) => value,
1531        }
1532    }
1533}
1534
1535impl<'a> From<&'a str> for PositionEffect<'a> {
1536    fn from(value: &'a str) -> Self {
1537        Self::from_value(value)
1538    }
1539}
1540
1541/// The values of the `ProcessCode` (81) field.
1542#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1543pub enum ProcessCode<'a> {
1544    /// `0`
1545    Regular,
1546    /// `1`
1547    SoftDollar,
1548    /// `2`
1549    StepIn,
1550    /// `3`
1551    StepOut,
1552    /// `4`
1553    SoftDollarStepIn,
1554    /// `5`
1555    SoftDollarStepOut,
1556    /// `6`
1557    PlanSponsor,
1558    /// A value the dictionary does not list.
1559    Unrecognized(&'a str),
1560}
1561
1562impl<'a> ProcessCode<'a> {
1563    pub fn from_value(value: &'a str) -> Self {
1564        match value {
1565            "0" => Self::Regular,
1566            "1" => Self::SoftDollar,
1567            "2" => Self::StepIn,
1568            "3" => Self::StepOut,
1569            "4" => Self::SoftDollarStepIn,
1570            "5" => Self::SoftDollarStepOut,
1571            "6" => Self::PlanSponsor,
1572            unrecognized => Self::Unrecognized(unrecognized),
1573        }
1574    }
1575
1576    pub fn value(self) -> &'a str {
1577        match self {
1578            Self::Regular => "0",
1579            Self::SoftDollar => "1",
1580            Self::StepIn => "2",
1581            Self::StepOut => "3",
1582            Self::SoftDollarStepIn => "4",
1583            Self::SoftDollarStepOut => "5",
1584            Self::PlanSponsor => "6",
1585            Self::Unrecognized(value) => value,
1586        }
1587    }
1588}
1589
1590impl<'a> From<&'a str> for ProcessCode<'a> {
1591    fn from(value: &'a str) -> Self {
1592        Self::from_value(value)
1593    }
1594}
1595
1596/// The values of the `AllocStatus` (87) field.
1597#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1598pub enum AllocStatus {
1599    /// `0`
1600    Accepted,
1601    /// `1`
1602    BlockLevelReject,
1603    /// `2`
1604    AccountLevelReject,
1605    /// `3`
1606    Received,
1607    /// `4`
1608    Incomplete,
1609    /// `5`
1610    RejectedByIntermediary,
1611    /// A value the dictionary does not list.
1612    Unrecognized(i64),
1613}
1614
1615impl AllocStatus {
1616    pub fn from_value(value: i64) -> Self {
1617        match value {
1618            0 => Self::Accepted,
1619            1 => Self::BlockLevelReject,
1620            2 => Self::AccountLevelReject,
1621            3 => Self::Received,
1622            4 => Self::Incomplete,
1623            5 => Self::RejectedByIntermediary,
1624            unrecognized => Self::Unrecognized(unrecognized),
1625        }
1626    }
1627
1628    pub fn value(self) -> i64 {
1629        match self {
1630            Self::Accepted => 0,
1631            Self::BlockLevelReject => 1,
1632            Self::AccountLevelReject => 2,
1633            Self::Received => 3,
1634            Self::Incomplete => 4,
1635            Self::RejectedByIntermediary => 5,
1636            Self::Unrecognized(value) => value,
1637        }
1638    }
1639}
1640
1641/// The values of the `AllocRejCode` (88) field.
1642#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1643pub enum AllocRejCode {
1644    /// `0`
1645    UnknownAccount,
1646    /// `1`
1647    IncorrectQuantity,
1648    /// `2`
1649    IncorrectAveragegPrice,
1650    /// `3`
1651    UnknownExecutingBrokerMnemonic,
1652    /// `4`
1653    CommissionDifference,
1654    /// `5`
1655    UnknownOrderId,
1656    /// `6`
1657    UnknownListId,
1658    /// `7`
1659    OtherSeeText,
1660    /// `8`
1661    IncorrectAllocatedQuantity,
1662    /// `9`
1663    CalculationDifference,
1664    /// `10`
1665    UnknownOrStaleExecId,
1666    /// `11`
1667    MismatchedData,
1668    /// `12`
1669    UnknownClOrdId,
1670    /// `13`
1671    WarehouseRequestRejected,
1672    /// A value the dictionary does not list.
1673    Unrecognized(i64),
1674}
1675
1676impl AllocRejCode {
1677    pub fn from_value(value: i64) -> Self {
1678        match value {
1679            0 => Self::UnknownAccount,
1680            1 => Self::IncorrectQuantity,
1681            2 => Self::IncorrectAveragegPrice,
1682            3 => Self::UnknownExecutingBrokerMnemonic,
1683            4 => Self::CommissionDifference,
1684            5 => Self::UnknownOrderId,
1685            6 => Self::UnknownListId,
1686            7 => Self::OtherSeeText,
1687            8 => Self::IncorrectAllocatedQuantity,
1688            9 => Self::CalculationDifference,
1689            10 => Self::UnknownOrStaleExecId,
1690            11 => Self::MismatchedData,
1691            12 => Self::UnknownClOrdId,
1692            13 => Self::WarehouseRequestRejected,
1693            unrecognized => Self::Unrecognized(unrecognized),
1694        }
1695    }
1696
1697    pub fn value(self) -> i64 {
1698        match self {
1699            Self::UnknownAccount => 0,
1700            Self::IncorrectQuantity => 1,
1701            Self::IncorrectAveragegPrice => 2,
1702            Self::UnknownExecutingBrokerMnemonic => 3,
1703            Self::CommissionDifference => 4,
1704            Self::UnknownOrderId => 5,
1705            Self::UnknownListId => 6,
1706            Self::OtherSeeText => 7,
1707            Self::IncorrectAllocatedQuantity => 8,
1708            Self::CalculationDifference => 9,
1709            Self::UnknownOrStaleExecId => 10,
1710            Self::MismatchedData => 11,
1711            Self::UnknownClOrdId => 12,
1712            Self::WarehouseRequestRejected => 13,
1713            Self::Unrecognized(value) => value,
1714        }
1715    }
1716}
1717
1718/// The values of the `EmailType` (94) field.
1719#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1720pub enum EmailType<'a> {
1721    /// `0`
1722    New,
1723    /// `1`
1724    Reply,
1725    /// `2`
1726    AdminReply,
1727    /// A value the dictionary does not list.
1728    Unrecognized(&'a str),
1729}
1730
1731impl<'a> EmailType<'a> {
1732    pub fn from_value(value: &'a str) -> Self {
1733        match value {
1734            "0" => Self::New,
1735            "1" => Self::Reply,
1736            "2" => Self::AdminReply,
1737            unrecognized => Self::Unrecognized(unrecognized),
1738        }
1739    }
1740
1741    pub fn value(self) -> &'a str {
1742        match self {
1743            Self::New => "0",
1744            Self::Reply => "1",
1745            Self::AdminReply => "2",
1746            Self::Unrecognized(value) => value,
1747        }
1748    }
1749}
1750
1751impl<'a> From<&'a str> for EmailType<'a> {
1752    fn from(value: &'a str) -> Self {
1753        Self::from_value(value)
1754    }
1755}
1756
1757/// The values of the `EncryptMethod` (98) field.
1758#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1759pub enum EncryptMethod {
1760    /// `0`
1761    None,
1762    /// `1`
1763    Pkcs,
1764    /// `2`
1765    Des,
1766    /// `3`
1767    Pkcsdes,
1768    /// `4`
1769    Pgpdes,
1770    /// `5`
1771    Pgpdesmd5,
1772    /// `6`
1773    Pem,
1774    /// A value the dictionary does not list.
1775    Unrecognized(i64),
1776}
1777
1778impl EncryptMethod {
1779    pub fn from_value(value: i64) -> Self {
1780        match value {
1781            0 => Self::None,
1782            1 => Self::Pkcs,
1783            2 => Self::Des,
1784            3 => Self::Pkcsdes,
1785            4 => Self::Pgpdes,
1786            5 => Self::Pgpdesmd5,
1787            6 => Self::Pem,
1788            unrecognized => Self::Unrecognized(unrecognized),
1789        }
1790    }
1791
1792    pub fn value(self) -> i64 {
1793        match self {
1794            Self::None => 0,
1795            Self::Pkcs => 1,
1796            Self::Des => 2,
1797            Self::Pkcsdes => 3,
1798            Self::Pgpdes => 4,
1799            Self::Pgpdesmd5 => 5,
1800            Self::Pem => 6,
1801            Self::Unrecognized(value) => value,
1802        }
1803    }
1804}
1805
1806/// The values of the `CxlRejReason` (102) field.
1807#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1808pub enum CxlRejReason {
1809    /// `0`
1810    TooLateToCancel,
1811    /// `1`
1812    UnknownOrder,
1813    /// `2`
1814    BrokerCredit,
1815    /// `3`
1816    OrderAlreadyInPendingStatus,
1817    /// `4`
1818    UnableToProcessOrderMassCancelRequest,
1819    /// `5`
1820    OrigOrdModTime,
1821    /// `6`
1822    DuplicateClOrdId,
1823    /// `99`
1824    Other,
1825    /// A value the dictionary does not list.
1826    Unrecognized(i64),
1827}
1828
1829impl CxlRejReason {
1830    pub fn from_value(value: i64) -> Self {
1831        match value {
1832            0 => Self::TooLateToCancel,
1833            1 => Self::UnknownOrder,
1834            2 => Self::BrokerCredit,
1835            3 => Self::OrderAlreadyInPendingStatus,
1836            4 => Self::UnableToProcessOrderMassCancelRequest,
1837            5 => Self::OrigOrdModTime,
1838            6 => Self::DuplicateClOrdId,
1839            99 => Self::Other,
1840            unrecognized => Self::Unrecognized(unrecognized),
1841        }
1842    }
1843
1844    pub fn value(self) -> i64 {
1845        match self {
1846            Self::TooLateToCancel => 0,
1847            Self::UnknownOrder => 1,
1848            Self::BrokerCredit => 2,
1849            Self::OrderAlreadyInPendingStatus => 3,
1850            Self::UnableToProcessOrderMassCancelRequest => 4,
1851            Self::OrigOrdModTime => 5,
1852            Self::DuplicateClOrdId => 6,
1853            Self::Other => 99,
1854            Self::Unrecognized(value) => value,
1855        }
1856    }
1857}
1858
1859/// The values of the `OrdRejReason` (103) field.
1860#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1861pub enum OrdRejReason {
1862    /// `0`
1863    BrokerCredit,
1864    /// `1`
1865    UnknownSymbol,
1866    /// `2`
1867    ExchangeClosed,
1868    /// `3`
1869    OrderExceedsLimit,
1870    /// `4`
1871    TooLateToEnter,
1872    /// `5`
1873    UnknownOrder,
1874    /// `6`
1875    DuplicateOrder,
1876    /// `7`
1877    DuplicateOfAVerballyCommunicatedOrder,
1878    /// `8`
1879    StaleOrder,
1880    /// `9`
1881    TradeAlongRequired,
1882    /// `10`
1883    InvalidInvestorId,
1884    /// `11`
1885    UnsupportedOrderCharacteristic,
1886    /// `13`
1887    IncorrectQuantity,
1888    /// `14`
1889    IncorrectAllocatedQuantity,
1890    /// `15`
1891    UnknownAccount,
1892    /// `99`
1893    Other,
1894    /// A value the dictionary does not list.
1895    Unrecognized(i64),
1896}
1897
1898impl OrdRejReason {
1899    pub fn from_value(value: i64) -> Self {
1900        match value {
1901            0 => Self::BrokerCredit,
1902            1 => Self::UnknownSymbol,
1903            2 => Self::ExchangeClosed,
1904            3 => Self::OrderExceedsLimit,
1905            4 => Self::TooLateToEnter,
1906            5 => Self::UnknownOrder,
1907            6 => Self::DuplicateOrder,
1908            7 => Self::DuplicateOfAVerballyCommunicatedOrder,
1909            8 => Self::StaleOrder,
1910            9 => Self::TradeAlongRequired,
1911            10 => Self::InvalidInvestorId,
1912            11 => Self::UnsupportedOrderCharacteristic,
1913            13 => Self::IncorrectQuantity,
1914            14 => Self::IncorrectAllocatedQuantity,
1915            15 => Self::UnknownAccount,
1916            99 => Self::Other,
1917            unrecognized => Self::Unrecognized(unrecognized),
1918        }
1919    }
1920
1921    pub fn value(self) -> i64 {
1922        match self {
1923            Self::BrokerCredit => 0,
1924            Self::UnknownSymbol => 1,
1925            Self::ExchangeClosed => 2,
1926            Self::OrderExceedsLimit => 3,
1927            Self::TooLateToEnter => 4,
1928            Self::UnknownOrder => 5,
1929            Self::DuplicateOrder => 6,
1930            Self::DuplicateOfAVerballyCommunicatedOrder => 7,
1931            Self::StaleOrder => 8,
1932            Self::TradeAlongRequired => 9,
1933            Self::InvalidInvestorId => 10,
1934            Self::UnsupportedOrderCharacteristic => 11,
1935            Self::IncorrectQuantity => 13,
1936            Self::IncorrectAllocatedQuantity => 14,
1937            Self::UnknownAccount => 15,
1938            Self::Other => 99,
1939            Self::Unrecognized(value) => value,
1940        }
1941    }
1942}
1943
1944/// The values of the `IOIQualifier` (104) field.
1945#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
1946pub enum IOIQualifier<'a> {
1947    /// `A`
1948    AllOrNone,
1949    /// `B`
1950    MarketOnClose,
1951    /// `C`
1952    AtTheClose,
1953    /// `D`
1954    Vwap,
1955    /// `I`
1956    InTouchWith,
1957    /// `L`
1958    Limit,
1959    /// `M`
1960    MoreBehind,
1961    /// `O`
1962    AtTheOpen,
1963    /// `P`
1964    TakingAPosition,
1965    /// `Q`
1966    AtTheMarket,
1967    /// `R`
1968    ReadyToTrade,
1969    /// `S`
1970    PortfolioShown,
1971    /// `T`
1972    ThroughTheDay,
1973    /// `V`
1974    Versus,
1975    /// `W`
1976    Indication,
1977    /// `X`
1978    CrossingOpportunity,
1979    /// `Y`
1980    AtTheMidpoint,
1981    /// `Z`
1982    PreOpen,
1983    /// A value the dictionary does not list.
1984    Unrecognized(&'a str),
1985}
1986
1987impl<'a> IOIQualifier<'a> {
1988    pub fn from_value(value: &'a str) -> Self {
1989        match value {
1990            "A" => Self::AllOrNone,
1991            "B" => Self::MarketOnClose,
1992            "C" => Self::AtTheClose,
1993            "D" => Self::Vwap,
1994            "I" => Self::InTouchWith,
1995            "L" => Self::Limit,
1996            "M" => Self::MoreBehind,
1997            "O" => Self::AtTheOpen,
1998            "P" => Self::TakingAPosition,
1999            "Q" => Self::AtTheMarket,
2000            "R" => Self::ReadyToTrade,
2001            "S" => Self::PortfolioShown,
2002            "T" => Self::ThroughTheDay,
2003            "V" => Self::Versus,
2004            "W" => Self::Indication,
2005            "X" => Self::CrossingOpportunity,
2006            "Y" => Self::AtTheMidpoint,
2007            "Z" => Self::PreOpen,
2008            unrecognized => Self::Unrecognized(unrecognized),
2009        }
2010    }
2011
2012    pub fn value(self) -> &'a str {
2013        match self {
2014            Self::AllOrNone => "A",
2015            Self::MarketOnClose => "B",
2016            Self::AtTheClose => "C",
2017            Self::Vwap => "D",
2018            Self::InTouchWith => "I",
2019            Self::Limit => "L",
2020            Self::MoreBehind => "M",
2021            Self::AtTheOpen => "O",
2022            Self::TakingAPosition => "P",
2023            Self::AtTheMarket => "Q",
2024            Self::ReadyToTrade => "R",
2025            Self::PortfolioShown => "S",
2026            Self::ThroughTheDay => "T",
2027            Self::Versus => "V",
2028            Self::Indication => "W",
2029            Self::CrossingOpportunity => "X",
2030            Self::AtTheMidpoint => "Y",
2031            Self::PreOpen => "Z",
2032            Self::Unrecognized(value) => value,
2033        }
2034    }
2035}
2036
2037impl<'a> From<&'a str> for IOIQualifier<'a> {
2038    fn from(value: &'a str) -> Self {
2039        Self::from_value(value)
2040    }
2041}
2042
2043/// The values of the `DKReason` (127) field.
2044#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2045pub enum DKReason<'a> {
2046    /// `A`
2047    UnknownSymbol,
2048    /// `B`
2049    WrongSide,
2050    /// `C`
2051    QuantityExceedsOrder,
2052    /// `D`
2053    NoMatchingOrder,
2054    /// `E`
2055    PriceExceedsLimit,
2056    /// `F`
2057    CalculationDifference,
2058    /// `Z`
2059    Other,
2060    /// A value the dictionary does not list.
2061    Unrecognized(&'a str),
2062}
2063
2064impl<'a> DKReason<'a> {
2065    pub fn from_value(value: &'a str) -> Self {
2066        match value {
2067            "A" => Self::UnknownSymbol,
2068            "B" => Self::WrongSide,
2069            "C" => Self::QuantityExceedsOrder,
2070            "D" => Self::NoMatchingOrder,
2071            "E" => Self::PriceExceedsLimit,
2072            "F" => Self::CalculationDifference,
2073            "Z" => Self::Other,
2074            unrecognized => Self::Unrecognized(unrecognized),
2075        }
2076    }
2077
2078    pub fn value(self) -> &'a str {
2079        match self {
2080            Self::UnknownSymbol => "A",
2081            Self::WrongSide => "B",
2082            Self::QuantityExceedsOrder => "C",
2083            Self::NoMatchingOrder => "D",
2084            Self::PriceExceedsLimit => "E",
2085            Self::CalculationDifference => "F",
2086            Self::Other => "Z",
2087            Self::Unrecognized(value) => value,
2088        }
2089    }
2090}
2091
2092impl<'a> From<&'a str> for DKReason<'a> {
2093    fn from(value: &'a str) -> Self {
2094        Self::from_value(value)
2095    }
2096}
2097
2098/// The values of the `MiscFeeType` (139) field.
2099#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2100pub enum MiscFeeType<'a> {
2101    /// `1`
2102    Regulatory,
2103    /// `2`
2104    Tax,
2105    /// `3`
2106    LocalCommission,
2107    /// `4`
2108    ExchangeFees,
2109    /// `5`
2110    Stamp,
2111    /// `6`
2112    Levy,
2113    /// `7`
2114    Other,
2115    /// `8`
2116    Markup,
2117    /// `9`
2118    ConsumptionTax,
2119    /// `10`
2120    PerTransaction,
2121    /// `11`
2122    Conversion,
2123    /// `12`
2124    Agent,
2125    /// A value the dictionary does not list.
2126    Unrecognized(&'a str),
2127}
2128
2129impl<'a> MiscFeeType<'a> {
2130    pub fn from_value(value: &'a str) -> Self {
2131        match value {
2132            "1" => Self::Regulatory,
2133            "2" => Self::Tax,
2134            "3" => Self::LocalCommission,
2135            "4" => Self::ExchangeFees,
2136            "5" => Self::Stamp,
2137            "6" => Self::Levy,
2138            "7" => Self::Other,
2139            "8" => Self::Markup,
2140            "9" => Self::ConsumptionTax,
2141            "10" => Self::PerTransaction,
2142            "11" => Self::Conversion,
2143            "12" => Self::Agent,
2144            unrecognized => Self::Unrecognized(unrecognized),
2145        }
2146    }
2147
2148    pub fn value(self) -> &'a str {
2149        match self {
2150            Self::Regulatory => "1",
2151            Self::Tax => "2",
2152            Self::LocalCommission => "3",
2153            Self::ExchangeFees => "4",
2154            Self::Stamp => "5",
2155            Self::Levy => "6",
2156            Self::Other => "7",
2157            Self::Markup => "8",
2158            Self::ConsumptionTax => "9",
2159            Self::PerTransaction => "10",
2160            Self::Conversion => "11",
2161            Self::Agent => "12",
2162            Self::Unrecognized(value) => value,
2163        }
2164    }
2165}
2166
2167impl<'a> From<&'a str> for MiscFeeType<'a> {
2168    fn from(value: &'a str) -> Self {
2169        Self::from_value(value)
2170    }
2171}
2172
2173/// The values of the `ExecType` (150) field.
2174#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2175pub enum ExecType<'a> {
2176    /// `0`
2177    New,
2178    /// `3`
2179    DoneForDay,
2180    /// `4`
2181    Canceled,
2182    /// `5`
2183    Replaced,
2184    /// `6`
2185    PendingCancel,
2186    /// `7`
2187    Stopped,
2188    /// `8`
2189    Rejected,
2190    /// `9`
2191    Suspended,
2192    /// `A`
2193    PendingNew,
2194    /// `B`
2195    Calculated,
2196    /// `C`
2197    Expired,
2198    /// `D`
2199    Restated,
2200    /// `E`
2201    PendingReplace,
2202    /// `F`
2203    Trade,
2204    /// `G`
2205    TradeCorrect,
2206    /// `H`
2207    TradeCancel,
2208    /// `I`
2209    OrderStatus,
2210    /// A value the dictionary does not list.
2211    Unrecognized(&'a str),
2212}
2213
2214impl<'a> ExecType<'a> {
2215    pub fn from_value(value: &'a str) -> Self {
2216        match value {
2217            "0" => Self::New,
2218            "3" => Self::DoneForDay,
2219            "4" => Self::Canceled,
2220            "5" => Self::Replaced,
2221            "6" => Self::PendingCancel,
2222            "7" => Self::Stopped,
2223            "8" => Self::Rejected,
2224            "9" => Self::Suspended,
2225            "A" => Self::PendingNew,
2226            "B" => Self::Calculated,
2227            "C" => Self::Expired,
2228            "D" => Self::Restated,
2229            "E" => Self::PendingReplace,
2230            "F" => Self::Trade,
2231            "G" => Self::TradeCorrect,
2232            "H" => Self::TradeCancel,
2233            "I" => Self::OrderStatus,
2234            unrecognized => Self::Unrecognized(unrecognized),
2235        }
2236    }
2237
2238    pub fn value(self) -> &'a str {
2239        match self {
2240            Self::New => "0",
2241            Self::DoneForDay => "3",
2242            Self::Canceled => "4",
2243            Self::Replaced => "5",
2244            Self::PendingCancel => "6",
2245            Self::Stopped => "7",
2246            Self::Rejected => "8",
2247            Self::Suspended => "9",
2248            Self::PendingNew => "A",
2249            Self::Calculated => "B",
2250            Self::Expired => "C",
2251            Self::Restated => "D",
2252            Self::PendingReplace => "E",
2253            Self::Trade => "F",
2254            Self::TradeCorrect => "G",
2255            Self::TradeCancel => "H",
2256            Self::OrderStatus => "I",
2257            Self::Unrecognized(value) => value,
2258        }
2259    }
2260}
2261
2262impl<'a> From<&'a str> for ExecType<'a> {
2263    fn from(value: &'a str) -> Self {
2264        Self::from_value(value)
2265    }
2266}
2267
2268/// The values of the `SettlCurrFxRateCalc` (156) field.
2269#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2270pub enum SettlCurrFxRateCalc<'a> {
2271    /// `M`
2272    Multiply,
2273    /// `D`
2274    Divide,
2275    /// A value the dictionary does not list.
2276    Unrecognized(&'a str),
2277}
2278
2279impl<'a> SettlCurrFxRateCalc<'a> {
2280    pub fn from_value(value: &'a str) -> Self {
2281        match value {
2282            "M" => Self::Multiply,
2283            "D" => Self::Divide,
2284            unrecognized => Self::Unrecognized(unrecognized),
2285        }
2286    }
2287
2288    pub fn value(self) -> &'a str {
2289        match self {
2290            Self::Multiply => "M",
2291            Self::Divide => "D",
2292            Self::Unrecognized(value) => value,
2293        }
2294    }
2295}
2296
2297impl<'a> From<&'a str> for SettlCurrFxRateCalc<'a> {
2298    fn from(value: &'a str) -> Self {
2299        Self::from_value(value)
2300    }
2301}
2302
2303/// The values of the `SettlInstMode` (160) field.
2304#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2305pub enum SettlInstMode<'a> {
2306    /// `1`
2307    StandingInstructionsProvided,
2308    /// `4`
2309    SpecificOrderForASingleAccount,
2310    /// `5`
2311    RequestReject,
2312    /// A value the dictionary does not list.
2313    Unrecognized(&'a str),
2314}
2315
2316impl<'a> SettlInstMode<'a> {
2317    pub fn from_value(value: &'a str) -> Self {
2318        match value {
2319            "1" => Self::StandingInstructionsProvided,
2320            "4" => Self::SpecificOrderForASingleAccount,
2321            "5" => Self::RequestReject,
2322            unrecognized => Self::Unrecognized(unrecognized),
2323        }
2324    }
2325
2326    pub fn value(self) -> &'a str {
2327        match self {
2328            Self::StandingInstructionsProvided => "1",
2329            Self::SpecificOrderForASingleAccount => "4",
2330            Self::RequestReject => "5",
2331            Self::Unrecognized(value) => value,
2332        }
2333    }
2334}
2335
2336impl<'a> From<&'a str> for SettlInstMode<'a> {
2337    fn from(value: &'a str) -> Self {
2338        Self::from_value(value)
2339    }
2340}
2341
2342/// The values of the `SettlInstTransType` (163) field.
2343#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2344pub enum SettlInstTransType<'a> {
2345    /// `N`
2346    New,
2347    /// `C`
2348    Cancel,
2349    /// `R`
2350    Replace,
2351    /// `T`
2352    Restate,
2353    /// A value the dictionary does not list.
2354    Unrecognized(&'a str),
2355}
2356
2357impl<'a> SettlInstTransType<'a> {
2358    pub fn from_value(value: &'a str) -> Self {
2359        match value {
2360            "N" => Self::New,
2361            "C" => Self::Cancel,
2362            "R" => Self::Replace,
2363            "T" => Self::Restate,
2364            unrecognized => Self::Unrecognized(unrecognized),
2365        }
2366    }
2367
2368    pub fn value(self) -> &'a str {
2369        match self {
2370            Self::New => "N",
2371            Self::Cancel => "C",
2372            Self::Replace => "R",
2373            Self::Restate => "T",
2374            Self::Unrecognized(value) => value,
2375        }
2376    }
2377}
2378
2379impl<'a> From<&'a str> for SettlInstTransType<'a> {
2380    fn from(value: &'a str) -> Self {
2381        Self::from_value(value)
2382    }
2383}
2384
2385/// The values of the `SettlInstSource` (165) field.
2386#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2387pub enum SettlInstSource<'a> {
2388    /// `1`
2389    BrokerCredit,
2390    /// `2`
2391    Institution,
2392    /// `3`
2393    Investor,
2394    /// A value the dictionary does not list.
2395    Unrecognized(&'a str),
2396}
2397
2398impl<'a> SettlInstSource<'a> {
2399    pub fn from_value(value: &'a str) -> Self {
2400        match value {
2401            "1" => Self::BrokerCredit,
2402            "2" => Self::Institution,
2403            "3" => Self::Investor,
2404            unrecognized => Self::Unrecognized(unrecognized),
2405        }
2406    }
2407
2408    pub fn value(self) -> &'a str {
2409        match self {
2410            Self::BrokerCredit => "1",
2411            Self::Institution => "2",
2412            Self::Investor => "3",
2413            Self::Unrecognized(value) => value,
2414        }
2415    }
2416}
2417
2418impl<'a> From<&'a str> for SettlInstSource<'a> {
2419    fn from(value: &'a str) -> Self {
2420        Self::from_value(value)
2421    }
2422}
2423
2424/// The values of the `SecurityType` (167) field.
2425#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2426pub enum SecurityType<'a> {
2427    /// `EUSUPRA`
2428    EuroSupranationalCoupons,
2429    /// `FAC`
2430    FederalAgencyCoupon,
2431    /// `FADN`
2432    FederalAgencyDiscountNote,
2433    /// `PEF`
2434    PrivateExportFunding,
2435    /// `SUPRA`
2436    UsdSupranationalCoupons,
2437    /// `CORP`
2438    CorporateBond,
2439    /// `CPP`
2440    CorporatePrivatePlacement,
2441    /// `CB`
2442    ConvertibleBond,
2443    /// `DUAL`
2444    DualCurrency,
2445    /// `EUCORP`
2446    EuroCorporateBond,
2447    /// `XLINKD`
2448    IndexedLinked,
2449    /// `STRUCT`
2450    StructuredNotes,
2451    /// `YANK`
2452    YankeeCorporateBond,
2453    /// `FOR`
2454    ForeignExchangeContract,
2455    /// `CS`
2456    CommonStock,
2457    /// `PS`
2458    PreferredStock,
2459    /// `BRADY`
2460    BradyBond,
2461    /// `EUSOV`
2462    EuroSovereigns,
2463    /// `TBOND`
2464    UsTreasuryBond,
2465    /// `TINT`
2466    InterestStripFromAnyBondOrNote,
2467    /// `TIPS`
2468    TreasuryInflationProtectedSecurities,
2469    /// `TCAL`
2470    PrincipalStripOfACallableBondOrNote,
2471    /// `TPRN`
2472    PrincipalStripFromANonCallableBondOrNote,
2473    /// `UST`
2474    UsTreasuryNoteOld,
2475    /// `USTB`
2476    UsTreasuryBillOld,
2477    /// `TNOTE`
2478    UsTreasuryNote,
2479    /// `TBILL`
2480    UsTreasuryBill,
2481    /// `REPO`
2482    Repurchase,
2483    /// `FORWARD`
2484    Forward,
2485    /// `BUYSELL`
2486    BuySellback,
2487    /// `SECLOAN`
2488    SecuritiesLoan,
2489    /// `SECPLEDGE`
2490    SecuritiesPledge,
2491    /// `TERM`
2492    TermLoan,
2493    /// `RVLV`
2494    RevolverLoan,
2495    /// `RVLVTRM`
2496    Revolver,
2497    /// `BRIDGE`
2498    BridgeLoan,
2499    /// `LOFC`
2500    LetterOfCredit,
2501    /// `SWING`
2502    SwingLineFacility,
2503    /// `DINP`
2504    DebtorInPossession,
2505    /// `DEFLTED`
2506    Defaulted,
2507    /// `WITHDRN`
2508    Withdrawn,
2509    /// `REPLACD`
2510    Replaced,
2511    /// `MATURED`
2512    Matured,
2513    /// `AMENDED`
2514    Amended,
2515    /// `RETIRED`
2516    Retired,
2517    /// `BA`
2518    BankersAcceptance,
2519    /// `BN`
2520    BankNotes,
2521    /// `BOX`
2522    BillOfExchanges,
2523    /// `CD`
2524    CertificateOfDeposit,
2525    /// `CL`
2526    CallLoans,
2527    /// `CP`
2528    CommercialPaper,
2529    /// `DN`
2530    DepositNotes,
2531    /// `EUCD`
2532    EuroCertificateOfDeposit,
2533    /// `EUCP`
2534    EuroCommercialPaper,
2535    /// `LQN`
2536    LiquidityNote,
2537    /// `MTN`
2538    MediumTermNotes,
2539    /// `ONITE`
2540    Overnight,
2541    /// `PN`
2542    PromissoryNote,
2543    /// `PZFJ`
2544    PlazosFijos,
2545    /// `STN`
2546    ShortTermLoanNote,
2547    /// `TD`
2548    TimeDeposit,
2549    /// `XCN`
2550    ExtendedCommNote,
2551    /// `YCD`
2552    YankeeCertificateOfDeposit,
2553    /// `ABS`
2554    AssetBackedSecurities,
2555    /// `CMBS`
2556    Corp,
2557    /// `CMO`
2558    CollateralizedMortgageObligation,
2559    /// `IET`
2560    IoetteMortgage,
2561    /// `MBS`
2562    MortgageBackedSecurities,
2563    /// `MIO`
2564    MortgageInterestOnly,
2565    /// `MPO`
2566    MortgagePrincipalOnly,
2567    /// `MPP`
2568    MortgagePrivatePlacement,
2569    /// `MPT`
2570    MiscellaneousPassThrough,
2571    /// `PFAND`
2572    Pfandbriefe,
2573    /// `TBA`
2574    ToBeAnnounced,
2575    /// `AN`
2576    OtherAnticipationNotes,
2577    /// `COFO`
2578    CertificateOfObligation,
2579    /// `COFP`
2580    CertificateOfParticipation,
2581    /// `GO`
2582    GeneralObligationBonds,
2583    /// `MT`
2584    MandatoryTender,
2585    /// `RAN`
2586    RevenueAnticipationNote,
2587    /// `REV`
2588    RevenueBonds,
2589    /// `SPCLA`
2590    SpecialAssessment,
2591    /// `SPCLO`
2592    SpecialObligation,
2593    /// `SPCLT`
2594    SpecialTax,
2595    /// `TAN`
2596    TaxAnticipationNote,
2597    /// `TAXA`
2598    TaxAllocation,
2599    /// `TECP`
2600    TaxExemptCommercialPaper,
2601    /// `TRAN`
2602    TaxRevenueAnticipationNote,
2603    /// `VRDN`
2604    VariableRateDemandNote,
2605    /// `WAR`
2606    Warrant,
2607    /// `MF`
2608    MutualFund,
2609    /// `MLEG`
2610    MultilegInstrument,
2611    /// `NONE`
2612    NoSecurityType,
2613    /// `FUT`
2614    Future,
2615    /// `OPT`
2616    Option,
2617    /// A value the dictionary does not list.
2618    Unrecognized(&'a str),
2619}
2620
2621impl<'a> SecurityType<'a> {
2622    pub fn from_value(value: &'a str) -> Self {
2623        match value {
2624            "EUSUPRA" => Self::EuroSupranationalCoupons,
2625            "FAC" => Self::FederalAgencyCoupon,
2626            "FADN" => Self::FederalAgencyDiscountNote,
2627            "PEF" => Self::PrivateExportFunding,
2628            "SUPRA" => Self::UsdSupranationalCoupons,
2629            "CORP" => Self::CorporateBond,
2630            "CPP" => Self::CorporatePrivatePlacement,
2631            "CB" => Self::ConvertibleBond,
2632            "DUAL" => Self::DualCurrency,
2633            "EUCORP" => Self::EuroCorporateBond,
2634            "XLINKD" => Self::IndexedLinked,
2635            "STRUCT" => Self::StructuredNotes,
2636            "YANK" => Self::YankeeCorporateBond,
2637            "FOR" => Self::ForeignExchangeContract,
2638            "CS" => Self::CommonStock,
2639            "PS" => Self::PreferredStock,
2640            "BRADY" => Self::BradyBond,
2641            "EUSOV" => Self::EuroSovereigns,
2642            "TBOND" => Self::UsTreasuryBond,
2643            "TINT" => Self::InterestStripFromAnyBondOrNote,
2644            "TIPS" => Self::TreasuryInflationProtectedSecurities,
2645            "TCAL" => Self::PrincipalStripOfACallableBondOrNote,
2646            "TPRN" => Self::PrincipalStripFromANonCallableBondOrNote,
2647            "UST" => Self::UsTreasuryNoteOld,
2648            "USTB" => Self::UsTreasuryBillOld,
2649            "TNOTE" => Self::UsTreasuryNote,
2650            "TBILL" => Self::UsTreasuryBill,
2651            "REPO" => Self::Repurchase,
2652            "FORWARD" => Self::Forward,
2653            "BUYSELL" => Self::BuySellback,
2654            "SECLOAN" => Self::SecuritiesLoan,
2655            "SECPLEDGE" => Self::SecuritiesPledge,
2656            "TERM" => Self::TermLoan,
2657            "RVLV" => Self::RevolverLoan,
2658            "RVLVTRM" => Self::Revolver,
2659            "BRIDGE" => Self::BridgeLoan,
2660            "LOFC" => Self::LetterOfCredit,
2661            "SWING" => Self::SwingLineFacility,
2662            "DINP" => Self::DebtorInPossession,
2663            "DEFLTED" => Self::Defaulted,
2664            "WITHDRN" => Self::Withdrawn,
2665            "REPLACD" => Self::Replaced,
2666            "MATURED" => Self::Matured,
2667            "AMENDED" => Self::Amended,
2668            "RETIRED" => Self::Retired,
2669            "BA" => Self::BankersAcceptance,
2670            "BN" => Self::BankNotes,
2671            "BOX" => Self::BillOfExchanges,
2672            "CD" => Self::CertificateOfDeposit,
2673            "CL" => Self::CallLoans,
2674            "CP" => Self::CommercialPaper,
2675            "DN" => Self::DepositNotes,
2676            "EUCD" => Self::EuroCertificateOfDeposit,
2677            "EUCP" => Self::EuroCommercialPaper,
2678            "LQN" => Self::LiquidityNote,
2679            "MTN" => Self::MediumTermNotes,
2680            "ONITE" => Self::Overnight,
2681            "PN" => Self::PromissoryNote,
2682            "PZFJ" => Self::PlazosFijos,
2683            "STN" => Self::ShortTermLoanNote,
2684            "TD" => Self::TimeDeposit,
2685            "XCN" => Self::ExtendedCommNote,
2686            "YCD" => Self::YankeeCertificateOfDeposit,
2687            "ABS" => Self::AssetBackedSecurities,
2688            "CMBS" => Self::Corp,
2689            "CMO" => Self::CollateralizedMortgageObligation,
2690            "IET" => Self::IoetteMortgage,
2691            "MBS" => Self::MortgageBackedSecurities,
2692            "MIO" => Self::MortgageInterestOnly,
2693            "MPO" => Self::MortgagePrincipalOnly,
2694            "MPP" => Self::MortgagePrivatePlacement,
2695            "MPT" => Self::MiscellaneousPassThrough,
2696            "PFAND" => Self::Pfandbriefe,
2697            "TBA" => Self::ToBeAnnounced,
2698            "AN" => Self::OtherAnticipationNotes,
2699            "COFO" => Self::CertificateOfObligation,
2700            "COFP" => Self::CertificateOfParticipation,
2701            "GO" => Self::GeneralObligationBonds,
2702            "MT" => Self::MandatoryTender,
2703            "RAN" => Self::RevenueAnticipationNote,
2704            "REV" => Self::RevenueBonds,
2705            "SPCLA" => Self::SpecialAssessment,
2706            "SPCLO" => Self::SpecialObligation,
2707            "SPCLT" => Self::SpecialTax,
2708            "TAN" => Self::TaxAnticipationNote,
2709            "TAXA" => Self::TaxAllocation,
2710            "TECP" => Self::TaxExemptCommercialPaper,
2711            "TRAN" => Self::TaxRevenueAnticipationNote,
2712            "VRDN" => Self::VariableRateDemandNote,
2713            "WAR" => Self::Warrant,
2714            "MF" => Self::MutualFund,
2715            "MLEG" => Self::MultilegInstrument,
2716            "NONE" => Self::NoSecurityType,
2717            "FUT" => Self::Future,
2718            "OPT" => Self::Option,
2719            unrecognized => Self::Unrecognized(unrecognized),
2720        }
2721    }
2722
2723    pub fn value(self) -> &'a str {
2724        match self {
2725            Self::EuroSupranationalCoupons => "EUSUPRA",
2726            Self::FederalAgencyCoupon => "FAC",
2727            Self::FederalAgencyDiscountNote => "FADN",
2728            Self::PrivateExportFunding => "PEF",
2729            Self::UsdSupranationalCoupons => "SUPRA",
2730            Self::CorporateBond => "CORP",
2731            Self::CorporatePrivatePlacement => "CPP",
2732            Self::ConvertibleBond => "CB",
2733            Self::DualCurrency => "DUAL",
2734            Self::EuroCorporateBond => "EUCORP",
2735            Self::IndexedLinked => "XLINKD",
2736            Self::StructuredNotes => "STRUCT",
2737            Self::YankeeCorporateBond => "YANK",
2738            Self::ForeignExchangeContract => "FOR",
2739            Self::CommonStock => "CS",
2740            Self::PreferredStock => "PS",
2741            Self::BradyBond => "BRADY",
2742            Self::EuroSovereigns => "EUSOV",
2743            Self::UsTreasuryBond => "TBOND",
2744            Self::InterestStripFromAnyBondOrNote => "TINT",
2745            Self::TreasuryInflationProtectedSecurities => "TIPS",
2746            Self::PrincipalStripOfACallableBondOrNote => "TCAL",
2747            Self::PrincipalStripFromANonCallableBondOrNote => "TPRN",
2748            Self::UsTreasuryNoteOld => "UST",
2749            Self::UsTreasuryBillOld => "USTB",
2750            Self::UsTreasuryNote => "TNOTE",
2751            Self::UsTreasuryBill => "TBILL",
2752            Self::Repurchase => "REPO",
2753            Self::Forward => "FORWARD",
2754            Self::BuySellback => "BUYSELL",
2755            Self::SecuritiesLoan => "SECLOAN",
2756            Self::SecuritiesPledge => "SECPLEDGE",
2757            Self::TermLoan => "TERM",
2758            Self::RevolverLoan => "RVLV",
2759            Self::Revolver => "RVLVTRM",
2760            Self::BridgeLoan => "BRIDGE",
2761            Self::LetterOfCredit => "LOFC",
2762            Self::SwingLineFacility => "SWING",
2763            Self::DebtorInPossession => "DINP",
2764            Self::Defaulted => "DEFLTED",
2765            Self::Withdrawn => "WITHDRN",
2766            Self::Replaced => "REPLACD",
2767            Self::Matured => "MATURED",
2768            Self::Amended => "AMENDED",
2769            Self::Retired => "RETIRED",
2770            Self::BankersAcceptance => "BA",
2771            Self::BankNotes => "BN",
2772            Self::BillOfExchanges => "BOX",
2773            Self::CertificateOfDeposit => "CD",
2774            Self::CallLoans => "CL",
2775            Self::CommercialPaper => "CP",
2776            Self::DepositNotes => "DN",
2777            Self::EuroCertificateOfDeposit => "EUCD",
2778            Self::EuroCommercialPaper => "EUCP",
2779            Self::LiquidityNote => "LQN",
2780            Self::MediumTermNotes => "MTN",
2781            Self::Overnight => "ONITE",
2782            Self::PromissoryNote => "PN",
2783            Self::PlazosFijos => "PZFJ",
2784            Self::ShortTermLoanNote => "STN",
2785            Self::TimeDeposit => "TD",
2786            Self::ExtendedCommNote => "XCN",
2787            Self::YankeeCertificateOfDeposit => "YCD",
2788            Self::AssetBackedSecurities => "ABS",
2789            Self::Corp => "CMBS",
2790            Self::CollateralizedMortgageObligation => "CMO",
2791            Self::IoetteMortgage => "IET",
2792            Self::MortgageBackedSecurities => "MBS",
2793            Self::MortgageInterestOnly => "MIO",
2794            Self::MortgagePrincipalOnly => "MPO",
2795            Self::MortgagePrivatePlacement => "MPP",
2796            Self::MiscellaneousPassThrough => "MPT",
2797            Self::Pfandbriefe => "PFAND",
2798            Self::ToBeAnnounced => "TBA",
2799            Self::OtherAnticipationNotes => "AN",
2800            Self::CertificateOfObligation => "COFO",
2801            Self::CertificateOfParticipation => "COFP",
2802            Self::GeneralObligationBonds => "GO",
2803            Self::MandatoryTender => "MT",
2804            Self::RevenueAnticipationNote => "RAN",
2805            Self::RevenueBonds => "REV",
2806            Self::SpecialAssessment => "SPCLA",
2807            Self::SpecialObligation => "SPCLO",
2808            Self::SpecialTax => "SPCLT",
2809            Self::TaxAnticipationNote => "TAN",
2810            Self::TaxAllocation => "TAXA",
2811            Self::TaxExemptCommercialPaper => "TECP",
2812            Self::TaxRevenueAnticipationNote => "TRAN",
2813            Self::VariableRateDemandNote => "VRDN",
2814            Self::Warrant => "WAR",
2815            Self::MutualFund => "MF",
2816            Self::MultilegInstrument => "MLEG",
2817            Self::NoSecurityType => "NONE",
2818            Self::Future => "FUT",
2819            Self::Option => "OPT",
2820            Self::Unrecognized(value) => value,
2821        }
2822    }
2823}
2824
2825impl<'a> From<&'a str> for SecurityType<'a> {
2826    fn from(value: &'a str) -> Self {
2827        Self::from_value(value)
2828    }
2829}
2830
2831/// The values of the `StandInstDbType` (169) field.
2832#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2833pub enum StandInstDbType {
2834    /// `0`
2835    Other,
2836    /// `1`
2837    Dtcsid,
2838    /// `2`
2839    ThomsonAlert,
2840    /// `3`
2841    AGlobalCustodian,
2842    /// `4`
2843    AccountNet,
2844    /// A value the dictionary does not list.
2845    Unrecognized(i64),
2846}
2847
2848impl StandInstDbType {
2849    pub fn from_value(value: i64) -> Self {
2850        match value {
2851            0 => Self::Other,
2852            1 => Self::Dtcsid,
2853            2 => Self::ThomsonAlert,
2854            3 => Self::AGlobalCustodian,
2855            4 => Self::AccountNet,
2856            unrecognized => Self::Unrecognized(unrecognized),
2857        }
2858    }
2859
2860    pub fn value(self) -> i64 {
2861        match self {
2862            Self::Other => 0,
2863            Self::Dtcsid => 1,
2864            Self::ThomsonAlert => 2,
2865            Self::AGlobalCustodian => 3,
2866            Self::AccountNet => 4,
2867            Self::Unrecognized(value) => value,
2868        }
2869    }
2870}
2871
2872/// The values of the `SettlDeliveryType` (172) field.
2873#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2874pub enum SettlDeliveryType {
2875    /// `0`
2876    Versus,
2877    /// `1`
2878    Free,
2879    /// `2`
2880    TriParty,
2881    /// `3`
2882    HoldInCustody,
2883    /// A value the dictionary does not list.
2884    Unrecognized(i64),
2885}
2886
2887impl SettlDeliveryType {
2888    pub fn from_value(value: i64) -> Self {
2889        match value {
2890            0 => Self::Versus,
2891            1 => Self::Free,
2892            2 => Self::TriParty,
2893            3 => Self::HoldInCustody,
2894            unrecognized => Self::Unrecognized(unrecognized),
2895        }
2896    }
2897
2898    pub fn value(self) -> i64 {
2899        match self {
2900            Self::Versus => 0,
2901            Self::Free => 1,
2902            Self::TriParty => 2,
2903            Self::HoldInCustody => 3,
2904            Self::Unrecognized(value) => value,
2905        }
2906    }
2907}
2908
2909/// The values of the `AllocLinkType` (197) field.
2910#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2911pub enum AllocLinkType {
2912    /// `0`
2913    FxNetting,
2914    /// `1`
2915    FxSwap,
2916    /// A value the dictionary does not list.
2917    Unrecognized(i64),
2918}
2919
2920impl AllocLinkType {
2921    pub fn from_value(value: i64) -> Self {
2922        match value {
2923            0 => Self::FxNetting,
2924            1 => Self::FxSwap,
2925            unrecognized => Self::Unrecognized(unrecognized),
2926        }
2927    }
2928
2929    pub fn value(self) -> i64 {
2930        match self {
2931            Self::FxNetting => 0,
2932            Self::FxSwap => 1,
2933            Self::Unrecognized(value) => value,
2934        }
2935    }
2936}
2937
2938/// The values of the `PutOrCall` (201) field.
2939#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2940pub enum PutOrCall {
2941    /// `0`
2942    Put,
2943    /// `1`
2944    Call,
2945    /// A value the dictionary does not list.
2946    Unrecognized(i64),
2947}
2948
2949impl PutOrCall {
2950    pub fn from_value(value: i64) -> Self {
2951        match value {
2952            0 => Self::Put,
2953            1 => Self::Call,
2954            unrecognized => Self::Unrecognized(unrecognized),
2955        }
2956    }
2957
2958    pub fn value(self) -> i64 {
2959        match self {
2960            Self::Put => 0,
2961            Self::Call => 1,
2962            Self::Unrecognized(value) => value,
2963        }
2964    }
2965}
2966
2967/// The values of the `CoveredOrUncovered` (203) field.
2968#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2969pub enum CoveredOrUncovered {
2970    /// `0`
2971    Covered,
2972    /// `1`
2973    Uncovered,
2974    /// A value the dictionary does not list.
2975    Unrecognized(i64),
2976}
2977
2978impl CoveredOrUncovered {
2979    pub fn from_value(value: i64) -> Self {
2980        match value {
2981            0 => Self::Covered,
2982            1 => Self::Uncovered,
2983            unrecognized => Self::Unrecognized(unrecognized),
2984        }
2985    }
2986
2987    pub fn value(self) -> i64 {
2988        match self {
2989            Self::Covered => 0,
2990            Self::Uncovered => 1,
2991            Self::Unrecognized(value) => value,
2992        }
2993    }
2994}
2995
2996/// The values of the `AllocHandlInst` (209) field.
2997#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
2998pub enum AllocHandlInst {
2999    /// `1`
3000    Match,
3001    /// `2`
3002    Forward,
3003    /// `3`
3004    ForwardAndMatch,
3005    /// A value the dictionary does not list.
3006    Unrecognized(i64),
3007}
3008
3009impl AllocHandlInst {
3010    pub fn from_value(value: i64) -> Self {
3011        match value {
3012            1 => Self::Match,
3013            2 => Self::Forward,
3014            3 => Self::ForwardAndMatch,
3015            unrecognized => Self::Unrecognized(unrecognized),
3016        }
3017    }
3018
3019    pub fn value(self) -> i64 {
3020        match self {
3021            Self::Match => 1,
3022            Self::Forward => 2,
3023            Self::ForwardAndMatch => 3,
3024            Self::Unrecognized(value) => value,
3025        }
3026    }
3027}
3028
3029/// The values of the `RoutingType` (216) field.
3030#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3031pub enum RoutingType {
3032    /// `1`
3033    TargetFirm,
3034    /// `2`
3035    TargetList,
3036    /// `3`
3037    BlockFirm,
3038    /// `4`
3039    BlockList,
3040    /// A value the dictionary does not list.
3041    Unrecognized(i64),
3042}
3043
3044impl RoutingType {
3045    pub fn from_value(value: i64) -> Self {
3046        match value {
3047            1 => Self::TargetFirm,
3048            2 => Self::TargetList,
3049            3 => Self::BlockFirm,
3050            4 => Self::BlockList,
3051            unrecognized => Self::Unrecognized(unrecognized),
3052        }
3053    }
3054
3055    pub fn value(self) -> i64 {
3056        match self {
3057            Self::TargetFirm => 1,
3058            Self::TargetList => 2,
3059            Self::BlockFirm => 3,
3060            Self::BlockList => 4,
3061            Self::Unrecognized(value) => value,
3062        }
3063    }
3064}
3065
3066/// The values of the `StipulationType` (233) field.
3067#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3068pub enum StipulationType<'a> {
3069    /// `AMT`
3070    AlternativeMinimumTax,
3071    /// `AUTOREINV`
3072    AutoReinvestment,
3073    /// `BANKQUAL`
3074    BankQualified,
3075    /// `BGNCON`
3076    BargainConditions,
3077    /// `COUPON`
3078    CouponRange,
3079    /// `CURRENCY`
3080    IsoCurrencyCode,
3081    /// `CUSTOMDATE`
3082    CustomStart,
3083    /// `GEOG`
3084    Geographics,
3085    /// `HAIRCUT`
3086    ValuationDiscount,
3087    /// `INSURED`
3088    Insured,
3089    /// `ISSUE`
3090    IssueDate,
3091    /// `ISSUER`
3092    Issuer,
3093    /// `ISSUESIZE`
3094    IssueSizeRange,
3095    /// `LOOKBACK`
3096    LookbackDays,
3097    /// `LOT`
3098    ExplicitLotIdentifier,
3099    /// `LOTVAR`
3100    LotVariance,
3101    /// `MAT`
3102    MaturityYearAndMonth,
3103    /// `MATURITY`
3104    MaturityRange,
3105    /// `MAXSUBS`
3106    MaximumSubstitutions,
3107    /// `MINQTY`
3108    MinimumQuantity,
3109    /// `MININCR`
3110    MinimumIncrement,
3111    /// `MINDNOM`
3112    MinimumDenomination,
3113    /// `PAYFREQ`
3114    PaymentFrequency,
3115    /// `PIECES`
3116    NumberOfPieces,
3117    /// `PMAX`
3118    PoolsMaximum,
3119    /// `PPM`
3120    PoolsPerMillion,
3121    /// `PPL`
3122    PoolsPerLot,
3123    /// `PPT`
3124    PoolsPerTrade,
3125    /// `PRICE`
3126    PriceRange,
3127    /// `PRICEFREQ`
3128    PricingFrequency,
3129    /// `PROD`
3130    ProductionYear,
3131    /// `PROTECT`
3132    CallProtection,
3133    /// `PURPOSE`
3134    Purpose,
3135    /// `PXSOURCE`
3136    BenchmarkPriceSource,
3137    /// `RATING`
3138    RatingSourceAndRange,
3139    /// `REDEMPTION`
3140    TypeOfRedemption,
3141    /// `RESTRICTED`
3142    Restricted,
3143    /// `SECTOR`
3144    MarketSector,
3145    /// `SECTYPE`
3146    SecurityTypeIncludedOrExcluded,
3147    /// `STRUCT`
3148    Structure,
3149    /// `SUBSFREQ`
3150    SubstitutionsFrequency,
3151    /// `SUBSLEFT`
3152    SubstitutionsLeft,
3153    /// `TEXT`
3154    FreeformText,
3155    /// `TRDVAR`
3156    TradeVariance,
3157    /// `WAC`
3158    WeightedAverageCoupon,
3159    /// `WAL`
3160    WeightedAverageLifeCoupon,
3161    /// `WALA`
3162    WeightedAverageLoanAge,
3163    /// `WAM`
3164    WeightedAverageMaturity,
3165    /// `WHOLE`
3166    WholePool,
3167    /// `YIELD`
3168    YieldRange,
3169    /// A value the dictionary does not list.
3170    Unrecognized(&'a str),
3171}
3172
3173impl<'a> StipulationType<'a> {
3174    pub fn from_value(value: &'a str) -> Self {
3175        match value {
3176            "AMT" => Self::AlternativeMinimumTax,
3177            "AUTOREINV" => Self::AutoReinvestment,
3178            "BANKQUAL" => Self::BankQualified,
3179            "BGNCON" => Self::BargainConditions,
3180            "COUPON" => Self::CouponRange,
3181            "CURRENCY" => Self::IsoCurrencyCode,
3182            "CUSTOMDATE" => Self::CustomStart,
3183            "GEOG" => Self::Geographics,
3184            "HAIRCUT" => Self::ValuationDiscount,
3185            "INSURED" => Self::Insured,
3186            "ISSUE" => Self::IssueDate,
3187            "ISSUER" => Self::Issuer,
3188            "ISSUESIZE" => Self::IssueSizeRange,
3189            "LOOKBACK" => Self::LookbackDays,
3190            "LOT" => Self::ExplicitLotIdentifier,
3191            "LOTVAR" => Self::LotVariance,
3192            "MAT" => Self::MaturityYearAndMonth,
3193            "MATURITY" => Self::MaturityRange,
3194            "MAXSUBS" => Self::MaximumSubstitutions,
3195            "MINQTY" => Self::MinimumQuantity,
3196            "MININCR" => Self::MinimumIncrement,
3197            "MINDNOM" => Self::MinimumDenomination,
3198            "PAYFREQ" => Self::PaymentFrequency,
3199            "PIECES" => Self::NumberOfPieces,
3200            "PMAX" => Self::PoolsMaximum,
3201            "PPM" => Self::PoolsPerMillion,
3202            "PPL" => Self::PoolsPerLot,
3203            "PPT" => Self::PoolsPerTrade,
3204            "PRICE" => Self::PriceRange,
3205            "PRICEFREQ" => Self::PricingFrequency,
3206            "PROD" => Self::ProductionYear,
3207            "PROTECT" => Self::CallProtection,
3208            "PURPOSE" => Self::Purpose,
3209            "PXSOURCE" => Self::BenchmarkPriceSource,
3210            "RATING" => Self::RatingSourceAndRange,
3211            "REDEMPTION" => Self::TypeOfRedemption,
3212            "RESTRICTED" => Self::Restricted,
3213            "SECTOR" => Self::MarketSector,
3214            "SECTYPE" => Self::SecurityTypeIncludedOrExcluded,
3215            "STRUCT" => Self::Structure,
3216            "SUBSFREQ" => Self::SubstitutionsFrequency,
3217            "SUBSLEFT" => Self::SubstitutionsLeft,
3218            "TEXT" => Self::FreeformText,
3219            "TRDVAR" => Self::TradeVariance,
3220            "WAC" => Self::WeightedAverageCoupon,
3221            "WAL" => Self::WeightedAverageLifeCoupon,
3222            "WALA" => Self::WeightedAverageLoanAge,
3223            "WAM" => Self::WeightedAverageMaturity,
3224            "WHOLE" => Self::WholePool,
3225            "YIELD" => Self::YieldRange,
3226            unrecognized => Self::Unrecognized(unrecognized),
3227        }
3228    }
3229
3230    pub fn value(self) -> &'a str {
3231        match self {
3232            Self::AlternativeMinimumTax => "AMT",
3233            Self::AutoReinvestment => "AUTOREINV",
3234            Self::BankQualified => "BANKQUAL",
3235            Self::BargainConditions => "BGNCON",
3236            Self::CouponRange => "COUPON",
3237            Self::IsoCurrencyCode => "CURRENCY",
3238            Self::CustomStart => "CUSTOMDATE",
3239            Self::Geographics => "GEOG",
3240            Self::ValuationDiscount => "HAIRCUT",
3241            Self::Insured => "INSURED",
3242            Self::IssueDate => "ISSUE",
3243            Self::Issuer => "ISSUER",
3244            Self::IssueSizeRange => "ISSUESIZE",
3245            Self::LookbackDays => "LOOKBACK",
3246            Self::ExplicitLotIdentifier => "LOT",
3247            Self::LotVariance => "LOTVAR",
3248            Self::MaturityYearAndMonth => "MAT",
3249            Self::MaturityRange => "MATURITY",
3250            Self::MaximumSubstitutions => "MAXSUBS",
3251            Self::MinimumQuantity => "MINQTY",
3252            Self::MinimumIncrement => "MININCR",
3253            Self::MinimumDenomination => "MINDNOM",
3254            Self::PaymentFrequency => "PAYFREQ",
3255            Self::NumberOfPieces => "PIECES",
3256            Self::PoolsMaximum => "PMAX",
3257            Self::PoolsPerMillion => "PPM",
3258            Self::PoolsPerLot => "PPL",
3259            Self::PoolsPerTrade => "PPT",
3260            Self::PriceRange => "PRICE",
3261            Self::PricingFrequency => "PRICEFREQ",
3262            Self::ProductionYear => "PROD",
3263            Self::CallProtection => "PROTECT",
3264            Self::Purpose => "PURPOSE",
3265            Self::BenchmarkPriceSource => "PXSOURCE",
3266            Self::RatingSourceAndRange => "RATING",
3267            Self::TypeOfRedemption => "REDEMPTION",
3268            Self::Restricted => "RESTRICTED",
3269            Self::MarketSector => "SECTOR",
3270            Self::SecurityTypeIncludedOrExcluded => "SECTYPE",
3271            Self::Structure => "STRUCT",
3272            Self::SubstitutionsFrequency => "SUBSFREQ",
3273            Self::SubstitutionsLeft => "SUBSLEFT",
3274            Self::FreeformText => "TEXT",
3275            Self::TradeVariance => "TRDVAR",
3276            Self::WeightedAverageCoupon => "WAC",
3277            Self::WeightedAverageLifeCoupon => "WAL",
3278            Self::WeightedAverageLoanAge => "WALA",
3279            Self::WeightedAverageMaturity => "WAM",
3280            Self::WholePool => "WHOLE",
3281            Self::YieldRange => "YIELD",
3282            Self::Unrecognized(value) => value,
3283        }
3284    }
3285}
3286
3287impl<'a> From<&'a str> for StipulationType<'a> {
3288    fn from(value: &'a str) -> Self {
3289        Self::from_value(value)
3290    }
3291}
3292
3293/// The values of the `YieldType` (235) field.
3294#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3295pub enum YieldType<'a> {
3296    /// `AFTERTAX`
3297    AfterTaxYield,
3298    /// `ANNUAL`
3299    AnnualYield,
3300    /// `ATISSUE`
3301    YieldAtIssue,
3302    /// `AVGMATURITY`
3303    YieldToAverageMaturity,
3304    /// `BOOK`
3305    BookYield,
3306    /// `CALL`
3307    YieldToNextCall,
3308    /// `CHANGE`
3309    YieldChangeSinceClose,
3310    /// `CLOSE`
3311    ClosingYield,
3312    /// `COMPOUND`
3313    CompoundYield,
3314    /// `CURRENT`
3315    CurrentYield,
3316    /// `GROSS`
3317    TrueGrossYield,
3318    /// `GOVTEQUIV`
3319    GvntEquivalentYield,
3320    /// `INFLATION`
3321    YieldWithInflationAssumption,
3322    /// `INVERSEFLOATER`
3323    InverseFloaterBondYield,
3324    /// `LASTCLOSE`
3325    MostRecentClosingYield,
3326    /// `LASTMONTH`
3327    ClosingYieldMostRecentMonth,
3328    /// `LASTQUARTER`
3329    ClosingYieldMostRecentQuarter,
3330    /// `LASTYEAR`
3331    ClosingYieldMostRecentYear,
3332    /// `LONGAVGLIFE`
3333    YieldToLongestAverageLife,
3334    /// `MARK`
3335    MarkToMarketYield,
3336    /// `MATURITY`
3337    YieldToMaturity,
3338    /// `NEXTREFUND`
3339    YieldToNextRefund,
3340    /// `OPENAVG`
3341    OpenAverageYield,
3342    /// `PUT`
3343    YieldToNextPut,
3344    /// `PREVCLOSE`
3345    PreviousCloseYield,
3346    /// `PROCEEDS`
3347    ProceedsYield,
3348    /// `SEMIANNUAL`
3349    SemiAnnualYield,
3350    /// `SHORTAVGLIFE`
3351    YieldToShortestAverageLife,
3352    /// `SIMPLE`
3353    SimpleYield,
3354    /// `TAXEQUIV`
3355    TaxEquivalentYield,
3356    /// `TENDER`
3357    YieldToTenderDate,
3358    /// `TRUE`
3359    TrueYield,
3360    /// `VALUE1/32`
3361    YieldValueOf132,
3362    /// `WORST`
3363    YieldToWorst,
3364    /// A value the dictionary does not list.
3365    Unrecognized(&'a str),
3366}
3367
3368impl<'a> YieldType<'a> {
3369    pub fn from_value(value: &'a str) -> Self {
3370        match value {
3371            "AFTERTAX" => Self::AfterTaxYield,
3372            "ANNUAL" => Self::AnnualYield,
3373            "ATISSUE" => Self::YieldAtIssue,
3374            "AVGMATURITY" => Self::YieldToAverageMaturity,
3375            "BOOK" => Self::BookYield,
3376            "CALL" => Self::YieldToNextCall,
3377            "CHANGE" => Self::YieldChangeSinceClose,
3378            "CLOSE" => Self::ClosingYield,
3379            "COMPOUND" => Self::CompoundYield,
3380            "CURRENT" => Self::CurrentYield,
3381            "GROSS" => Self::TrueGrossYield,
3382            "GOVTEQUIV" => Self::GvntEquivalentYield,
3383            "INFLATION" => Self::YieldWithInflationAssumption,
3384            "INVERSEFLOATER" => Self::InverseFloaterBondYield,
3385            "LASTCLOSE" => Self::MostRecentClosingYield,
3386            "LASTMONTH" => Self::ClosingYieldMostRecentMonth,
3387            "LASTQUARTER" => Self::ClosingYieldMostRecentQuarter,
3388            "LASTYEAR" => Self::ClosingYieldMostRecentYear,
3389            "LONGAVGLIFE" => Self::YieldToLongestAverageLife,
3390            "MARK" => Self::MarkToMarketYield,
3391            "MATURITY" => Self::YieldToMaturity,
3392            "NEXTREFUND" => Self::YieldToNextRefund,
3393            "OPENAVG" => Self::OpenAverageYield,
3394            "PUT" => Self::YieldToNextPut,
3395            "PREVCLOSE" => Self::PreviousCloseYield,
3396            "PROCEEDS" => Self::ProceedsYield,
3397            "SEMIANNUAL" => Self::SemiAnnualYield,
3398            "SHORTAVGLIFE" => Self::YieldToShortestAverageLife,
3399            "SIMPLE" => Self::SimpleYield,
3400            "TAXEQUIV" => Self::TaxEquivalentYield,
3401            "TENDER" => Self::YieldToTenderDate,
3402            "TRUE" => Self::TrueYield,
3403            "VALUE1/32" => Self::YieldValueOf132,
3404            "WORST" => Self::YieldToWorst,
3405            unrecognized => Self::Unrecognized(unrecognized),
3406        }
3407    }
3408
3409    pub fn value(self) -> &'a str {
3410        match self {
3411            Self::AfterTaxYield => "AFTERTAX",
3412            Self::AnnualYield => "ANNUAL",
3413            Self::YieldAtIssue => "ATISSUE",
3414            Self::YieldToAverageMaturity => "AVGMATURITY",
3415            Self::BookYield => "BOOK",
3416            Self::YieldToNextCall => "CALL",
3417            Self::YieldChangeSinceClose => "CHANGE",
3418            Self::ClosingYield => "CLOSE",
3419            Self::CompoundYield => "COMPOUND",
3420            Self::CurrentYield => "CURRENT",
3421            Self::TrueGrossYield => "GROSS",
3422            Self::GvntEquivalentYield => "GOVTEQUIV",
3423            Self::YieldWithInflationAssumption => "INFLATION",
3424            Self::InverseFloaterBondYield => "INVERSEFLOATER",
3425            Self::MostRecentClosingYield => "LASTCLOSE",
3426            Self::ClosingYieldMostRecentMonth => "LASTMONTH",
3427            Self::ClosingYieldMostRecentQuarter => "LASTQUARTER",
3428            Self::ClosingYieldMostRecentYear => "LASTYEAR",
3429            Self::YieldToLongestAverageLife => "LONGAVGLIFE",
3430            Self::MarkToMarketYield => "MARK",
3431            Self::YieldToMaturity => "MATURITY",
3432            Self::YieldToNextRefund => "NEXTREFUND",
3433            Self::OpenAverageYield => "OPENAVG",
3434            Self::YieldToNextPut => "PUT",
3435            Self::PreviousCloseYield => "PREVCLOSE",
3436            Self::ProceedsYield => "PROCEEDS",
3437            Self::SemiAnnualYield => "SEMIANNUAL",
3438            Self::YieldToShortestAverageLife => "SHORTAVGLIFE",
3439            Self::SimpleYield => "SIMPLE",
3440            Self::TaxEquivalentYield => "TAXEQUIV",
3441            Self::YieldToTenderDate => "TENDER",
3442            Self::TrueYield => "TRUE",
3443            Self::YieldValueOf132 => "VALUE1/32",
3444            Self::YieldToWorst => "WORST",
3445            Self::Unrecognized(value) => value,
3446        }
3447    }
3448}
3449
3450impl<'a> From<&'a str> for YieldType<'a> {
3451    fn from(value: &'a str) -> Self {
3452        Self::from_value(value)
3453    }
3454}
3455
3456/// The values of the `SubscriptionRequestType` (263) field.
3457#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3458pub enum SubscriptionRequestType<'a> {
3459    /// `0`
3460    Snapshot,
3461    /// `1`
3462    SnapshotAndUpdates,
3463    /// `2`
3464    DisablePreviousSnapshot,
3465    /// A value the dictionary does not list.
3466    Unrecognized(&'a str),
3467}
3468
3469impl<'a> SubscriptionRequestType<'a> {
3470    pub fn from_value(value: &'a str) -> Self {
3471        match value {
3472            "0" => Self::Snapshot,
3473            "1" => Self::SnapshotAndUpdates,
3474            "2" => Self::DisablePreviousSnapshot,
3475            unrecognized => Self::Unrecognized(unrecognized),
3476        }
3477    }
3478
3479    pub fn value(self) -> &'a str {
3480        match self {
3481            Self::Snapshot => "0",
3482            Self::SnapshotAndUpdates => "1",
3483            Self::DisablePreviousSnapshot => "2",
3484            Self::Unrecognized(value) => value,
3485        }
3486    }
3487}
3488
3489impl<'a> From<&'a str> for SubscriptionRequestType<'a> {
3490    fn from(value: &'a str) -> Self {
3491        Self::from_value(value)
3492    }
3493}
3494
3495/// The values of the `MDUpdateType` (265) field.
3496#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3497pub enum MDUpdateType {
3498    /// `0`
3499    FullRefresh,
3500    /// `1`
3501    IncrementalRefresh,
3502    /// A value the dictionary does not list.
3503    Unrecognized(i64),
3504}
3505
3506impl MDUpdateType {
3507    pub fn from_value(value: i64) -> Self {
3508        match value {
3509            0 => Self::FullRefresh,
3510            1 => Self::IncrementalRefresh,
3511            unrecognized => Self::Unrecognized(unrecognized),
3512        }
3513    }
3514
3515    pub fn value(self) -> i64 {
3516        match self {
3517            Self::FullRefresh => 0,
3518            Self::IncrementalRefresh => 1,
3519            Self::Unrecognized(value) => value,
3520        }
3521    }
3522}
3523
3524/// The values of the `MDEntryType` (269) field.
3525#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3526pub enum MDEntryType<'a> {
3527    /// `0`
3528    Bid,
3529    /// `1`
3530    Offer,
3531    /// `2`
3532    Trade,
3533    /// `3`
3534    IndexValue,
3535    /// `4`
3536    OpeningPrice,
3537    /// `5`
3538    ClosingPrice,
3539    /// `6`
3540    SettlementPrice,
3541    /// `7`
3542    TradingSessionHighPrice,
3543    /// `8`
3544    TradingSessionLowPrice,
3545    /// `9`
3546    TradingSessionVwapPrice,
3547    /// `A`
3548    Imbalance,
3549    /// `B`
3550    TradeVolume,
3551    /// `C`
3552    OpenInterest,
3553    /// A value the dictionary does not list.
3554    Unrecognized(&'a str),
3555}
3556
3557impl<'a> MDEntryType<'a> {
3558    pub fn from_value(value: &'a str) -> Self {
3559        match value {
3560            "0" => Self::Bid,
3561            "1" => Self::Offer,
3562            "2" => Self::Trade,
3563            "3" => Self::IndexValue,
3564            "4" => Self::OpeningPrice,
3565            "5" => Self::ClosingPrice,
3566            "6" => Self::SettlementPrice,
3567            "7" => Self::TradingSessionHighPrice,
3568            "8" => Self::TradingSessionLowPrice,
3569            "9" => Self::TradingSessionVwapPrice,
3570            "A" => Self::Imbalance,
3571            "B" => Self::TradeVolume,
3572            "C" => Self::OpenInterest,
3573            unrecognized => Self::Unrecognized(unrecognized),
3574        }
3575    }
3576
3577    pub fn value(self) -> &'a str {
3578        match self {
3579            Self::Bid => "0",
3580            Self::Offer => "1",
3581            Self::Trade => "2",
3582            Self::IndexValue => "3",
3583            Self::OpeningPrice => "4",
3584            Self::ClosingPrice => "5",
3585            Self::SettlementPrice => "6",
3586            Self::TradingSessionHighPrice => "7",
3587            Self::TradingSessionLowPrice => "8",
3588            Self::TradingSessionVwapPrice => "9",
3589            Self::Imbalance => "A",
3590            Self::TradeVolume => "B",
3591            Self::OpenInterest => "C",
3592            Self::Unrecognized(value) => value,
3593        }
3594    }
3595}
3596
3597impl<'a> From<&'a str> for MDEntryType<'a> {
3598    fn from(value: &'a str) -> Self {
3599        Self::from_value(value)
3600    }
3601}
3602
3603/// The values of the `TickDirection` (274) field.
3604#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3605pub enum TickDirection<'a> {
3606    /// `0`
3607    PlusTick,
3608    /// `1`
3609    ZeroPlusTick,
3610    /// `2`
3611    MinusTick,
3612    /// `3`
3613    ZeroMinusTick,
3614    /// A value the dictionary does not list.
3615    Unrecognized(&'a str),
3616}
3617
3618impl<'a> TickDirection<'a> {
3619    pub fn from_value(value: &'a str) -> Self {
3620        match value {
3621            "0" => Self::PlusTick,
3622            "1" => Self::ZeroPlusTick,
3623            "2" => Self::MinusTick,
3624            "3" => Self::ZeroMinusTick,
3625            unrecognized => Self::Unrecognized(unrecognized),
3626        }
3627    }
3628
3629    pub fn value(self) -> &'a str {
3630        match self {
3631            Self::PlusTick => "0",
3632            Self::ZeroPlusTick => "1",
3633            Self::MinusTick => "2",
3634            Self::ZeroMinusTick => "3",
3635            Self::Unrecognized(value) => value,
3636        }
3637    }
3638}
3639
3640impl<'a> From<&'a str> for TickDirection<'a> {
3641    fn from(value: &'a str) -> Self {
3642        Self::from_value(value)
3643    }
3644}
3645
3646/// The values of the `QuoteCondition` (276) field.
3647#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3648pub enum QuoteCondition<'a> {
3649    /// `A`
3650    Open,
3651    /// `B`
3652    Closed,
3653    /// `C`
3654    ExchangeBest,
3655    /// `D`
3656    ConsolidatedBest,
3657    /// `E`
3658    Locked,
3659    /// `F`
3660    Crossed,
3661    /// `G`
3662    Depth,
3663    /// `H`
3664    FastTrading,
3665    /// `I`
3666    NonFirm,
3667    /// A value the dictionary does not list.
3668    Unrecognized(&'a str),
3669}
3670
3671impl<'a> QuoteCondition<'a> {
3672    pub fn from_value(value: &'a str) -> Self {
3673        match value {
3674            "A" => Self::Open,
3675            "B" => Self::Closed,
3676            "C" => Self::ExchangeBest,
3677            "D" => Self::ConsolidatedBest,
3678            "E" => Self::Locked,
3679            "F" => Self::Crossed,
3680            "G" => Self::Depth,
3681            "H" => Self::FastTrading,
3682            "I" => Self::NonFirm,
3683            unrecognized => Self::Unrecognized(unrecognized),
3684        }
3685    }
3686
3687    pub fn value(self) -> &'a str {
3688        match self {
3689            Self::Open => "A",
3690            Self::Closed => "B",
3691            Self::ExchangeBest => "C",
3692            Self::ConsolidatedBest => "D",
3693            Self::Locked => "E",
3694            Self::Crossed => "F",
3695            Self::Depth => "G",
3696            Self::FastTrading => "H",
3697            Self::NonFirm => "I",
3698            Self::Unrecognized(value) => value,
3699        }
3700    }
3701}
3702
3703impl<'a> From<&'a str> for QuoteCondition<'a> {
3704    fn from(value: &'a str) -> Self {
3705        Self::from_value(value)
3706    }
3707}
3708
3709/// The values of the `TradeCondition` (277) field.
3710#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3711pub enum TradeCondition<'a> {
3712    /// `A`
3713    Cash,
3714    /// `B`
3715    AveragePriceTrade,
3716    /// `C`
3717    CashTrade,
3718    /// `D`
3719    NextDay,
3720    /// `E`
3721    Opening,
3722    /// `F`
3723    IntradayTradeDetail,
3724    /// `G`
3725    Rule127Trade,
3726    /// `H`
3727    Rule155Trade,
3728    /// `I`
3729    SoldLast,
3730    /// `J`
3731    NextDayTrade,
3732    /// `K`
3733    Opened,
3734    /// `L`
3735    Seller,
3736    /// `M`
3737    Sold,
3738    /// `N`
3739    StoppedStock,
3740    /// `P`
3741    ImbalanceMoreBuyers,
3742    /// `Q`
3743    ImbalanceMoreSellers,
3744    /// `R`
3745    OpeningPrice,
3746    /// A value the dictionary does not list.
3747    Unrecognized(&'a str),
3748}
3749
3750impl<'a> TradeCondition<'a> {
3751    pub fn from_value(value: &'a str) -> Self {
3752        match value {
3753            "A" => Self::Cash,
3754            "B" => Self::AveragePriceTrade,
3755            "C" => Self::CashTrade,
3756            "D" => Self::NextDay,
3757            "E" => Self::Opening,
3758            "F" => Self::IntradayTradeDetail,
3759            "G" => Self::Rule127Trade,
3760            "H" => Self::Rule155Trade,
3761            "I" => Self::SoldLast,
3762            "J" => Self::NextDayTrade,
3763            "K" => Self::Opened,
3764            "L" => Self::Seller,
3765            "M" => Self::Sold,
3766            "N" => Self::StoppedStock,
3767            "P" => Self::ImbalanceMoreBuyers,
3768            "Q" => Self::ImbalanceMoreSellers,
3769            "R" => Self::OpeningPrice,
3770            unrecognized => Self::Unrecognized(unrecognized),
3771        }
3772    }
3773
3774    pub fn value(self) -> &'a str {
3775        match self {
3776            Self::Cash => "A",
3777            Self::AveragePriceTrade => "B",
3778            Self::CashTrade => "C",
3779            Self::NextDay => "D",
3780            Self::Opening => "E",
3781            Self::IntradayTradeDetail => "F",
3782            Self::Rule127Trade => "G",
3783            Self::Rule155Trade => "H",
3784            Self::SoldLast => "I",
3785            Self::NextDayTrade => "J",
3786            Self::Opened => "K",
3787            Self::Seller => "L",
3788            Self::Sold => "M",
3789            Self::StoppedStock => "N",
3790            Self::ImbalanceMoreBuyers => "P",
3791            Self::ImbalanceMoreSellers => "Q",
3792            Self::OpeningPrice => "R",
3793            Self::Unrecognized(value) => value,
3794        }
3795    }
3796}
3797
3798impl<'a> From<&'a str> for TradeCondition<'a> {
3799    fn from(value: &'a str) -> Self {
3800        Self::from_value(value)
3801    }
3802}
3803
3804/// The values of the `MDUpdateAction` (279) field.
3805#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3806pub enum MDUpdateAction<'a> {
3807    /// `0`
3808    New,
3809    /// `1`
3810    Change,
3811    /// `2`
3812    Delete,
3813    /// A value the dictionary does not list.
3814    Unrecognized(&'a str),
3815}
3816
3817impl<'a> MDUpdateAction<'a> {
3818    pub fn from_value(value: &'a str) -> Self {
3819        match value {
3820            "0" => Self::New,
3821            "1" => Self::Change,
3822            "2" => Self::Delete,
3823            unrecognized => Self::Unrecognized(unrecognized),
3824        }
3825    }
3826
3827    pub fn value(self) -> &'a str {
3828        match self {
3829            Self::New => "0",
3830            Self::Change => "1",
3831            Self::Delete => "2",
3832            Self::Unrecognized(value) => value,
3833        }
3834    }
3835}
3836
3837impl<'a> From<&'a str> for MDUpdateAction<'a> {
3838    fn from(value: &'a str) -> Self {
3839        Self::from_value(value)
3840    }
3841}
3842
3843/// The values of the `MDReqRejReason` (281) field.
3844#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3845pub enum MDReqRejReason<'a> {
3846    /// `0`
3847    UnknownSymbol,
3848    /// `1`
3849    DuplicateMdReqId,
3850    /// `2`
3851    InsufficientBandwidth,
3852    /// `3`
3853    InsufficientPermissions,
3854    /// `4`
3855    UnsupportedSubscriptionRequestType,
3856    /// `5`
3857    UnsupportedMarketDepth,
3858    /// `6`
3859    UnsupportedMdUpdateType,
3860    /// `7`
3861    UnsupportedAggregatedBook,
3862    /// `8`
3863    UnsupportedMdEntryType,
3864    /// `9`
3865    UnsupportedTradingSessionId,
3866    /// `A`
3867    UnsupportedScope,
3868    /// `B`
3869    UnsupportedOpenCloseSettleFlag,
3870    /// `C`
3871    UnsupportedMdImplicitDelete,
3872    /// A value the dictionary does not list.
3873    Unrecognized(&'a str),
3874}
3875
3876impl<'a> MDReqRejReason<'a> {
3877    pub fn from_value(value: &'a str) -> Self {
3878        match value {
3879            "0" => Self::UnknownSymbol,
3880            "1" => Self::DuplicateMdReqId,
3881            "2" => Self::InsufficientBandwidth,
3882            "3" => Self::InsufficientPermissions,
3883            "4" => Self::UnsupportedSubscriptionRequestType,
3884            "5" => Self::UnsupportedMarketDepth,
3885            "6" => Self::UnsupportedMdUpdateType,
3886            "7" => Self::UnsupportedAggregatedBook,
3887            "8" => Self::UnsupportedMdEntryType,
3888            "9" => Self::UnsupportedTradingSessionId,
3889            "A" => Self::UnsupportedScope,
3890            "B" => Self::UnsupportedOpenCloseSettleFlag,
3891            "C" => Self::UnsupportedMdImplicitDelete,
3892            unrecognized => Self::Unrecognized(unrecognized),
3893        }
3894    }
3895
3896    pub fn value(self) -> &'a str {
3897        match self {
3898            Self::UnknownSymbol => "0",
3899            Self::DuplicateMdReqId => "1",
3900            Self::InsufficientBandwidth => "2",
3901            Self::InsufficientPermissions => "3",
3902            Self::UnsupportedSubscriptionRequestType => "4",
3903            Self::UnsupportedMarketDepth => "5",
3904            Self::UnsupportedMdUpdateType => "6",
3905            Self::UnsupportedAggregatedBook => "7",
3906            Self::UnsupportedMdEntryType => "8",
3907            Self::UnsupportedTradingSessionId => "9",
3908            Self::UnsupportedScope => "A",
3909            Self::UnsupportedOpenCloseSettleFlag => "B",
3910            Self::UnsupportedMdImplicitDelete => "C",
3911            Self::Unrecognized(value) => value,
3912        }
3913    }
3914}
3915
3916impl<'a> From<&'a str> for MDReqRejReason<'a> {
3917    fn from(value: &'a str) -> Self {
3918        Self::from_value(value)
3919    }
3920}
3921
3922/// The values of the `DeleteReason` (285) field.
3923#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3924pub enum DeleteReason<'a> {
3925    /// `0`
3926    Cancellation,
3927    /// `1`
3928    Error,
3929    /// A value the dictionary does not list.
3930    Unrecognized(&'a str),
3931}
3932
3933impl<'a> DeleteReason<'a> {
3934    pub fn from_value(value: &'a str) -> Self {
3935        match value {
3936            "0" => Self::Cancellation,
3937            "1" => Self::Error,
3938            unrecognized => Self::Unrecognized(unrecognized),
3939        }
3940    }
3941
3942    pub fn value(self) -> &'a str {
3943        match self {
3944            Self::Cancellation => "0",
3945            Self::Error => "1",
3946            Self::Unrecognized(value) => value,
3947        }
3948    }
3949}
3950
3951impl<'a> From<&'a str> for DeleteReason<'a> {
3952    fn from(value: &'a str) -> Self {
3953        Self::from_value(value)
3954    }
3955}
3956
3957/// The values of the `OpenCloseSettlFlag` (286) field.
3958#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
3959pub enum OpenCloseSettlFlag<'a> {
3960    /// `0`
3961    DailyOpen,
3962    /// `1`
3963    SessionOpen,
3964    /// `2`
3965    DeliverySettlementEntry,
3966    /// `3`
3967    ExpectedEntry,
3968    /// `4`
3969    EntryFromPreviousBusinessDay,
3970    /// `5`
3971    TheoreticalPriceValue,
3972    /// A value the dictionary does not list.
3973    Unrecognized(&'a str),
3974}
3975
3976impl<'a> OpenCloseSettlFlag<'a> {
3977    pub fn from_value(value: &'a str) -> Self {
3978        match value {
3979            "0" => Self::DailyOpen,
3980            "1" => Self::SessionOpen,
3981            "2" => Self::DeliverySettlementEntry,
3982            "3" => Self::ExpectedEntry,
3983            "4" => Self::EntryFromPreviousBusinessDay,
3984            "5" => Self::TheoreticalPriceValue,
3985            unrecognized => Self::Unrecognized(unrecognized),
3986        }
3987    }
3988
3989    pub fn value(self) -> &'a str {
3990        match self {
3991            Self::DailyOpen => "0",
3992            Self::SessionOpen => "1",
3993            Self::DeliverySettlementEntry => "2",
3994            Self::ExpectedEntry => "3",
3995            Self::EntryFromPreviousBusinessDay => "4",
3996            Self::TheoreticalPriceValue => "5",
3997            Self::Unrecognized(value) => value,
3998        }
3999    }
4000}
4001
4002impl<'a> From<&'a str> for OpenCloseSettlFlag<'a> {
4003    fn from(value: &'a str) -> Self {
4004        Self::from_value(value)
4005    }
4006}
4007
4008/// The values of the `FinancialStatus` (291) field.
4009#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4010pub enum FinancialStatus<'a> {
4011    /// `1`
4012    Bankrupt,
4013    /// `2`
4014    PendingDelisting,
4015    /// A value the dictionary does not list.
4016    Unrecognized(&'a str),
4017}
4018
4019impl<'a> FinancialStatus<'a> {
4020    pub fn from_value(value: &'a str) -> Self {
4021        match value {
4022            "1" => Self::Bankrupt,
4023            "2" => Self::PendingDelisting,
4024            unrecognized => Self::Unrecognized(unrecognized),
4025        }
4026    }
4027
4028    pub fn value(self) -> &'a str {
4029        match self {
4030            Self::Bankrupt => "1",
4031            Self::PendingDelisting => "2",
4032            Self::Unrecognized(value) => value,
4033        }
4034    }
4035}
4036
4037impl<'a> From<&'a str> for FinancialStatus<'a> {
4038    fn from(value: &'a str) -> Self {
4039        Self::from_value(value)
4040    }
4041}
4042
4043/// The values of the `CorporateAction` (292) field.
4044#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4045pub enum CorporateAction<'a> {
4046    /// `A`
4047    ExDividend,
4048    /// `B`
4049    ExDistribution,
4050    /// `C`
4051    ExRights,
4052    /// `D`
4053    New,
4054    /// `E`
4055    ExInterest,
4056    /// A value the dictionary does not list.
4057    Unrecognized(&'a str),
4058}
4059
4060impl<'a> CorporateAction<'a> {
4061    pub fn from_value(value: &'a str) -> Self {
4062        match value {
4063            "A" => Self::ExDividend,
4064            "B" => Self::ExDistribution,
4065            "C" => Self::ExRights,
4066            "D" => Self::New,
4067            "E" => Self::ExInterest,
4068            unrecognized => Self::Unrecognized(unrecognized),
4069        }
4070    }
4071
4072    pub fn value(self) -> &'a str {
4073        match self {
4074            Self::ExDividend => "A",
4075            Self::ExDistribution => "B",
4076            Self::ExRights => "C",
4077            Self::New => "D",
4078            Self::ExInterest => "E",
4079            Self::Unrecognized(value) => value,
4080        }
4081    }
4082}
4083
4084impl<'a> From<&'a str> for CorporateAction<'a> {
4085    fn from(value: &'a str) -> Self {
4086        Self::from_value(value)
4087    }
4088}
4089
4090/// The values of the `QuoteStatus` (297) field.
4091#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4092pub enum QuoteStatus {
4093    /// `0`
4094    Accepted,
4095    /// `1`
4096    CancelForSymbol,
4097    /// `2`
4098    CanceledForSecurityType,
4099    /// `3`
4100    CanceledForUnderlying,
4101    /// `4`
4102    CanceledAll,
4103    /// `5`
4104    Rejected,
4105    /// `6`
4106    RemovedFromMarket,
4107    /// `7`
4108    Expired,
4109    /// `8`
4110    Query,
4111    /// `9`
4112    QuoteNotFound,
4113    /// `10`
4114    Pending,
4115    /// `11`
4116    Pass,
4117    /// `12`
4118    LockedMarketWarning,
4119    /// `13`
4120    CrossMarketWarning,
4121    /// `14`
4122    CanceledDueToLockMarket,
4123    /// `15`
4124    CanceledDueToCrossMarket,
4125    /// A value the dictionary does not list.
4126    Unrecognized(i64),
4127}
4128
4129impl QuoteStatus {
4130    pub fn from_value(value: i64) -> Self {
4131        match value {
4132            0 => Self::Accepted,
4133            1 => Self::CancelForSymbol,
4134            2 => Self::CanceledForSecurityType,
4135            3 => Self::CanceledForUnderlying,
4136            4 => Self::CanceledAll,
4137            5 => Self::Rejected,
4138            6 => Self::RemovedFromMarket,
4139            7 => Self::Expired,
4140            8 => Self::Query,
4141            9 => Self::QuoteNotFound,
4142            10 => Self::Pending,
4143            11 => Self::Pass,
4144            12 => Self::LockedMarketWarning,
4145            13 => Self::CrossMarketWarning,
4146            14 => Self::CanceledDueToLockMarket,
4147            15 => Self::CanceledDueToCrossMarket,
4148            unrecognized => Self::Unrecognized(unrecognized),
4149        }
4150    }
4151
4152    pub fn value(self) -> i64 {
4153        match self {
4154            Self::Accepted => 0,
4155            Self::CancelForSymbol => 1,
4156            Self::CanceledForSecurityType => 2,
4157            Self::CanceledForUnderlying => 3,
4158            Self::CanceledAll => 4,
4159            Self::Rejected => 5,
4160            Self::RemovedFromMarket => 6,
4161            Self::Expired => 7,
4162            Self::Query => 8,
4163            Self::QuoteNotFound => 9,
4164            Self::Pending => 10,
4165            Self::Pass => 11,
4166            Self::LockedMarketWarning => 12,
4167            Self::CrossMarketWarning => 13,
4168            Self::CanceledDueToLockMarket => 14,
4169            Self::CanceledDueToCrossMarket => 15,
4170            Self::Unrecognized(value) => value,
4171        }
4172    }
4173}
4174
4175/// The values of the `QuoteCancelType` (298) field.
4176#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4177pub enum QuoteCancelType {
4178    /// `1`
4179    CancelForOneOrMoreSecurities,
4180    /// `2`
4181    CancelForSecurityType,
4182    /// `3`
4183    CancelForUnderlyingSecurity,
4184    /// `4`
4185    CancelAllQuotes,
4186    /// A value the dictionary does not list.
4187    Unrecognized(i64),
4188}
4189
4190impl QuoteCancelType {
4191    pub fn from_value(value: i64) -> Self {
4192        match value {
4193            1 => Self::CancelForOneOrMoreSecurities,
4194            2 => Self::CancelForSecurityType,
4195            3 => Self::CancelForUnderlyingSecurity,
4196            4 => Self::CancelAllQuotes,
4197            unrecognized => Self::Unrecognized(unrecognized),
4198        }
4199    }
4200
4201    pub fn value(self) -> i64 {
4202        match self {
4203            Self::CancelForOneOrMoreSecurities => 1,
4204            Self::CancelForSecurityType => 2,
4205            Self::CancelForUnderlyingSecurity => 3,
4206            Self::CancelAllQuotes => 4,
4207            Self::Unrecognized(value) => value,
4208        }
4209    }
4210}
4211
4212/// The values of the `QuoteRejectReason` (300) field.
4213#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4214pub enum QuoteRejectReason {
4215    /// `1`
4216    UnknownSymbol,
4217    /// `2`
4218    Exchange,
4219    /// `3`
4220    QuoteRequestExceedsLimit,
4221    /// `4`
4222    TooLateToEnter,
4223    /// `5`
4224    UnknownQuote,
4225    /// `6`
4226    DuplicateQuote,
4227    /// `7`
4228    InvalidBid,
4229    /// `8`
4230    InvalidPrice,
4231    /// `9`
4232    NotAuthorizedToQuoteSecurity,
4233    /// `99`
4234    Other,
4235    /// A value the dictionary does not list.
4236    Unrecognized(i64),
4237}
4238
4239impl QuoteRejectReason {
4240    pub fn from_value(value: i64) -> Self {
4241        match value {
4242            1 => Self::UnknownSymbol,
4243            2 => Self::Exchange,
4244            3 => Self::QuoteRequestExceedsLimit,
4245            4 => Self::TooLateToEnter,
4246            5 => Self::UnknownQuote,
4247            6 => Self::DuplicateQuote,
4248            7 => Self::InvalidBid,
4249            8 => Self::InvalidPrice,
4250            9 => Self::NotAuthorizedToQuoteSecurity,
4251            99 => Self::Other,
4252            unrecognized => Self::Unrecognized(unrecognized),
4253        }
4254    }
4255
4256    pub fn value(self) -> i64 {
4257        match self {
4258            Self::UnknownSymbol => 1,
4259            Self::Exchange => 2,
4260            Self::QuoteRequestExceedsLimit => 3,
4261            Self::TooLateToEnter => 4,
4262            Self::UnknownQuote => 5,
4263            Self::DuplicateQuote => 6,
4264            Self::InvalidBid => 7,
4265            Self::InvalidPrice => 8,
4266            Self::NotAuthorizedToQuoteSecurity => 9,
4267            Self::Other => 99,
4268            Self::Unrecognized(value) => value,
4269        }
4270    }
4271}
4272
4273/// The values of the `QuoteResponseLevel` (301) field.
4274#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4275pub enum QuoteResponseLevel {
4276    /// `0`
4277    NoAcknowledgement,
4278    /// `1`
4279    AcknowledgeOnlyNegativeOrErroneousQuotes,
4280    /// `2`
4281    AcknowledgeEachQuoteMessage,
4282    /// A value the dictionary does not list.
4283    Unrecognized(i64),
4284}
4285
4286impl QuoteResponseLevel {
4287    pub fn from_value(value: i64) -> Self {
4288        match value {
4289            0 => Self::NoAcknowledgement,
4290            1 => Self::AcknowledgeOnlyNegativeOrErroneousQuotes,
4291            2 => Self::AcknowledgeEachQuoteMessage,
4292            unrecognized => Self::Unrecognized(unrecognized),
4293        }
4294    }
4295
4296    pub fn value(self) -> i64 {
4297        match self {
4298            Self::NoAcknowledgement => 0,
4299            Self::AcknowledgeOnlyNegativeOrErroneousQuotes => 1,
4300            Self::AcknowledgeEachQuoteMessage => 2,
4301            Self::Unrecognized(value) => value,
4302        }
4303    }
4304}
4305
4306/// The values of the `QuoteRequestType` (303) field.
4307#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4308pub enum QuoteRequestType {
4309    /// `1`
4310    Manual,
4311    /// `2`
4312    Automatic,
4313    /// A value the dictionary does not list.
4314    Unrecognized(i64),
4315}
4316
4317impl QuoteRequestType {
4318    pub fn from_value(value: i64) -> Self {
4319        match value {
4320            1 => Self::Manual,
4321            2 => Self::Automatic,
4322            unrecognized => Self::Unrecognized(unrecognized),
4323        }
4324    }
4325
4326    pub fn value(self) -> i64 {
4327        match self {
4328            Self::Manual => 1,
4329            Self::Automatic => 2,
4330            Self::Unrecognized(value) => value,
4331        }
4332    }
4333}
4334
4335/// The values of the `SecurityRequestType` (321) field.
4336#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4337pub enum SecurityRequestType {
4338    /// `0`
4339    RequestSecurityIdentityAndSpecifications,
4340    /// `1`
4341    RequestSecurityIdentityForSpecifications,
4342    /// `2`
4343    RequestListSecurityTypes,
4344    /// `3`
4345    RequestListSecurities,
4346    /// A value the dictionary does not list.
4347    Unrecognized(i64),
4348}
4349
4350impl SecurityRequestType {
4351    pub fn from_value(value: i64) -> Self {
4352        match value {
4353            0 => Self::RequestSecurityIdentityAndSpecifications,
4354            1 => Self::RequestSecurityIdentityForSpecifications,
4355            2 => Self::RequestListSecurityTypes,
4356            3 => Self::RequestListSecurities,
4357            unrecognized => Self::Unrecognized(unrecognized),
4358        }
4359    }
4360
4361    pub fn value(self) -> i64 {
4362        match self {
4363            Self::RequestSecurityIdentityAndSpecifications => 0,
4364            Self::RequestSecurityIdentityForSpecifications => 1,
4365            Self::RequestListSecurityTypes => 2,
4366            Self::RequestListSecurities => 3,
4367            Self::Unrecognized(value) => value,
4368        }
4369    }
4370}
4371
4372/// The values of the `SecurityResponseType` (323) field.
4373#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4374pub enum SecurityResponseType {
4375    /// `1`
4376    AcceptAsIs,
4377    /// `2`
4378    AcceptWithRevisions,
4379    /// `5`
4380    RejectSecurityProposal,
4381    /// `6`
4382    CannotMatchSelectionCriteria,
4383    /// A value the dictionary does not list.
4384    Unrecognized(i64),
4385}
4386
4387impl SecurityResponseType {
4388    pub fn from_value(value: i64) -> Self {
4389        match value {
4390            1 => Self::AcceptAsIs,
4391            2 => Self::AcceptWithRevisions,
4392            5 => Self::RejectSecurityProposal,
4393            6 => Self::CannotMatchSelectionCriteria,
4394            unrecognized => Self::Unrecognized(unrecognized),
4395        }
4396    }
4397
4398    pub fn value(self) -> i64 {
4399        match self {
4400            Self::AcceptAsIs => 1,
4401            Self::AcceptWithRevisions => 2,
4402            Self::RejectSecurityProposal => 5,
4403            Self::CannotMatchSelectionCriteria => 6,
4404            Self::Unrecognized(value) => value,
4405        }
4406    }
4407}
4408
4409/// The values of the `SecurityTradingStatus` (326) field.
4410#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4411pub enum SecurityTradingStatus {
4412    /// `1`
4413    OpeningDelay,
4414    /// `2`
4415    TradingHalt,
4416    /// `3`
4417    Resume,
4418    /// `4`
4419    NoOpen,
4420    /// `5`
4421    PriceIndication,
4422    /// `6`
4423    TradingRangeIndication,
4424    /// `7`
4425    MarketImbalanceBuy,
4426    /// `8`
4427    MarketImbalanceSell,
4428    /// `9`
4429    MarketOnCloseImbalanceBuy,
4430    /// `10`
4431    MarketOnCloseImbalanceSell,
4432    /// `12`
4433    NoMarketImbalance,
4434    /// `13`
4435    NoMarketOnCloseImbalance,
4436    /// `14`
4437    ItsPreOpening,
4438    /// `15`
4439    NewPriceIndication,
4440    /// `16`
4441    TradeDisseminationTime,
4442    /// `17`
4443    ReadyToTrade,
4444    /// `18`
4445    NotAvailableForTrading,
4446    /// `19`
4447    NotTradedOnThisMarket,
4448    /// `20`
4449    UnknownOrInvalid,
4450    /// `21`
4451    PreOpen,
4452    /// `22`
4453    OpeningRotation,
4454    /// `23`
4455    FastMarket,
4456    /// A value the dictionary does not list.
4457    Unrecognized(i64),
4458}
4459
4460impl SecurityTradingStatus {
4461    pub fn from_value(value: i64) -> Self {
4462        match value {
4463            1 => Self::OpeningDelay,
4464            2 => Self::TradingHalt,
4465            3 => Self::Resume,
4466            4 => Self::NoOpen,
4467            5 => Self::PriceIndication,
4468            6 => Self::TradingRangeIndication,
4469            7 => Self::MarketImbalanceBuy,
4470            8 => Self::MarketImbalanceSell,
4471            9 => Self::MarketOnCloseImbalanceBuy,
4472            10 => Self::MarketOnCloseImbalanceSell,
4473            12 => Self::NoMarketImbalance,
4474            13 => Self::NoMarketOnCloseImbalance,
4475            14 => Self::ItsPreOpening,
4476            15 => Self::NewPriceIndication,
4477            16 => Self::TradeDisseminationTime,
4478            17 => Self::ReadyToTrade,
4479            18 => Self::NotAvailableForTrading,
4480            19 => Self::NotTradedOnThisMarket,
4481            20 => Self::UnknownOrInvalid,
4482            21 => Self::PreOpen,
4483            22 => Self::OpeningRotation,
4484            23 => Self::FastMarket,
4485            unrecognized => Self::Unrecognized(unrecognized),
4486        }
4487    }
4488
4489    pub fn value(self) -> i64 {
4490        match self {
4491            Self::OpeningDelay => 1,
4492            Self::TradingHalt => 2,
4493            Self::Resume => 3,
4494            Self::NoOpen => 4,
4495            Self::PriceIndication => 5,
4496            Self::TradingRangeIndication => 6,
4497            Self::MarketImbalanceBuy => 7,
4498            Self::MarketImbalanceSell => 8,
4499            Self::MarketOnCloseImbalanceBuy => 9,
4500            Self::MarketOnCloseImbalanceSell => 10,
4501            Self::NoMarketImbalance => 12,
4502            Self::NoMarketOnCloseImbalance => 13,
4503            Self::ItsPreOpening => 14,
4504            Self::NewPriceIndication => 15,
4505            Self::TradeDisseminationTime => 16,
4506            Self::ReadyToTrade => 17,
4507            Self::NotAvailableForTrading => 18,
4508            Self::NotTradedOnThisMarket => 19,
4509            Self::UnknownOrInvalid => 20,
4510            Self::PreOpen => 21,
4511            Self::OpeningRotation => 22,
4512            Self::FastMarket => 23,
4513            Self::Unrecognized(value) => value,
4514        }
4515    }
4516}
4517
4518/// The values of the `HaltReasonChar` (327) field.
4519#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4520pub enum HaltReasonChar<'a> {
4521    /// `I`
4522    OrderImbalance,
4523    /// `X`
4524    EquipmentChangeover,
4525    /// `P`
4526    NewsPending,
4527    /// `D`
4528    NewsDissemination,
4529    /// `E`
4530    OrderInflux,
4531    /// `M`
4532    AdditionalInformation,
4533    /// A value the dictionary does not list.
4534    Unrecognized(&'a str),
4535}
4536
4537impl<'a> HaltReasonChar<'a> {
4538    pub fn from_value(value: &'a str) -> Self {
4539        match value {
4540            "I" => Self::OrderImbalance,
4541            "X" => Self::EquipmentChangeover,
4542            "P" => Self::NewsPending,
4543            "D" => Self::NewsDissemination,
4544            "E" => Self::OrderInflux,
4545            "M" => Self::AdditionalInformation,
4546            unrecognized => Self::Unrecognized(unrecognized),
4547        }
4548    }
4549
4550    pub fn value(self) -> &'a str {
4551        match self {
4552            Self::OrderImbalance => "I",
4553            Self::EquipmentChangeover => "X",
4554            Self::NewsPending => "P",
4555            Self::NewsDissemination => "D",
4556            Self::OrderInflux => "E",
4557            Self::AdditionalInformation => "M",
4558            Self::Unrecognized(value) => value,
4559        }
4560    }
4561}
4562
4563impl<'a> From<&'a str> for HaltReasonChar<'a> {
4564    fn from(value: &'a str) -> Self {
4565        Self::from_value(value)
4566    }
4567}
4568
4569/// The values of the `Adjustment` (334) field.
4570#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4571pub enum Adjustment {
4572    /// `1`
4573    Cancel,
4574    /// `2`
4575    Error,
4576    /// `3`
4577    Correction,
4578    /// A value the dictionary does not list.
4579    Unrecognized(i64),
4580}
4581
4582impl Adjustment {
4583    pub fn from_value(value: i64) -> Self {
4584        match value {
4585            1 => Self::Cancel,
4586            2 => Self::Error,
4587            3 => Self::Correction,
4588            unrecognized => Self::Unrecognized(unrecognized),
4589        }
4590    }
4591
4592    pub fn value(self) -> i64 {
4593        match self {
4594            Self::Cancel => 1,
4595            Self::Error => 2,
4596            Self::Correction => 3,
4597            Self::Unrecognized(value) => value,
4598        }
4599    }
4600}
4601
4602/// The values of the `TradSesMethod` (338) field.
4603#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4604pub enum TradSesMethod {
4605    /// `1`
4606    Electronic,
4607    /// `2`
4608    OpenOutcry,
4609    /// `3`
4610    TwoParty,
4611    /// A value the dictionary does not list.
4612    Unrecognized(i64),
4613}
4614
4615impl TradSesMethod {
4616    pub fn from_value(value: i64) -> Self {
4617        match value {
4618            1 => Self::Electronic,
4619            2 => Self::OpenOutcry,
4620            3 => Self::TwoParty,
4621            unrecognized => Self::Unrecognized(unrecognized),
4622        }
4623    }
4624
4625    pub fn value(self) -> i64 {
4626        match self {
4627            Self::Electronic => 1,
4628            Self::OpenOutcry => 2,
4629            Self::TwoParty => 3,
4630            Self::Unrecognized(value) => value,
4631        }
4632    }
4633}
4634
4635/// The values of the `TradSesMode` (339) field.
4636#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4637pub enum TradSesMode {
4638    /// `1`
4639    Testing,
4640    /// `2`
4641    Simulated,
4642    /// `3`
4643    Production,
4644    /// A value the dictionary does not list.
4645    Unrecognized(i64),
4646}
4647
4648impl TradSesMode {
4649    pub fn from_value(value: i64) -> Self {
4650        match value {
4651            1 => Self::Testing,
4652            2 => Self::Simulated,
4653            3 => Self::Production,
4654            unrecognized => Self::Unrecognized(unrecognized),
4655        }
4656    }
4657
4658    pub fn value(self) -> i64 {
4659        match self {
4660            Self::Testing => 1,
4661            Self::Simulated => 2,
4662            Self::Production => 3,
4663            Self::Unrecognized(value) => value,
4664        }
4665    }
4666}
4667
4668/// The values of the `TradSesStatus` (340) field.
4669#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4670pub enum TradSesStatus {
4671    /// `0`
4672    Unknown,
4673    /// `1`
4674    Halted,
4675    /// `2`
4676    Open,
4677    /// `3`
4678    Closed,
4679    /// `4`
4680    PreOpen,
4681    /// `5`
4682    PreClose,
4683    /// `6`
4684    RequestRejected,
4685    /// A value the dictionary does not list.
4686    Unrecognized(i64),
4687}
4688
4689impl TradSesStatus {
4690    pub fn from_value(value: i64) -> Self {
4691        match value {
4692            0 => Self::Unknown,
4693            1 => Self::Halted,
4694            2 => Self::Open,
4695            3 => Self::Closed,
4696            4 => Self::PreOpen,
4697            5 => Self::PreClose,
4698            6 => Self::RequestRejected,
4699            unrecognized => Self::Unrecognized(unrecognized),
4700        }
4701    }
4702
4703    pub fn value(self) -> i64 {
4704        match self {
4705            Self::Unknown => 0,
4706            Self::Halted => 1,
4707            Self::Open => 2,
4708            Self::Closed => 3,
4709            Self::PreOpen => 4,
4710            Self::PreClose => 5,
4711            Self::RequestRejected => 6,
4712            Self::Unrecognized(value) => value,
4713        }
4714    }
4715}
4716
4717/// The values of the `MessageEncoding` (347) field.
4718#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4719pub enum MessageEncoding<'a> {
4720    /// `ISO-2022-JP`
4721    Iso2022Jp,
4722    /// `EUC-JP`
4723    Eucjp,
4724    /// `Shift_JIS`
4725    ShiftJis,
4726    /// `UTF-8`
4727    Utf8,
4728    /// A value the dictionary does not list.
4729    Unrecognized(&'a str),
4730}
4731
4732impl<'a> MessageEncoding<'a> {
4733    pub fn from_value(value: &'a str) -> Self {
4734        match value {
4735            "ISO-2022-JP" => Self::Iso2022Jp,
4736            "EUC-JP" => Self::Eucjp,
4737            "Shift_JIS" => Self::ShiftJis,
4738            "UTF-8" => Self::Utf8,
4739            unrecognized => Self::Unrecognized(unrecognized),
4740        }
4741    }
4742
4743    pub fn value(self) -> &'a str {
4744        match self {
4745            Self::Iso2022Jp => "ISO-2022-JP",
4746            Self::Eucjp => "EUC-JP",
4747            Self::ShiftJis => "Shift_JIS",
4748            Self::Utf8 => "UTF-8",
4749            Self::Unrecognized(value) => value,
4750        }
4751    }
4752}
4753
4754impl<'a> From<&'a str> for MessageEncoding<'a> {
4755    fn from(value: &'a str) -> Self {
4756        Self::from_value(value)
4757    }
4758}
4759
4760/// The values of the `SessionRejectReason` (373) field.
4761#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4762pub enum SessionRejectReason {
4763    /// `0`
4764    InvalidTagNumber,
4765    /// `1`
4766    RequiredTagMissing,
4767    /// `2`
4768    TagNotDefinedForThisMessageType,
4769    /// `3`
4770    UndefinedTag,
4771    /// `4`
4772    TagSpecifiedWithoutAValue,
4773    /// `5`
4774    ValueIsIncorrect,
4775    /// `6`
4776    IncorrectDataFormatForValue,
4777    /// `7`
4778    DecryptionProblem,
4779    /// `8`
4780    SignatureProblem,
4781    /// `9`
4782    CompIdProblem,
4783    /// `10`
4784    SendingTimeAccuracyProblem,
4785    /// `11`
4786    InvalidMsgType,
4787    /// `12`
4788    XmlValidationError,
4789    /// `13`
4790    TagAppearsMoreThanOnce,
4791    /// `14`
4792    TagSpecifiedOutOfRequiredOrder,
4793    /// `15`
4794    RepeatingGroupFieldsOutOfOrder,
4795    /// `16`
4796    IncorrectNumInGroupCountForRepeatingGroup,
4797    /// `17`
4798    Non,
4799    /// `99`
4800    Other,
4801    /// A value the dictionary does not list.
4802    Unrecognized(i64),
4803}
4804
4805impl SessionRejectReason {
4806    pub fn from_value(value: i64) -> Self {
4807        match value {
4808            0 => Self::InvalidTagNumber,
4809            1 => Self::RequiredTagMissing,
4810            2 => Self::TagNotDefinedForThisMessageType,
4811            3 => Self::UndefinedTag,
4812            4 => Self::TagSpecifiedWithoutAValue,
4813            5 => Self::ValueIsIncorrect,
4814            6 => Self::IncorrectDataFormatForValue,
4815            7 => Self::DecryptionProblem,
4816            8 => Self::SignatureProblem,
4817            9 => Self::CompIdProblem,
4818            10 => Self::SendingTimeAccuracyProblem,
4819            11 => Self::InvalidMsgType,
4820            12 => Self::XmlValidationError,
4821            13 => Self::TagAppearsMoreThanOnce,
4822            14 => Self::TagSpecifiedOutOfRequiredOrder,
4823            15 => Self::RepeatingGroupFieldsOutOfOrder,
4824            16 => Self::IncorrectNumInGroupCountForRepeatingGroup,
4825            17 => Self::Non,
4826            99 => Self::Other,
4827            unrecognized => Self::Unrecognized(unrecognized),
4828        }
4829    }
4830
4831    pub fn value(self) -> i64 {
4832        match self {
4833            Self::InvalidTagNumber => 0,
4834            Self::RequiredTagMissing => 1,
4835            Self::TagNotDefinedForThisMessageType => 2,
4836            Self::UndefinedTag => 3,
4837            Self::TagSpecifiedWithoutAValue => 4,
4838            Self::ValueIsIncorrect => 5,
4839            Self::IncorrectDataFormatForValue => 6,
4840            Self::DecryptionProblem => 7,
4841            Self::SignatureProblem => 8,
4842            Self::CompIdProblem => 9,
4843            Self::SendingTimeAccuracyProblem => 10,
4844            Self::InvalidMsgType => 11,
4845            Self::XmlValidationError => 12,
4846            Self::TagAppearsMoreThanOnce => 13,
4847            Self::TagSpecifiedOutOfRequiredOrder => 14,
4848            Self::RepeatingGroupFieldsOutOfOrder => 15,
4849            Self::IncorrectNumInGroupCountForRepeatingGroup => 16,
4850            Self::Non => 17,
4851            Self::Other => 99,
4852            Self::Unrecognized(value) => value,
4853        }
4854    }
4855}
4856
4857/// The values of the `BidRequestTransType` (374) field.
4858#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4859pub enum BidRequestTransType<'a> {
4860    /// `N`
4861    New,
4862    /// `C`
4863    Cancel,
4864    /// A value the dictionary does not list.
4865    Unrecognized(&'a str),
4866}
4867
4868impl<'a> BidRequestTransType<'a> {
4869    pub fn from_value(value: &'a str) -> Self {
4870        match value {
4871            "N" => Self::New,
4872            "C" => Self::Cancel,
4873            unrecognized => Self::Unrecognized(unrecognized),
4874        }
4875    }
4876
4877    pub fn value(self) -> &'a str {
4878        match self {
4879            Self::New => "N",
4880            Self::Cancel => "C",
4881            Self::Unrecognized(value) => value,
4882        }
4883    }
4884}
4885
4886impl<'a> From<&'a str> for BidRequestTransType<'a> {
4887    fn from(value: &'a str) -> Self {
4888        Self::from_value(value)
4889    }
4890}
4891
4892/// The values of the `ExecRestatementReason` (378) field.
4893#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4894pub enum ExecRestatementReason {
4895    /// `0`
4896    GtCorporateAction,
4897    /// `1`
4898    GtRenewal,
4899    /// `2`
4900    VerbalChange,
4901    /// `3`
4902    RepricingOfOrder,
4903    /// `4`
4904    BrokerOption,
4905    /// `5`
4906    PartialDeclineOfOrderQty,
4907    /// `6`
4908    CancelOnTradingHalt,
4909    /// `7`
4910    CancelOnSystemFailure,
4911    /// `8`
4912    Market,
4913    /// `9`
4914    Canceled,
4915    /// `10`
4916    WarehouseRecap,
4917    /// `99`
4918    Other,
4919    /// A value the dictionary does not list.
4920    Unrecognized(i64),
4921}
4922
4923impl ExecRestatementReason {
4924    pub fn from_value(value: i64) -> Self {
4925        match value {
4926            0 => Self::GtCorporateAction,
4927            1 => Self::GtRenewal,
4928            2 => Self::VerbalChange,
4929            3 => Self::RepricingOfOrder,
4930            4 => Self::BrokerOption,
4931            5 => Self::PartialDeclineOfOrderQty,
4932            6 => Self::CancelOnTradingHalt,
4933            7 => Self::CancelOnSystemFailure,
4934            8 => Self::Market,
4935            9 => Self::Canceled,
4936            10 => Self::WarehouseRecap,
4937            99 => Self::Other,
4938            unrecognized => Self::Unrecognized(unrecognized),
4939        }
4940    }
4941
4942    pub fn value(self) -> i64 {
4943        match self {
4944            Self::GtCorporateAction => 0,
4945            Self::GtRenewal => 1,
4946            Self::VerbalChange => 2,
4947            Self::RepricingOfOrder => 3,
4948            Self::BrokerOption => 4,
4949            Self::PartialDeclineOfOrderQty => 5,
4950            Self::CancelOnTradingHalt => 6,
4951            Self::CancelOnSystemFailure => 7,
4952            Self::Market => 8,
4953            Self::Canceled => 9,
4954            Self::WarehouseRecap => 10,
4955            Self::Other => 99,
4956            Self::Unrecognized(value) => value,
4957        }
4958    }
4959}
4960
4961/// The values of the `BusinessRejectReason` (380) field.
4962#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
4963pub enum BusinessRejectReason {
4964    /// `0`
4965    Other,
4966    /// `1`
4967    UnknownId,
4968    /// `2`
4969    UnknownSecurity,
4970    /// `3`
4971    UnsupportedMessageType,
4972    /// `4`
4973    ApplicationNotAvailable,
4974    /// `5`
4975    ConditionallyRequiredFieldMissing,
4976    /// `6`
4977    NotAuthorized,
4978    /// `7`
4979    DeliverToFirmNotAvailableAtThisTime,
4980    /// A value the dictionary does not list.
4981    Unrecognized(i64),
4982}
4983
4984impl BusinessRejectReason {
4985    pub fn from_value(value: i64) -> Self {
4986        match value {
4987            0 => Self::Other,
4988            1 => Self::UnknownId,
4989            2 => Self::UnknownSecurity,
4990            3 => Self::UnsupportedMessageType,
4991            4 => Self::ApplicationNotAvailable,
4992            5 => Self::ConditionallyRequiredFieldMissing,
4993            6 => Self::NotAuthorized,
4994            7 => Self::DeliverToFirmNotAvailableAtThisTime,
4995            unrecognized => Self::Unrecognized(unrecognized),
4996        }
4997    }
4998
4999    pub fn value(self) -> i64 {
5000        match self {
5001            Self::Other => 0,
5002            Self::UnknownId => 1,
5003            Self::UnknownSecurity => 2,
5004            Self::UnsupportedMessageType => 3,
5005            Self::ApplicationNotAvailable => 4,
5006            Self::ConditionallyRequiredFieldMissing => 5,
5007            Self::NotAuthorized => 6,
5008            Self::DeliverToFirmNotAvailableAtThisTime => 7,
5009            Self::Unrecognized(value) => value,
5010        }
5011    }
5012}
5013
5014/// The values of the `MsgDirection` (385) field.
5015#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5016pub enum MsgDirection<'a> {
5017    /// `S`
5018    Send,
5019    /// `R`
5020    Receive,
5021    /// A value the dictionary does not list.
5022    Unrecognized(&'a str),
5023}
5024
5025impl<'a> MsgDirection<'a> {
5026    pub fn from_value(value: &'a str) -> Self {
5027        match value {
5028            "S" => Self::Send,
5029            "R" => Self::Receive,
5030            unrecognized => Self::Unrecognized(unrecognized),
5031        }
5032    }
5033
5034    pub fn value(self) -> &'a str {
5035        match self {
5036            Self::Send => "S",
5037            Self::Receive => "R",
5038            Self::Unrecognized(value) => value,
5039        }
5040    }
5041}
5042
5043impl<'a> From<&'a str> for MsgDirection<'a> {
5044    fn from(value: &'a str) -> Self {
5045        Self::from_value(value)
5046    }
5047}
5048
5049/// The values of the `DiscretionInst` (388) field.
5050#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5051pub enum DiscretionInst<'a> {
5052    /// `0`
5053    RelatedToDisplayedPrice,
5054    /// `1`
5055    RelatedToMarketPrice,
5056    /// `2`
5057    RelatedToPrimaryPrice,
5058    /// `3`
5059    RelatedToLocalPrimaryPrice,
5060    /// `4`
5061    RelatedToMidpointPrice,
5062    /// `5`
5063    RelatedToLastTradePrice,
5064    /// `6`
5065    RelatedToVwap,
5066    /// A value the dictionary does not list.
5067    Unrecognized(&'a str),
5068}
5069
5070impl<'a> DiscretionInst<'a> {
5071    pub fn from_value(value: &'a str) -> Self {
5072        match value {
5073            "0" => Self::RelatedToDisplayedPrice,
5074            "1" => Self::RelatedToMarketPrice,
5075            "2" => Self::RelatedToPrimaryPrice,
5076            "3" => Self::RelatedToLocalPrimaryPrice,
5077            "4" => Self::RelatedToMidpointPrice,
5078            "5" => Self::RelatedToLastTradePrice,
5079            "6" => Self::RelatedToVwap,
5080            unrecognized => Self::Unrecognized(unrecognized),
5081        }
5082    }
5083
5084    pub fn value(self) -> &'a str {
5085        match self {
5086            Self::RelatedToDisplayedPrice => "0",
5087            Self::RelatedToMarketPrice => "1",
5088            Self::RelatedToPrimaryPrice => "2",
5089            Self::RelatedToLocalPrimaryPrice => "3",
5090            Self::RelatedToMidpointPrice => "4",
5091            Self::RelatedToLastTradePrice => "5",
5092            Self::RelatedToVwap => "6",
5093            Self::Unrecognized(value) => value,
5094        }
5095    }
5096}
5097
5098impl<'a> From<&'a str> for DiscretionInst<'a> {
5099    fn from(value: &'a str) -> Self {
5100        Self::from_value(value)
5101    }
5102}
5103
5104/// The values of the `BidType` (394) field.
5105#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5106pub enum BidType {
5107    /// `1`
5108    NonDisclosed,
5109    /// `2`
5110    Disclosed,
5111    /// `3`
5112    NoBiddingProcess,
5113    /// A value the dictionary does not list.
5114    Unrecognized(i64),
5115}
5116
5117impl BidType {
5118    pub fn from_value(value: i64) -> Self {
5119        match value {
5120            1 => Self::NonDisclosed,
5121            2 => Self::Disclosed,
5122            3 => Self::NoBiddingProcess,
5123            unrecognized => Self::Unrecognized(unrecognized),
5124        }
5125    }
5126
5127    pub fn value(self) -> i64 {
5128        match self {
5129            Self::NonDisclosed => 1,
5130            Self::Disclosed => 2,
5131            Self::NoBiddingProcess => 3,
5132            Self::Unrecognized(value) => value,
5133        }
5134    }
5135}
5136
5137/// The values of the `BidDescriptorType` (399) field.
5138#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5139pub enum BidDescriptorType {
5140    /// `1`
5141    Sector,
5142    /// `2`
5143    Country,
5144    /// `3`
5145    Index,
5146    /// A value the dictionary does not list.
5147    Unrecognized(i64),
5148}
5149
5150impl BidDescriptorType {
5151    pub fn from_value(value: i64) -> Self {
5152        match value {
5153            1 => Self::Sector,
5154            2 => Self::Country,
5155            3 => Self::Index,
5156            unrecognized => Self::Unrecognized(unrecognized),
5157        }
5158    }
5159
5160    pub fn value(self) -> i64 {
5161        match self {
5162            Self::Sector => 1,
5163            Self::Country => 2,
5164            Self::Index => 3,
5165            Self::Unrecognized(value) => value,
5166        }
5167    }
5168}
5169
5170/// The values of the `SideValueInd` (401) field.
5171#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5172pub enum SideValueInd {
5173    /// `1`
5174    SideValue1,
5175    /// `2`
5176    SideValue2,
5177    /// A value the dictionary does not list.
5178    Unrecognized(i64),
5179}
5180
5181impl SideValueInd {
5182    pub fn from_value(value: i64) -> Self {
5183        match value {
5184            1 => Self::SideValue1,
5185            2 => Self::SideValue2,
5186            unrecognized => Self::Unrecognized(unrecognized),
5187        }
5188    }
5189
5190    pub fn value(self) -> i64 {
5191        match self {
5192            Self::SideValue1 => 1,
5193            Self::SideValue2 => 2,
5194            Self::Unrecognized(value) => value,
5195        }
5196    }
5197}
5198
5199/// The values of the `LiquidityIndType` (409) field.
5200#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5201pub enum LiquidityIndType {
5202    /// `1`
5203    FiveDayMovingAverage,
5204    /// `2`
5205    TwentyDayMovingAverage,
5206    /// `3`
5207    NormalMarketSize,
5208    /// `4`
5209    Other,
5210    /// A value the dictionary does not list.
5211    Unrecognized(i64),
5212}
5213
5214impl LiquidityIndType {
5215    pub fn from_value(value: i64) -> Self {
5216        match value {
5217            1 => Self::FiveDayMovingAverage,
5218            2 => Self::TwentyDayMovingAverage,
5219            3 => Self::NormalMarketSize,
5220            4 => Self::Other,
5221            unrecognized => Self::Unrecognized(unrecognized),
5222        }
5223    }
5224
5225    pub fn value(self) -> i64 {
5226        match self {
5227            Self::FiveDayMovingAverage => 1,
5228            Self::TwentyDayMovingAverage => 2,
5229            Self::NormalMarketSize => 3,
5230            Self::Other => 4,
5231            Self::Unrecognized(value) => value,
5232        }
5233    }
5234}
5235
5236/// The values of the `ProgRptReqs` (414) field.
5237#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5238pub enum ProgRptReqs {
5239    /// `1`
5240    BuySideRequests,
5241    /// `2`
5242    SellSideSends,
5243    /// `3`
5244    RealTimeExecutionReports,
5245    /// A value the dictionary does not list.
5246    Unrecognized(i64),
5247}
5248
5249impl ProgRptReqs {
5250    pub fn from_value(value: i64) -> Self {
5251        match value {
5252            1 => Self::BuySideRequests,
5253            2 => Self::SellSideSends,
5254            3 => Self::RealTimeExecutionReports,
5255            unrecognized => Self::Unrecognized(unrecognized),
5256        }
5257    }
5258
5259    pub fn value(self) -> i64 {
5260        match self {
5261            Self::BuySideRequests => 1,
5262            Self::SellSideSends => 2,
5263            Self::RealTimeExecutionReports => 3,
5264            Self::Unrecognized(value) => value,
5265        }
5266    }
5267}
5268
5269/// The values of the `IncTaxInd` (416) field.
5270#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5271pub enum IncTaxInd {
5272    /// `1`
5273    Net,
5274    /// `2`
5275    Gross,
5276    /// A value the dictionary does not list.
5277    Unrecognized(i64),
5278}
5279
5280impl IncTaxInd {
5281    pub fn from_value(value: i64) -> Self {
5282        match value {
5283            1 => Self::Net,
5284            2 => Self::Gross,
5285            unrecognized => Self::Unrecognized(unrecognized),
5286        }
5287    }
5288
5289    pub fn value(self) -> i64 {
5290        match self {
5291            Self::Net => 1,
5292            Self::Gross => 2,
5293            Self::Unrecognized(value) => value,
5294        }
5295    }
5296}
5297
5298/// The values of the `BidTradeType` (418) field.
5299#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5300pub enum BidTradeType<'a> {
5301    /// `R`
5302    RiskTrade,
5303    /// `G`
5304    VwapGuarantee,
5305    /// `A`
5306    Agency,
5307    /// `J`
5308    GuaranteedClose,
5309    /// A value the dictionary does not list.
5310    Unrecognized(&'a str),
5311}
5312
5313impl<'a> BidTradeType<'a> {
5314    pub fn from_value(value: &'a str) -> Self {
5315        match value {
5316            "R" => Self::RiskTrade,
5317            "G" => Self::VwapGuarantee,
5318            "A" => Self::Agency,
5319            "J" => Self::GuaranteedClose,
5320            unrecognized => Self::Unrecognized(unrecognized),
5321        }
5322    }
5323
5324    pub fn value(self) -> &'a str {
5325        match self {
5326            Self::RiskTrade => "R",
5327            Self::VwapGuarantee => "G",
5328            Self::Agency => "A",
5329            Self::GuaranteedClose => "J",
5330            Self::Unrecognized(value) => value,
5331        }
5332    }
5333}
5334
5335impl<'a> From<&'a str> for BidTradeType<'a> {
5336    fn from(value: &'a str) -> Self {
5337        Self::from_value(value)
5338    }
5339}
5340
5341/// The values of the `BasisPxType` (419) field.
5342#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5343pub enum BasisPxType<'a> {
5344    /// `2`
5345    ClosingPriceAtMorningSession,
5346    /// `3`
5347    ClosingPrice,
5348    /// `4`
5349    CurrentPrice,
5350    /// `5`
5351    Sq,
5352    /// `6`
5353    VwapThroughADay,
5354    /// `7`
5355    VwapThroughAMorningSession,
5356    /// `8`
5357    VwapThroughAnAfternoonSession,
5358    /// `9`
5359    VwapThroughADayExcept,
5360    /// `A`
5361    VwapThroughAMorningSessionExcept,
5362    /// `B`
5363    VwapThroughAnAfternoonSessionExcept,
5364    /// `C`
5365    Strike,
5366    /// `D`
5367    Open,
5368    /// `Z`
5369    Others,
5370    /// A value the dictionary does not list.
5371    Unrecognized(&'a str),
5372}
5373
5374impl<'a> BasisPxType<'a> {
5375    pub fn from_value(value: &'a str) -> Self {
5376        match value {
5377            "2" => Self::ClosingPriceAtMorningSession,
5378            "3" => Self::ClosingPrice,
5379            "4" => Self::CurrentPrice,
5380            "5" => Self::Sq,
5381            "6" => Self::VwapThroughADay,
5382            "7" => Self::VwapThroughAMorningSession,
5383            "8" => Self::VwapThroughAnAfternoonSession,
5384            "9" => Self::VwapThroughADayExcept,
5385            "A" => Self::VwapThroughAMorningSessionExcept,
5386            "B" => Self::VwapThroughAnAfternoonSessionExcept,
5387            "C" => Self::Strike,
5388            "D" => Self::Open,
5389            "Z" => Self::Others,
5390            unrecognized => Self::Unrecognized(unrecognized),
5391        }
5392    }
5393
5394    pub fn value(self) -> &'a str {
5395        match self {
5396            Self::ClosingPriceAtMorningSession => "2",
5397            Self::ClosingPrice => "3",
5398            Self::CurrentPrice => "4",
5399            Self::Sq => "5",
5400            Self::VwapThroughADay => "6",
5401            Self::VwapThroughAMorningSession => "7",
5402            Self::VwapThroughAnAfternoonSession => "8",
5403            Self::VwapThroughADayExcept => "9",
5404            Self::VwapThroughAMorningSessionExcept => "A",
5405            Self::VwapThroughAnAfternoonSessionExcept => "B",
5406            Self::Strike => "C",
5407            Self::Open => "D",
5408            Self::Others => "Z",
5409            Self::Unrecognized(value) => value,
5410        }
5411    }
5412}
5413
5414impl<'a> From<&'a str> for BasisPxType<'a> {
5415    fn from(value: &'a str) -> Self {
5416        Self::from_value(value)
5417    }
5418}
5419
5420/// The values of the `PriceType` (423) field.
5421#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5422pub enum PriceType {
5423    /// `1`
5424    Percentage,
5425    /// `2`
5426    PerUnit,
5427    /// `3`
5428    FixedAmount,
5429    /// `4`
5430    Discount,
5431    /// `5`
5432    Premium,
5433    /// `6`
5434    Spread,
5435    /// `7`
5436    TedPrice,
5437    /// `8`
5438    TedYield,
5439    /// `9`
5440    Yield,
5441    /// `10`
5442    FixedCabinetTradePrice,
5443    /// `11`
5444    VariableCabinetTradePrice,
5445    /// A value the dictionary does not list.
5446    Unrecognized(i64),
5447}
5448
5449impl PriceType {
5450    pub fn from_value(value: i64) -> Self {
5451        match value {
5452            1 => Self::Percentage,
5453            2 => Self::PerUnit,
5454            3 => Self::FixedAmount,
5455            4 => Self::Discount,
5456            5 => Self::Premium,
5457            6 => Self::Spread,
5458            7 => Self::TedPrice,
5459            8 => Self::TedYield,
5460            9 => Self::Yield,
5461            10 => Self::FixedCabinetTradePrice,
5462            11 => Self::VariableCabinetTradePrice,
5463            unrecognized => Self::Unrecognized(unrecognized),
5464        }
5465    }
5466
5467    pub fn value(self) -> i64 {
5468        match self {
5469            Self::Percentage => 1,
5470            Self::PerUnit => 2,
5471            Self::FixedAmount => 3,
5472            Self::Discount => 4,
5473            Self::Premium => 5,
5474            Self::Spread => 6,
5475            Self::TedPrice => 7,
5476            Self::TedYield => 8,
5477            Self::Yield => 9,
5478            Self::FixedCabinetTradePrice => 10,
5479            Self::VariableCabinetTradePrice => 11,
5480            Self::Unrecognized(value) => value,
5481        }
5482    }
5483}
5484
5485/// The values of the `GTBookingInst` (427) field.
5486#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5487pub enum GTBookingInst {
5488    /// `0`
5489    BookOutAllTradesOnDayOfExecution,
5490    /// `1`
5491    AccumulateUntilFilledOrExpired,
5492    /// `2`
5493    AccumulateUntilVerballlyNotifiedOtherwise,
5494    /// A value the dictionary does not list.
5495    Unrecognized(i64),
5496}
5497
5498impl GTBookingInst {
5499    pub fn from_value(value: i64) -> Self {
5500        match value {
5501            0 => Self::BookOutAllTradesOnDayOfExecution,
5502            1 => Self::AccumulateUntilFilledOrExpired,
5503            2 => Self::AccumulateUntilVerballlyNotifiedOtherwise,
5504            unrecognized => Self::Unrecognized(unrecognized),
5505        }
5506    }
5507
5508    pub fn value(self) -> i64 {
5509        match self {
5510            Self::BookOutAllTradesOnDayOfExecution => 0,
5511            Self::AccumulateUntilFilledOrExpired => 1,
5512            Self::AccumulateUntilVerballlyNotifiedOtherwise => 2,
5513            Self::Unrecognized(value) => value,
5514        }
5515    }
5516}
5517
5518/// The values of the `ListStatusType` (429) field.
5519#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5520pub enum ListStatusType {
5521    /// `1`
5522    Ack,
5523    /// `2`
5524    Response,
5525    /// `3`
5526    Timed,
5527    /// `4`
5528    ExecStarted,
5529    /// `5`
5530    AllDone,
5531    /// `6`
5532    Alert,
5533    /// A value the dictionary does not list.
5534    Unrecognized(i64),
5535}
5536
5537impl ListStatusType {
5538    pub fn from_value(value: i64) -> Self {
5539        match value {
5540            1 => Self::Ack,
5541            2 => Self::Response,
5542            3 => Self::Timed,
5543            4 => Self::ExecStarted,
5544            5 => Self::AllDone,
5545            6 => Self::Alert,
5546            unrecognized => Self::Unrecognized(unrecognized),
5547        }
5548    }
5549
5550    pub fn value(self) -> i64 {
5551        match self {
5552            Self::Ack => 1,
5553            Self::Response => 2,
5554            Self::Timed => 3,
5555            Self::ExecStarted => 4,
5556            Self::AllDone => 5,
5557            Self::Alert => 6,
5558            Self::Unrecognized(value) => value,
5559        }
5560    }
5561}
5562
5563/// The values of the `NetGrossInd` (430) field.
5564#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5565pub enum NetGrossInd {
5566    /// `1`
5567    Net,
5568    /// `2`
5569    Gross,
5570    /// A value the dictionary does not list.
5571    Unrecognized(i64),
5572}
5573
5574impl NetGrossInd {
5575    pub fn from_value(value: i64) -> Self {
5576        match value {
5577            1 => Self::Net,
5578            2 => Self::Gross,
5579            unrecognized => Self::Unrecognized(unrecognized),
5580        }
5581    }
5582
5583    pub fn value(self) -> i64 {
5584        match self {
5585            Self::Net => 1,
5586            Self::Gross => 2,
5587            Self::Unrecognized(value) => value,
5588        }
5589    }
5590}
5591
5592/// The values of the `ListOrderStatus` (431) field.
5593#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5594pub enum ListOrderStatus {
5595    /// `1`
5596    InBiddingProcess,
5597    /// `2`
5598    ReceivedForExecution,
5599    /// `3`
5600    Executing,
5601    /// `4`
5602    Cancelling,
5603    /// `5`
5604    Alert,
5605    /// `6`
5606    AllDone,
5607    /// `7`
5608    Reject,
5609    /// A value the dictionary does not list.
5610    Unrecognized(i64),
5611}
5612
5613impl ListOrderStatus {
5614    pub fn from_value(value: i64) -> Self {
5615        match value {
5616            1 => Self::InBiddingProcess,
5617            2 => Self::ReceivedForExecution,
5618            3 => Self::Executing,
5619            4 => Self::Cancelling,
5620            5 => Self::Alert,
5621            6 => Self::AllDone,
5622            7 => Self::Reject,
5623            unrecognized => Self::Unrecognized(unrecognized),
5624        }
5625    }
5626
5627    pub fn value(self) -> i64 {
5628        match self {
5629            Self::InBiddingProcess => 1,
5630            Self::ReceivedForExecution => 2,
5631            Self::Executing => 3,
5632            Self::Cancelling => 4,
5633            Self::Alert => 5,
5634            Self::AllDone => 6,
5635            Self::Reject => 7,
5636            Self::Unrecognized(value) => value,
5637        }
5638    }
5639}
5640
5641/// The values of the `ListExecInstType` (433) field.
5642#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5643pub enum ListExecInstType<'a> {
5644    /// `1`
5645    Immediate,
5646    /// `2`
5647    WaitForInstruction,
5648    /// `3`
5649    SellDriven,
5650    /// `4`
5651    BuyDrivenCashTopUp,
5652    /// `5`
5653    BuyDrivenCashWithdraw,
5654    /// A value the dictionary does not list.
5655    Unrecognized(&'a str),
5656}
5657
5658impl<'a> ListExecInstType<'a> {
5659    pub fn from_value(value: &'a str) -> Self {
5660        match value {
5661            "1" => Self::Immediate,
5662            "2" => Self::WaitForInstruction,
5663            "3" => Self::SellDriven,
5664            "4" => Self::BuyDrivenCashTopUp,
5665            "5" => Self::BuyDrivenCashWithdraw,
5666            unrecognized => Self::Unrecognized(unrecognized),
5667        }
5668    }
5669
5670    pub fn value(self) -> &'a str {
5671        match self {
5672            Self::Immediate => "1",
5673            Self::WaitForInstruction => "2",
5674            Self::SellDriven => "3",
5675            Self::BuyDrivenCashTopUp => "4",
5676            Self::BuyDrivenCashWithdraw => "5",
5677            Self::Unrecognized(value) => value,
5678        }
5679    }
5680}
5681
5682impl<'a> From<&'a str> for ListExecInstType<'a> {
5683    fn from(value: &'a str) -> Self {
5684        Self::from_value(value)
5685    }
5686}
5687
5688/// The values of the `CxlRejResponseTo` (434) field.
5689#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5690pub enum CxlRejResponseTo<'a> {
5691    /// `1`
5692    OrderCancelRequest,
5693    /// `2`
5694    OrderCancel,
5695    /// A value the dictionary does not list.
5696    Unrecognized(&'a str),
5697}
5698
5699impl<'a> CxlRejResponseTo<'a> {
5700    pub fn from_value(value: &'a str) -> Self {
5701        match value {
5702            "1" => Self::OrderCancelRequest,
5703            "2" => Self::OrderCancel,
5704            unrecognized => Self::Unrecognized(unrecognized),
5705        }
5706    }
5707
5708    pub fn value(self) -> &'a str {
5709        match self {
5710            Self::OrderCancelRequest => "1",
5711            Self::OrderCancel => "2",
5712            Self::Unrecognized(value) => value,
5713        }
5714    }
5715}
5716
5717impl<'a> From<&'a str> for CxlRejResponseTo<'a> {
5718    fn from(value: &'a str) -> Self {
5719        Self::from_value(value)
5720    }
5721}
5722
5723/// The values of the `MultiLegReportingType` (442) field.
5724#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5725pub enum MultiLegReportingType<'a> {
5726    /// `1`
5727    SingleSecurity,
5728    /// `2`
5729    IndividualLegOfAMultiLegSecurity,
5730    /// `3`
5731    MultiLegSecurity,
5732    /// A value the dictionary does not list.
5733    Unrecognized(&'a str),
5734}
5735
5736impl<'a> MultiLegReportingType<'a> {
5737    pub fn from_value(value: &'a str) -> Self {
5738        match value {
5739            "1" => Self::SingleSecurity,
5740            "2" => Self::IndividualLegOfAMultiLegSecurity,
5741            "3" => Self::MultiLegSecurity,
5742            unrecognized => Self::Unrecognized(unrecognized),
5743        }
5744    }
5745
5746    pub fn value(self) -> &'a str {
5747        match self {
5748            Self::SingleSecurity => "1",
5749            Self::IndividualLegOfAMultiLegSecurity => "2",
5750            Self::MultiLegSecurity => "3",
5751            Self::Unrecognized(value) => value,
5752        }
5753    }
5754}
5755
5756impl<'a> From<&'a str> for MultiLegReportingType<'a> {
5757    fn from(value: &'a str) -> Self {
5758        Self::from_value(value)
5759    }
5760}
5761
5762/// The values of the `PartyIDSource` (447) field.
5763#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5764pub enum PartyIDSource<'a> {
5765    /// `B`
5766    Bic,
5767    /// `C`
5768    GeneralIdentifier,
5769    /// `D`
5770    Proprietary,
5771    /// `E`
5772    IsoCountryCode,
5773    /// `F`
5774    SettlementEntityLocation,
5775    /// `G`
5776    Mic,
5777    /// `H`
5778    CsdParticipant,
5779    /// `1`
5780    KoreanInvestorId,
5781    /// `2`
5782    TaiwaneseForeignInvestorId,
5783    /// `3`
5784    TaiwaneseTradingAcct,
5785    /// `4`
5786    MalaysianCentralDepository,
5787    /// `5`
5788    ChineseInvestorId,
5789    /// `6`
5790    UkNationalInsuranceOrPensionNumber,
5791    /// `7`
5792    UsSocialSecurityNumber,
5793    /// `8`
5794    UsEmployerOrTaxIdNumber,
5795    /// `9`
5796    AustralianBusinessNumber,
5797    /// `A`
5798    AustralianTaxFileNumber,
5799    /// `I`
5800    IsitcAcronym,
5801    /// A value the dictionary does not list.
5802    Unrecognized(&'a str),
5803}
5804
5805impl<'a> PartyIDSource<'a> {
5806    pub fn from_value(value: &'a str) -> Self {
5807        match value {
5808            "B" => Self::Bic,
5809            "C" => Self::GeneralIdentifier,
5810            "D" => Self::Proprietary,
5811            "E" => Self::IsoCountryCode,
5812            "F" => Self::SettlementEntityLocation,
5813            "G" => Self::Mic,
5814            "H" => Self::CsdParticipant,
5815            "1" => Self::KoreanInvestorId,
5816            "2" => Self::TaiwaneseForeignInvestorId,
5817            "3" => Self::TaiwaneseTradingAcct,
5818            "4" => Self::MalaysianCentralDepository,
5819            "5" => Self::ChineseInvestorId,
5820            "6" => Self::UkNationalInsuranceOrPensionNumber,
5821            "7" => Self::UsSocialSecurityNumber,
5822            "8" => Self::UsEmployerOrTaxIdNumber,
5823            "9" => Self::AustralianBusinessNumber,
5824            "A" => Self::AustralianTaxFileNumber,
5825            "I" => Self::IsitcAcronym,
5826            unrecognized => Self::Unrecognized(unrecognized),
5827        }
5828    }
5829
5830    pub fn value(self) -> &'a str {
5831        match self {
5832            Self::Bic => "B",
5833            Self::GeneralIdentifier => "C",
5834            Self::Proprietary => "D",
5835            Self::IsoCountryCode => "E",
5836            Self::SettlementEntityLocation => "F",
5837            Self::Mic => "G",
5838            Self::CsdParticipant => "H",
5839            Self::KoreanInvestorId => "1",
5840            Self::TaiwaneseForeignInvestorId => "2",
5841            Self::TaiwaneseTradingAcct => "3",
5842            Self::MalaysianCentralDepository => "4",
5843            Self::ChineseInvestorId => "5",
5844            Self::UkNationalInsuranceOrPensionNumber => "6",
5845            Self::UsSocialSecurityNumber => "7",
5846            Self::UsEmployerOrTaxIdNumber => "8",
5847            Self::AustralianBusinessNumber => "9",
5848            Self::AustralianTaxFileNumber => "A",
5849            Self::IsitcAcronym => "I",
5850            Self::Unrecognized(value) => value,
5851        }
5852    }
5853}
5854
5855impl<'a> From<&'a str> for PartyIDSource<'a> {
5856    fn from(value: &'a str) -> Self {
5857        Self::from_value(value)
5858    }
5859}
5860
5861/// The values of the `PartyRole` (452) field.
5862#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
5863pub enum PartyRole {
5864    /// `1`
5865    ExecutingFirm,
5866    /// `2`
5867    BrokerOfCredit,
5868    /// `3`
5869    ClientId,
5870    /// `4`
5871    ClearingFirm,
5872    /// `5`
5873    InvestorId,
5874    /// `6`
5875    IntroducingFirm,
5876    /// `7`
5877    EnteringFirm,
5878    /// `8`
5879    Locate,
5880    /// `9`
5881    FundManagerClientId,
5882    /// `10`
5883    SettlementLocation,
5884    /// `11`
5885    OrderOriginationTrader,
5886    /// `12`
5887    ExecutingTrader,
5888    /// `13`
5889    OrderOriginationFirm,
5890    /// `14`
5891    GiveupClearingFirm,
5892    /// `15`
5893    CorrespondantClearingFirm,
5894    /// `16`
5895    ExecutingSystem,
5896    /// `17`
5897    ContraFirm,
5898    /// `18`
5899    ContraClearingFirm,
5900    /// `19`
5901    SponsoringFirm,
5902    /// `20`
5903    UnderlyingContraFirm,
5904    /// `21`
5905    ClearingOrganization,
5906    /// `22`
5907    Exchange,
5908    /// `24`
5909    CustomerAccount,
5910    /// `25`
5911    CorrespondentClearingOrganization,
5912    /// `26`
5913    CorrespondentBroker,
5914    /// `27`
5915    Buyer,
5916    /// `28`
5917    Custodian,
5918    /// `29`
5919    Intermediary,
5920    /// `30`
5921    Agent,
5922    /// `31`
5923    SubCustodian,
5924    /// `32`
5925    Beneficiary,
5926    /// `33`
5927    InterestedParty,
5928    /// `34`
5929    RegulatoryBody,
5930    /// `35`
5931    LiquidityProvider,
5932    /// `36`
5933    EnteringTrader,
5934    /// `37`
5935    ContraTrader,
5936    /// `38`
5937    PositionAccount,
5938    /// A value the dictionary does not list.
5939    Unrecognized(i64),
5940}
5941
5942impl PartyRole {
5943    pub fn from_value(value: i64) -> Self {
5944        match value {
5945            1 => Self::ExecutingFirm,
5946            2 => Self::BrokerOfCredit,
5947            3 => Self::ClientId,
5948            4 => Self::ClearingFirm,
5949            5 => Self::InvestorId,
5950            6 => Self::IntroducingFirm,
5951            7 => Self::EnteringFirm,
5952            8 => Self::Locate,
5953            9 => Self::FundManagerClientId,
5954            10 => Self::SettlementLocation,
5955            11 => Self::OrderOriginationTrader,
5956            12 => Self::ExecutingTrader,
5957            13 => Self::OrderOriginationFirm,
5958            14 => Self::GiveupClearingFirm,
5959            15 => Self::CorrespondantClearingFirm,
5960            16 => Self::ExecutingSystem,
5961            17 => Self::ContraFirm,
5962            18 => Self::ContraClearingFirm,
5963            19 => Self::SponsoringFirm,
5964            20 => Self::UnderlyingContraFirm,
5965            21 => Self::ClearingOrganization,
5966            22 => Self::Exchange,
5967            24 => Self::CustomerAccount,
5968            25 => Self::CorrespondentClearingOrganization,
5969            26 => Self::CorrespondentBroker,
5970            27 => Self::Buyer,
5971            28 => Self::Custodian,
5972            29 => Self::Intermediary,
5973            30 => Self::Agent,
5974            31 => Self::SubCustodian,
5975            32 => Self::Beneficiary,
5976            33 => Self::InterestedParty,
5977            34 => Self::RegulatoryBody,
5978            35 => Self::LiquidityProvider,
5979            36 => Self::EnteringTrader,
5980            37 => Self::ContraTrader,
5981            38 => Self::PositionAccount,
5982            unrecognized => Self::Unrecognized(unrecognized),
5983        }
5984    }
5985
5986    pub fn value(self) -> i64 {
5987        match self {
5988            Self::ExecutingFirm => 1,
5989            Self::BrokerOfCredit => 2,
5990            Self::ClientId => 3,
5991            Self::ClearingFirm => 4,
5992            Self::InvestorId => 5,
5993            Self::IntroducingFirm => 6,
5994            Self::EnteringFirm => 7,
5995            Self::Locate => 8,
5996            Self::FundManagerClientId => 9,
5997            Self::SettlementLocation => 10,
5998            Self::OrderOriginationTrader => 11,
5999            Self::ExecutingTrader => 12,
6000            Self::OrderOriginationFirm => 13,
6001            Self::GiveupClearingFirm => 14,
6002            Self::CorrespondantClearingFirm => 15,
6003            Self::ExecutingSystem => 16,
6004            Self::ContraFirm => 17,
6005            Self::ContraClearingFirm => 18,
6006            Self::SponsoringFirm => 19,
6007            Self::UnderlyingContraFirm => 20,
6008            Self::ClearingOrganization => 21,
6009            Self::Exchange => 22,
6010            Self::CustomerAccount => 24,
6011            Self::CorrespondentClearingOrganization => 25,
6012            Self::CorrespondentBroker => 26,
6013            Self::Buyer => 27,
6014            Self::Custodian => 28,
6015            Self::Intermediary => 29,
6016            Self::Agent => 30,
6017            Self::SubCustodian => 31,
6018            Self::Beneficiary => 32,
6019            Self::InterestedParty => 33,
6020            Self::RegulatoryBody => 34,
6021            Self::LiquidityProvider => 35,
6022            Self::EnteringTrader => 36,
6023            Self::ContraTrader => 37,
6024            Self::PositionAccount => 38,
6025            Self::Unrecognized(value) => value,
6026        }
6027    }
6028}
6029
6030/// The values of the `Product` (460) field.
6031#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6032pub enum Product {
6033    /// `1`
6034    Agency,
6035    /// `2`
6036    Commodity,
6037    /// `3`
6038    Corporate,
6039    /// `4`
6040    Currency,
6041    /// `5`
6042    Equity,
6043    /// `6`
6044    Government,
6045    /// `7`
6046    Index,
6047    /// `8`
6048    Loan,
6049    /// `9`
6050    Moneymarket,
6051    /// `10`
6052    Mortgage,
6053    /// `11`
6054    Municipal,
6055    /// `12`
6056    Other,
6057    /// `13`
6058    Financing,
6059    /// A value the dictionary does not list.
6060    Unrecognized(i64),
6061}
6062
6063impl Product {
6064    pub fn from_value(value: i64) -> Self {
6065        match value {
6066            1 => Self::Agency,
6067            2 => Self::Commodity,
6068            3 => Self::Corporate,
6069            4 => Self::Currency,
6070            5 => Self::Equity,
6071            6 => Self::Government,
6072            7 => Self::Index,
6073            8 => Self::Loan,
6074            9 => Self::Moneymarket,
6075            10 => Self::Mortgage,
6076            11 => Self::Municipal,
6077            12 => Self::Other,
6078            13 => Self::Financing,
6079            unrecognized => Self::Unrecognized(unrecognized),
6080        }
6081    }
6082
6083    pub fn value(self) -> i64 {
6084        match self {
6085            Self::Agency => 1,
6086            Self::Commodity => 2,
6087            Self::Corporate => 3,
6088            Self::Currency => 4,
6089            Self::Equity => 5,
6090            Self::Government => 6,
6091            Self::Index => 7,
6092            Self::Loan => 8,
6093            Self::Moneymarket => 9,
6094            Self::Mortgage => 10,
6095            Self::Municipal => 11,
6096            Self::Other => 12,
6097            Self::Financing => 13,
6098            Self::Unrecognized(value) => value,
6099        }
6100    }
6101}
6102
6103/// The values of the `RoundingDirection` (468) field.
6104#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6105pub enum RoundingDirection<'a> {
6106    /// `0`
6107    RoundToNearest,
6108    /// `1`
6109    RoundDown,
6110    /// `2`
6111    RoundUp,
6112    /// A value the dictionary does not list.
6113    Unrecognized(&'a str),
6114}
6115
6116impl<'a> RoundingDirection<'a> {
6117    pub fn from_value(value: &'a str) -> Self {
6118        match value {
6119            "0" => Self::RoundToNearest,
6120            "1" => Self::RoundDown,
6121            "2" => Self::RoundUp,
6122            unrecognized => Self::Unrecognized(unrecognized),
6123        }
6124    }
6125
6126    pub fn value(self) -> &'a str {
6127        match self {
6128            Self::RoundToNearest => "0",
6129            Self::RoundDown => "1",
6130            Self::RoundUp => "2",
6131            Self::Unrecognized(value) => value,
6132        }
6133    }
6134}
6135
6136impl<'a> From<&'a str> for RoundingDirection<'a> {
6137    fn from(value: &'a str) -> Self {
6138        Self::from_value(value)
6139    }
6140}
6141
6142/// The values of the `DistribPaymentMethod` (477) field.
6143#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6144pub enum DistribPaymentMethod {
6145    /// `1`
6146    Crest,
6147    /// `2`
6148    Nscc,
6149    /// `3`
6150    Euroclear,
6151    /// `4`
6152    Clearstream,
6153    /// `5`
6154    Cheque,
6155    /// `6`
6156    TelegraphicTransfer,
6157    /// `7`
6158    FedWire,
6159    /// `8`
6160    DirectCredit,
6161    /// `9`
6162    AchCredit,
6163    /// `10`
6164    Bpay,
6165    /// `11`
6166    HighValueClearingSystemHvacs,
6167    /// `12`
6168    ReinvestInFund,
6169    /// A value the dictionary does not list.
6170    Unrecognized(i64),
6171}
6172
6173impl DistribPaymentMethod {
6174    pub fn from_value(value: i64) -> Self {
6175        match value {
6176            1 => Self::Crest,
6177            2 => Self::Nscc,
6178            3 => Self::Euroclear,
6179            4 => Self::Clearstream,
6180            5 => Self::Cheque,
6181            6 => Self::TelegraphicTransfer,
6182            7 => Self::FedWire,
6183            8 => Self::DirectCredit,
6184            9 => Self::AchCredit,
6185            10 => Self::Bpay,
6186            11 => Self::HighValueClearingSystemHvacs,
6187            12 => Self::ReinvestInFund,
6188            unrecognized => Self::Unrecognized(unrecognized),
6189        }
6190    }
6191
6192    pub fn value(self) -> i64 {
6193        match self {
6194            Self::Crest => 1,
6195            Self::Nscc => 2,
6196            Self::Euroclear => 3,
6197            Self::Clearstream => 4,
6198            Self::Cheque => 5,
6199            Self::TelegraphicTransfer => 6,
6200            Self::FedWire => 7,
6201            Self::DirectCredit => 8,
6202            Self::AchCredit => 9,
6203            Self::Bpay => 10,
6204            Self::HighValueClearingSystemHvacs => 11,
6205            Self::ReinvestInFund => 12,
6206            Self::Unrecognized(value) => value,
6207        }
6208    }
6209}
6210
6211/// The values of the `CancellationRights` (480) field.
6212#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6213pub enum CancellationRights<'a> {
6214    /// `Y`
6215    Yes,
6216    /// `N`
6217    NoExecutionOnly,
6218    /// `M`
6219    NoWaiverAgreement,
6220    /// `O`
6221    NoInstitutional,
6222    /// A value the dictionary does not list.
6223    Unrecognized(&'a str),
6224}
6225
6226impl<'a> CancellationRights<'a> {
6227    pub fn from_value(value: &'a str) -> Self {
6228        match value {
6229            "Y" => Self::Yes,
6230            "N" => Self::NoExecutionOnly,
6231            "M" => Self::NoWaiverAgreement,
6232            "O" => Self::NoInstitutional,
6233            unrecognized => Self::Unrecognized(unrecognized),
6234        }
6235    }
6236
6237    pub fn value(self) -> &'a str {
6238        match self {
6239            Self::Yes => "Y",
6240            Self::NoExecutionOnly => "N",
6241            Self::NoWaiverAgreement => "M",
6242            Self::NoInstitutional => "O",
6243            Self::Unrecognized(value) => value,
6244        }
6245    }
6246}
6247
6248impl<'a> From<&'a str> for CancellationRights<'a> {
6249    fn from(value: &'a str) -> Self {
6250        Self::from_value(value)
6251    }
6252}
6253
6254/// The values of the `MoneyLaunderingStatus` (481) field.
6255#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6256pub enum MoneyLaunderingStatus<'a> {
6257    /// `Y`
6258    Passed,
6259    /// `N`
6260    NotChecked,
6261    /// `1`
6262    ExemptBelowLimit,
6263    /// `2`
6264    ExemptMoneyType,
6265    /// `3`
6266    ExemptAuthorised,
6267    /// A value the dictionary does not list.
6268    Unrecognized(&'a str),
6269}
6270
6271impl<'a> MoneyLaunderingStatus<'a> {
6272    pub fn from_value(value: &'a str) -> Self {
6273        match value {
6274            "Y" => Self::Passed,
6275            "N" => Self::NotChecked,
6276            "1" => Self::ExemptBelowLimit,
6277            "2" => Self::ExemptMoneyType,
6278            "3" => Self::ExemptAuthorised,
6279            unrecognized => Self::Unrecognized(unrecognized),
6280        }
6281    }
6282
6283    pub fn value(self) -> &'a str {
6284        match self {
6285            Self::Passed => "Y",
6286            Self::NotChecked => "N",
6287            Self::ExemptBelowLimit => "1",
6288            Self::ExemptMoneyType => "2",
6289            Self::ExemptAuthorised => "3",
6290            Self::Unrecognized(value) => value,
6291        }
6292    }
6293}
6294
6295impl<'a> From<&'a str> for MoneyLaunderingStatus<'a> {
6296    fn from(value: &'a str) -> Self {
6297        Self::from_value(value)
6298    }
6299}
6300
6301/// The values of the `ExecPriceType` (484) field.
6302#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6303pub enum ExecPriceType<'a> {
6304    /// `B`
6305    BidPrice,
6306    /// `C`
6307    CreationPrice,
6308    /// `D`
6309    CreationPricePlusAdjustmentPercent,
6310    /// `E`
6311    CreationPricePlusAdjustmentAmount,
6312    /// `O`
6313    OfferPrice,
6314    /// `P`
6315    OfferPriceMinusAdjustmentPercent,
6316    /// `Q`
6317    OfferPriceMinusAdjustmentAmount,
6318    /// `S`
6319    SinglePrice,
6320    /// A value the dictionary does not list.
6321    Unrecognized(&'a str),
6322}
6323
6324impl<'a> ExecPriceType<'a> {
6325    pub fn from_value(value: &'a str) -> Self {
6326        match value {
6327            "B" => Self::BidPrice,
6328            "C" => Self::CreationPrice,
6329            "D" => Self::CreationPricePlusAdjustmentPercent,
6330            "E" => Self::CreationPricePlusAdjustmentAmount,
6331            "O" => Self::OfferPrice,
6332            "P" => Self::OfferPriceMinusAdjustmentPercent,
6333            "Q" => Self::OfferPriceMinusAdjustmentAmount,
6334            "S" => Self::SinglePrice,
6335            unrecognized => Self::Unrecognized(unrecognized),
6336        }
6337    }
6338
6339    pub fn value(self) -> &'a str {
6340        match self {
6341            Self::BidPrice => "B",
6342            Self::CreationPrice => "C",
6343            Self::CreationPricePlusAdjustmentPercent => "D",
6344            Self::CreationPricePlusAdjustmentAmount => "E",
6345            Self::OfferPrice => "O",
6346            Self::OfferPriceMinusAdjustmentPercent => "P",
6347            Self::OfferPriceMinusAdjustmentAmount => "Q",
6348            Self::SinglePrice => "S",
6349            Self::Unrecognized(value) => value,
6350        }
6351    }
6352}
6353
6354impl<'a> From<&'a str> for ExecPriceType<'a> {
6355    fn from(value: &'a str) -> Self {
6356        Self::from_value(value)
6357    }
6358}
6359
6360/// The values of the `PaymentMethod` (492) field.
6361#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6362pub enum PaymentMethod {
6363    /// `1`
6364    Crest,
6365    /// `2`
6366    Nscc,
6367    /// `3`
6368    Euroclear,
6369    /// `4`
6370    Clearstream,
6371    /// `5`
6372    Cheque,
6373    /// `6`
6374    TelegraphicTransfer,
6375    /// `7`
6376    FedWire,
6377    /// `8`
6378    DebitCard,
6379    /// `9`
6380    DirectDebit,
6381    /// `10`
6382    DirectCredit,
6383    /// `11`
6384    CreditCard,
6385    /// `12`
6386    AchDebit,
6387    /// `13`
6388    AchCredit,
6389    /// `14`
6390    Bpay,
6391    /// `15`
6392    HighValueClearingSystem,
6393    /// A value the dictionary does not list.
6394    Unrecognized(i64),
6395}
6396
6397impl PaymentMethod {
6398    pub fn from_value(value: i64) -> Self {
6399        match value {
6400            1 => Self::Crest,
6401            2 => Self::Nscc,
6402            3 => Self::Euroclear,
6403            4 => Self::Clearstream,
6404            5 => Self::Cheque,
6405            6 => Self::TelegraphicTransfer,
6406            7 => Self::FedWire,
6407            8 => Self::DebitCard,
6408            9 => Self::DirectDebit,
6409            10 => Self::DirectCredit,
6410            11 => Self::CreditCard,
6411            12 => Self::AchDebit,
6412            13 => Self::AchCredit,
6413            14 => Self::Bpay,
6414            15 => Self::HighValueClearingSystem,
6415            unrecognized => Self::Unrecognized(unrecognized),
6416        }
6417    }
6418
6419    pub fn value(self) -> i64 {
6420        match self {
6421            Self::Crest => 1,
6422            Self::Nscc => 2,
6423            Self::Euroclear => 3,
6424            Self::Clearstream => 4,
6425            Self::Cheque => 5,
6426            Self::TelegraphicTransfer => 6,
6427            Self::FedWire => 7,
6428            Self::DebitCard => 8,
6429            Self::DirectDebit => 9,
6430            Self::DirectCredit => 10,
6431            Self::CreditCard => 11,
6432            Self::AchDebit => 12,
6433            Self::AchCredit => 13,
6434            Self::Bpay => 14,
6435            Self::HighValueClearingSystem => 15,
6436            Self::Unrecognized(value) => value,
6437        }
6438    }
6439}
6440
6441/// The values of the `TaxAdvantageType` (495) field.
6442#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6443pub enum TaxAdvantageType {
6444    /// `0`
6445    None,
6446    /// `1`
6447    MaxiIsa,
6448    /// `2`
6449    Tessa,
6450    /// `3`
6451    MiniCashIsa,
6452    /// `4`
6453    MiniStocksAndSharesIsa,
6454    /// `5`
6455    MiniInsuranceIsa,
6456    /// `6`
6457    CurrentYearPayment,
6458    /// `7`
6459    PriorYearPayment,
6460    /// `8`
6461    AssetTransfer,
6462    /// `9`
6463    EmployeePriorYear,
6464    /// `10`
6465    EmployeeCurrentYear,
6466    /// `11`
6467    EmployerPriorYear,
6468    /// `12`
6469    EmployerCurrentYear,
6470    /// `13`
6471    NonFundPrototypeIra,
6472    /// `14`
6473    NonFundQualifiedPlan,
6474    /// `15`
6475    DefinedContributionPlan,
6476    /// `16`
6477    Ira,
6478    /// `17`
6479    IraRollover,
6480    /// `18`
6481    Keogh,
6482    /// `19`
6483    ProfitSharingPlan,
6484    /// `20`
6485    Us401K,
6486    /// `21`
6487    SelfDirectedIra,
6488    /// `22`
6489    Us403b,
6490    /// `23`
6491    Us457,
6492    /// `24`
6493    RothIraPrototype,
6494    /// `25`
6495    RothIraNonPrototype,
6496    /// `26`
6497    RothConversionIraPrototype,
6498    /// `27`
6499    RothConversionIraNonPrototype,
6500    /// `28`
6501    EducationIraPrototype,
6502    /// `29`
6503    EducationIraNonPrototype,
6504    /// A value the dictionary does not list.
6505    Unrecognized(i64),
6506}
6507
6508impl TaxAdvantageType {
6509    pub fn from_value(value: i64) -> Self {
6510        match value {
6511            0 => Self::None,
6512            1 => Self::MaxiIsa,
6513            2 => Self::Tessa,
6514            3 => Self::MiniCashIsa,
6515            4 => Self::MiniStocksAndSharesIsa,
6516            5 => Self::MiniInsuranceIsa,
6517            6 => Self::CurrentYearPayment,
6518            7 => Self::PriorYearPayment,
6519            8 => Self::AssetTransfer,
6520            9 => Self::EmployeePriorYear,
6521            10 => Self::EmployeeCurrentYear,
6522            11 => Self::EmployerPriorYear,
6523            12 => Self::EmployerCurrentYear,
6524            13 => Self::NonFundPrototypeIra,
6525            14 => Self::NonFundQualifiedPlan,
6526            15 => Self::DefinedContributionPlan,
6527            16 => Self::Ira,
6528            17 => Self::IraRollover,
6529            18 => Self::Keogh,
6530            19 => Self::ProfitSharingPlan,
6531            20 => Self::Us401K,
6532            21 => Self::SelfDirectedIra,
6533            22 => Self::Us403b,
6534            23 => Self::Us457,
6535            24 => Self::RothIraPrototype,
6536            25 => Self::RothIraNonPrototype,
6537            26 => Self::RothConversionIraPrototype,
6538            27 => Self::RothConversionIraNonPrototype,
6539            28 => Self::EducationIraPrototype,
6540            29 => Self::EducationIraNonPrototype,
6541            unrecognized => Self::Unrecognized(unrecognized),
6542        }
6543    }
6544
6545    pub fn value(self) -> i64 {
6546        match self {
6547            Self::None => 0,
6548            Self::MaxiIsa => 1,
6549            Self::Tessa => 2,
6550            Self::MiniCashIsa => 3,
6551            Self::MiniStocksAndSharesIsa => 4,
6552            Self::MiniInsuranceIsa => 5,
6553            Self::CurrentYearPayment => 6,
6554            Self::PriorYearPayment => 7,
6555            Self::AssetTransfer => 8,
6556            Self::EmployeePriorYear => 9,
6557            Self::EmployeeCurrentYear => 10,
6558            Self::EmployerPriorYear => 11,
6559            Self::EmployerCurrentYear => 12,
6560            Self::NonFundPrototypeIra => 13,
6561            Self::NonFundQualifiedPlan => 14,
6562            Self::DefinedContributionPlan => 15,
6563            Self::Ira => 16,
6564            Self::IraRollover => 17,
6565            Self::Keogh => 18,
6566            Self::ProfitSharingPlan => 19,
6567            Self::Us401K => 20,
6568            Self::SelfDirectedIra => 21,
6569            Self::Us403b => 22,
6570            Self::Us457 => 23,
6571            Self::RothIraPrototype => 24,
6572            Self::RothIraNonPrototype => 25,
6573            Self::RothConversionIraPrototype => 26,
6574            Self::RothConversionIraNonPrototype => 27,
6575            Self::EducationIraPrototype => 28,
6576            Self::EducationIraNonPrototype => 29,
6577            Self::Unrecognized(value) => value,
6578        }
6579    }
6580}
6581
6582/// The values of the `FundRenewWaiv` (497) field.
6583#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6584pub enum FundRenewWaiv<'a> {
6585    /// `Y`
6586    Yes,
6587    /// `N`
6588    No,
6589    /// A value the dictionary does not list.
6590    Unrecognized(&'a str),
6591}
6592
6593impl<'a> FundRenewWaiv<'a> {
6594    pub fn from_value(value: &'a str) -> Self {
6595        match value {
6596            "Y" => Self::Yes,
6597            "N" => Self::No,
6598            unrecognized => Self::Unrecognized(unrecognized),
6599        }
6600    }
6601
6602    pub fn value(self) -> &'a str {
6603        match self {
6604            Self::Yes => "Y",
6605            Self::No => "N",
6606            Self::Unrecognized(value) => value,
6607        }
6608    }
6609}
6610
6611impl<'a> From<&'a str> for FundRenewWaiv<'a> {
6612    fn from(value: &'a str) -> Self {
6613        Self::from_value(value)
6614    }
6615}
6616
6617/// The values of the `RegistStatus` (506) field.
6618#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6619pub enum RegistStatus<'a> {
6620    /// `A`
6621    Accepted,
6622    /// `R`
6623    Rejected,
6624    /// `H`
6625    Held,
6626    /// `N`
6627    Reminder,
6628    /// A value the dictionary does not list.
6629    Unrecognized(&'a str),
6630}
6631
6632impl<'a> RegistStatus<'a> {
6633    pub fn from_value(value: &'a str) -> Self {
6634        match value {
6635            "A" => Self::Accepted,
6636            "R" => Self::Rejected,
6637            "H" => Self::Held,
6638            "N" => Self::Reminder,
6639            unrecognized => Self::Unrecognized(unrecognized),
6640        }
6641    }
6642
6643    pub fn value(self) -> &'a str {
6644        match self {
6645            Self::Accepted => "A",
6646            Self::Rejected => "R",
6647            Self::Held => "H",
6648            Self::Reminder => "N",
6649            Self::Unrecognized(value) => value,
6650        }
6651    }
6652}
6653
6654impl<'a> From<&'a str> for RegistStatus<'a> {
6655    fn from(value: &'a str) -> Self {
6656        Self::from_value(value)
6657    }
6658}
6659
6660/// The values of the `RegistRejReasonCode` (507) field.
6661#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6662pub enum RegistRejReasonCode {
6663    /// `1`
6664    InvalidAccountType,
6665    /// `2`
6666    InvalidTaxExemptType,
6667    /// `3`
6668    InvalidOwnershipType,
6669    /// `4`
6670    NoRegDetails,
6671    /// `5`
6672    InvalidRegSeqNo,
6673    /// `6`
6674    InvalidRegDetails,
6675    /// `7`
6676    InvalidMailingDetails,
6677    /// `8`
6678    InvalidMailingInstructions,
6679    /// `9`
6680    InvalidInvestorId,
6681    /// `10`
6682    InvalidInvestorIdSource,
6683    /// `11`
6684    InvalidDateOfBirth,
6685    /// `12`
6686    InvalidCountry,
6687    /// `13`
6688    InvalidDistribInstns,
6689    /// `14`
6690    InvalidPercentage,
6691    /// `15`
6692    InvalidPaymentMethod,
6693    /// `16`
6694    InvalidAccountName,
6695    /// `17`
6696    InvalidAgentCode,
6697    /// `18`
6698    InvalidAccountNum,
6699    /// `99`
6700    Other,
6701    /// A value the dictionary does not list.
6702    Unrecognized(i64),
6703}
6704
6705impl RegistRejReasonCode {
6706    pub fn from_value(value: i64) -> Self {
6707        match value {
6708            1 => Self::InvalidAccountType,
6709            2 => Self::InvalidTaxExemptType,
6710            3 => Self::InvalidOwnershipType,
6711            4 => Self::NoRegDetails,
6712            5 => Self::InvalidRegSeqNo,
6713            6 => Self::InvalidRegDetails,
6714            7 => Self::InvalidMailingDetails,
6715            8 => Self::InvalidMailingInstructions,
6716            9 => Self::InvalidInvestorId,
6717            10 => Self::InvalidInvestorIdSource,
6718            11 => Self::InvalidDateOfBirth,
6719            12 => Self::InvalidCountry,
6720            13 => Self::InvalidDistribInstns,
6721            14 => Self::InvalidPercentage,
6722            15 => Self::InvalidPaymentMethod,
6723            16 => Self::InvalidAccountName,
6724            17 => Self::InvalidAgentCode,
6725            18 => Self::InvalidAccountNum,
6726            99 => Self::Other,
6727            unrecognized => Self::Unrecognized(unrecognized),
6728        }
6729    }
6730
6731    pub fn value(self) -> i64 {
6732        match self {
6733            Self::InvalidAccountType => 1,
6734            Self::InvalidTaxExemptType => 2,
6735            Self::InvalidOwnershipType => 3,
6736            Self::NoRegDetails => 4,
6737            Self::InvalidRegSeqNo => 5,
6738            Self::InvalidRegDetails => 6,
6739            Self::InvalidMailingDetails => 7,
6740            Self::InvalidMailingInstructions => 8,
6741            Self::InvalidInvestorId => 9,
6742            Self::InvalidInvestorIdSource => 10,
6743            Self::InvalidDateOfBirth => 11,
6744            Self::InvalidCountry => 12,
6745            Self::InvalidDistribInstns => 13,
6746            Self::InvalidPercentage => 14,
6747            Self::InvalidPaymentMethod => 15,
6748            Self::InvalidAccountName => 16,
6749            Self::InvalidAgentCode => 17,
6750            Self::InvalidAccountNum => 18,
6751            Self::Other => 99,
6752            Self::Unrecognized(value) => value,
6753        }
6754    }
6755}
6756
6757/// The values of the `RegistTransType` (514) field.
6758#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6759pub enum RegistTransType<'a> {
6760    /// `0`
6761    New,
6762    /// `1`
6763    Replace,
6764    /// `2`
6765    Cancel,
6766    /// A value the dictionary does not list.
6767    Unrecognized(&'a str),
6768}
6769
6770impl<'a> RegistTransType<'a> {
6771    pub fn from_value(value: &'a str) -> Self {
6772        match value {
6773            "0" => Self::New,
6774            "1" => Self::Replace,
6775            "2" => Self::Cancel,
6776            unrecognized => Self::Unrecognized(unrecognized),
6777        }
6778    }
6779
6780    pub fn value(self) -> &'a str {
6781        match self {
6782            Self::New => "0",
6783            Self::Replace => "1",
6784            Self::Cancel => "2",
6785            Self::Unrecognized(value) => value,
6786        }
6787    }
6788}
6789
6790impl<'a> From<&'a str> for RegistTransType<'a> {
6791    fn from(value: &'a str) -> Self {
6792        Self::from_value(value)
6793    }
6794}
6795
6796/// The values of the `OwnershipType` (517) field.
6797#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6798pub enum OwnershipType<'a> {
6799    /// `J`
6800    JointInvestors,
6801    /// `T`
6802    TenantsInCommon,
6803    /// `2`
6804    JointTrustees,
6805    /// A value the dictionary does not list.
6806    Unrecognized(&'a str),
6807}
6808
6809impl<'a> OwnershipType<'a> {
6810    pub fn from_value(value: &'a str) -> Self {
6811        match value {
6812            "J" => Self::JointInvestors,
6813            "T" => Self::TenantsInCommon,
6814            "2" => Self::JointTrustees,
6815            unrecognized => Self::Unrecognized(unrecognized),
6816        }
6817    }
6818
6819    pub fn value(self) -> &'a str {
6820        match self {
6821            Self::JointInvestors => "J",
6822            Self::TenantsInCommon => "T",
6823            Self::JointTrustees => "2",
6824            Self::Unrecognized(value) => value,
6825        }
6826    }
6827}
6828
6829impl<'a> From<&'a str> for OwnershipType<'a> {
6830    fn from(value: &'a str) -> Self {
6831        Self::from_value(value)
6832    }
6833}
6834
6835/// The values of the `ContAmtType` (519) field.
6836#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6837pub enum ContAmtType {
6838    /// `1`
6839    CommissionAmount,
6840    /// `2`
6841    CommissionPercent,
6842    /// `3`
6843    InitialChargeAmount,
6844    /// `4`
6845    InitialChargePercent,
6846    /// `5`
6847    DiscountAmount,
6848    /// `6`
6849    DiscountPercent,
6850    /// `7`
6851    DilutionLevyAmount,
6852    /// `8`
6853    DilutionLevyPercent,
6854    /// `9`
6855    ExitChargeAmount,
6856    /// `10`
6857    ExitChargePercent,
6858    /// `11`
6859    FundBasedRenewalCommissionPercent,
6860    /// `12`
6861    ProjectedFundValue,
6862    /// `13`
6863    FundBasedRenewalCommissionOnOrder,
6864    /// `14`
6865    FundBasedRenewalCommissionOnFund,
6866    /// `15`
6867    NetSettlementAmount,
6868    /// A value the dictionary does not list.
6869    Unrecognized(i64),
6870}
6871
6872impl ContAmtType {
6873    pub fn from_value(value: i64) -> Self {
6874        match value {
6875            1 => Self::CommissionAmount,
6876            2 => Self::CommissionPercent,
6877            3 => Self::InitialChargeAmount,
6878            4 => Self::InitialChargePercent,
6879            5 => Self::DiscountAmount,
6880            6 => Self::DiscountPercent,
6881            7 => Self::DilutionLevyAmount,
6882            8 => Self::DilutionLevyPercent,
6883            9 => Self::ExitChargeAmount,
6884            10 => Self::ExitChargePercent,
6885            11 => Self::FundBasedRenewalCommissionPercent,
6886            12 => Self::ProjectedFundValue,
6887            13 => Self::FundBasedRenewalCommissionOnOrder,
6888            14 => Self::FundBasedRenewalCommissionOnFund,
6889            15 => Self::NetSettlementAmount,
6890            unrecognized => Self::Unrecognized(unrecognized),
6891        }
6892    }
6893
6894    pub fn value(self) -> i64 {
6895        match self {
6896            Self::CommissionAmount => 1,
6897            Self::CommissionPercent => 2,
6898            Self::InitialChargeAmount => 3,
6899            Self::InitialChargePercent => 4,
6900            Self::DiscountAmount => 5,
6901            Self::DiscountPercent => 6,
6902            Self::DilutionLevyAmount => 7,
6903            Self::DilutionLevyPercent => 8,
6904            Self::ExitChargeAmount => 9,
6905            Self::ExitChargePercent => 10,
6906            Self::FundBasedRenewalCommissionPercent => 11,
6907            Self::ProjectedFundValue => 12,
6908            Self::FundBasedRenewalCommissionOnOrder => 13,
6909            Self::FundBasedRenewalCommissionOnFund => 14,
6910            Self::NetSettlementAmount => 15,
6911            Self::Unrecognized(value) => value,
6912        }
6913    }
6914}
6915
6916/// The values of the `OwnerType` (522) field.
6917#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6918pub enum OwnerType {
6919    /// `1`
6920    IndividualInvestor,
6921    /// `2`
6922    PublicCompany,
6923    /// `3`
6924    PrivateCompany,
6925    /// `4`
6926    IndividualTrustee,
6927    /// `5`
6928    CompanyTrustee,
6929    /// `6`
6930    PensionPlan,
6931    /// `7`
6932    CustodianUnderGiftsToMinorsAct,
6933    /// `8`
6934    Trusts,
6935    /// `9`
6936    Fiduciaries,
6937    /// `10`
6938    NetworkingSubAccount,
6939    /// `11`
6940    NonProfitOrganization,
6941    /// `12`
6942    CorporateBody,
6943    /// `13`
6944    Nominee,
6945    /// A value the dictionary does not list.
6946    Unrecognized(i64),
6947}
6948
6949impl OwnerType {
6950    pub fn from_value(value: i64) -> Self {
6951        match value {
6952            1 => Self::IndividualInvestor,
6953            2 => Self::PublicCompany,
6954            3 => Self::PrivateCompany,
6955            4 => Self::IndividualTrustee,
6956            5 => Self::CompanyTrustee,
6957            6 => Self::PensionPlan,
6958            7 => Self::CustodianUnderGiftsToMinorsAct,
6959            8 => Self::Trusts,
6960            9 => Self::Fiduciaries,
6961            10 => Self::NetworkingSubAccount,
6962            11 => Self::NonProfitOrganization,
6963            12 => Self::CorporateBody,
6964            13 => Self::Nominee,
6965            unrecognized => Self::Unrecognized(unrecognized),
6966        }
6967    }
6968
6969    pub fn value(self) -> i64 {
6970        match self {
6971            Self::IndividualInvestor => 1,
6972            Self::PublicCompany => 2,
6973            Self::PrivateCompany => 3,
6974            Self::IndividualTrustee => 4,
6975            Self::CompanyTrustee => 5,
6976            Self::PensionPlan => 6,
6977            Self::CustodianUnderGiftsToMinorsAct => 7,
6978            Self::Trusts => 8,
6979            Self::Fiduciaries => 9,
6980            Self::NetworkingSubAccount => 10,
6981            Self::NonProfitOrganization => 11,
6982            Self::CorporateBody => 12,
6983            Self::Nominee => 13,
6984            Self::Unrecognized(value) => value,
6985        }
6986    }
6987}
6988
6989/// The values of the `OrderCapacity` (528) field.
6990#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
6991pub enum OrderCapacity<'a> {
6992    /// `A`
6993    Agency,
6994    /// `G`
6995    Proprietary,
6996    /// `I`
6997    Individual,
6998    /// `P`
6999    Principal,
7000    /// `R`
7001    RisklessPrincipal,
7002    /// `W`
7003    AgentForOtherMember,
7004    /// A value the dictionary does not list.
7005    Unrecognized(&'a str),
7006}
7007
7008impl<'a> OrderCapacity<'a> {
7009    pub fn from_value(value: &'a str) -> Self {
7010        match value {
7011            "A" => Self::Agency,
7012            "G" => Self::Proprietary,
7013            "I" => Self::Individual,
7014            "P" => Self::Principal,
7015            "R" => Self::RisklessPrincipal,
7016            "W" => Self::AgentForOtherMember,
7017            unrecognized => Self::Unrecognized(unrecognized),
7018        }
7019    }
7020
7021    pub fn value(self) -> &'a str {
7022        match self {
7023            Self::Agency => "A",
7024            Self::Proprietary => "G",
7025            Self::Individual => "I",
7026            Self::Principal => "P",
7027            Self::RisklessPrincipal => "R",
7028            Self::AgentForOtherMember => "W",
7029            Self::Unrecognized(value) => value,
7030        }
7031    }
7032}
7033
7034impl<'a> From<&'a str> for OrderCapacity<'a> {
7035    fn from(value: &'a str) -> Self {
7036        Self::from_value(value)
7037    }
7038}
7039
7040/// The values of the `OrderRestrictions` (529) field.
7041#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7042pub enum OrderRestrictions<'a> {
7043    /// `1`
7044    ProgramTrade,
7045    /// `2`
7046    IndexArbitrage,
7047    /// `3`
7048    NonIndexArbitrage,
7049    /// `4`
7050    CompetingMarketMaker,
7051    /// `5`
7052    ActingAsMarketMakerOrSpecialistInSecurity,
7053    /// `6`
7054    ActingAsMarketMakerOrSpecialistInUnderlying,
7055    /// `7`
7056    ForeignEntity,
7057    /// `8`
7058    ExternalMarketParticipant,
7059    /// `9`
7060    ExternalInterConnectedMarketLinkage,
7061    /// `A`
7062    RisklessArbitrage,
7063    /// A value the dictionary does not list.
7064    Unrecognized(&'a str),
7065}
7066
7067impl<'a> OrderRestrictions<'a> {
7068    pub fn from_value(value: &'a str) -> Self {
7069        match value {
7070            "1" => Self::ProgramTrade,
7071            "2" => Self::IndexArbitrage,
7072            "3" => Self::NonIndexArbitrage,
7073            "4" => Self::CompetingMarketMaker,
7074            "5" => Self::ActingAsMarketMakerOrSpecialistInSecurity,
7075            "6" => Self::ActingAsMarketMakerOrSpecialistInUnderlying,
7076            "7" => Self::ForeignEntity,
7077            "8" => Self::ExternalMarketParticipant,
7078            "9" => Self::ExternalInterConnectedMarketLinkage,
7079            "A" => Self::RisklessArbitrage,
7080            unrecognized => Self::Unrecognized(unrecognized),
7081        }
7082    }
7083
7084    pub fn value(self) -> &'a str {
7085        match self {
7086            Self::ProgramTrade => "1",
7087            Self::IndexArbitrage => "2",
7088            Self::NonIndexArbitrage => "3",
7089            Self::CompetingMarketMaker => "4",
7090            Self::ActingAsMarketMakerOrSpecialistInSecurity => "5",
7091            Self::ActingAsMarketMakerOrSpecialistInUnderlying => "6",
7092            Self::ForeignEntity => "7",
7093            Self::ExternalMarketParticipant => "8",
7094            Self::ExternalInterConnectedMarketLinkage => "9",
7095            Self::RisklessArbitrage => "A",
7096            Self::Unrecognized(value) => value,
7097        }
7098    }
7099}
7100
7101impl<'a> From<&'a str> for OrderRestrictions<'a> {
7102    fn from(value: &'a str) -> Self {
7103        Self::from_value(value)
7104    }
7105}
7106
7107/// The values of the `MassCancelRequestType` (530) field.
7108#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7109pub enum MassCancelRequestType<'a> {
7110    /// `1`
7111    CancelOrdersForASecurity,
7112    /// `2`
7113    CancelOrdersForAnUnderlyingSecurity,
7114    /// `3`
7115    CancelOrdersForAProduct,
7116    /// `4`
7117    CancelOrdersForAcfiCode,
7118    /// `5`
7119    CancelOrdersForASecurityType,
7120    /// `6`
7121    CancelOrdersForATradingSession,
7122    /// `7`
7123    CancelAllOrders,
7124    /// A value the dictionary does not list.
7125    Unrecognized(&'a str),
7126}
7127
7128impl<'a> MassCancelRequestType<'a> {
7129    pub fn from_value(value: &'a str) -> Self {
7130        match value {
7131            "1" => Self::CancelOrdersForASecurity,
7132            "2" => Self::CancelOrdersForAnUnderlyingSecurity,
7133            "3" => Self::CancelOrdersForAProduct,
7134            "4" => Self::CancelOrdersForAcfiCode,
7135            "5" => Self::CancelOrdersForASecurityType,
7136            "6" => Self::CancelOrdersForATradingSession,
7137            "7" => Self::CancelAllOrders,
7138            unrecognized => Self::Unrecognized(unrecognized),
7139        }
7140    }
7141
7142    pub fn value(self) -> &'a str {
7143        match self {
7144            Self::CancelOrdersForASecurity => "1",
7145            Self::CancelOrdersForAnUnderlyingSecurity => "2",
7146            Self::CancelOrdersForAProduct => "3",
7147            Self::CancelOrdersForAcfiCode => "4",
7148            Self::CancelOrdersForASecurityType => "5",
7149            Self::CancelOrdersForATradingSession => "6",
7150            Self::CancelAllOrders => "7",
7151            Self::Unrecognized(value) => value,
7152        }
7153    }
7154}
7155
7156impl<'a> From<&'a str> for MassCancelRequestType<'a> {
7157    fn from(value: &'a str) -> Self {
7158        Self::from_value(value)
7159    }
7160}
7161
7162/// The values of the `MassCancelResponse` (531) field.
7163#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7164pub enum MassCancelResponse<'a> {
7165    /// `0`
7166    CancelRequestRejected,
7167    /// `1`
7168    CancelOrdersForASecurity,
7169    /// `2`
7170    CancelOrdersForAnUnderlyingSecurity,
7171    /// `3`
7172    CancelOrdersForAProduct,
7173    /// `4`
7174    CancelOrdersForAcfiCode,
7175    /// `5`
7176    CancelOrdersForASecurityType,
7177    /// `6`
7178    CancelOrdersForATradingSession,
7179    /// `7`
7180    CancelAllOrders,
7181    /// A value the dictionary does not list.
7182    Unrecognized(&'a str),
7183}
7184
7185impl<'a> MassCancelResponse<'a> {
7186    pub fn from_value(value: &'a str) -> Self {
7187        match value {
7188            "0" => Self::CancelRequestRejected,
7189            "1" => Self::CancelOrdersForASecurity,
7190            "2" => Self::CancelOrdersForAnUnderlyingSecurity,
7191            "3" => Self::CancelOrdersForAProduct,
7192            "4" => Self::CancelOrdersForAcfiCode,
7193            "5" => Self::CancelOrdersForASecurityType,
7194            "6" => Self::CancelOrdersForATradingSession,
7195            "7" => Self::CancelAllOrders,
7196            unrecognized => Self::Unrecognized(unrecognized),
7197        }
7198    }
7199
7200    pub fn value(self) -> &'a str {
7201        match self {
7202            Self::CancelRequestRejected => "0",
7203            Self::CancelOrdersForASecurity => "1",
7204            Self::CancelOrdersForAnUnderlyingSecurity => "2",
7205            Self::CancelOrdersForAProduct => "3",
7206            Self::CancelOrdersForAcfiCode => "4",
7207            Self::CancelOrdersForASecurityType => "5",
7208            Self::CancelOrdersForATradingSession => "6",
7209            Self::CancelAllOrders => "7",
7210            Self::Unrecognized(value) => value,
7211        }
7212    }
7213}
7214
7215impl<'a> From<&'a str> for MassCancelResponse<'a> {
7216    fn from(value: &'a str) -> Self {
7217        Self::from_value(value)
7218    }
7219}
7220
7221/// The values of the `MassCancelRejectReason` (532) field.
7222#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7223pub enum MassCancelRejectReason<'a> {
7224    /// `0`
7225    MassCancelNotSupported,
7226    /// `1`
7227    InvalidOrUnknownSecurity,
7228    /// `2`
7229    InvalidOrUnkownUnderlyingSecurity,
7230    /// `3`
7231    InvalidOrUnknownProduct,
7232    /// `4`
7233    InvalidOrUnknownCfiCode,
7234    /// `5`
7235    InvalidOrUnknownSecurityType,
7236    /// `6`
7237    InvalidOrUnknownTradingSession,
7238    /// `99`
7239    Other,
7240    /// A value the dictionary does not list.
7241    Unrecognized(&'a str),
7242}
7243
7244impl<'a> MassCancelRejectReason<'a> {
7245    pub fn from_value(value: &'a str) -> Self {
7246        match value {
7247            "0" => Self::MassCancelNotSupported,
7248            "1" => Self::InvalidOrUnknownSecurity,
7249            "2" => Self::InvalidOrUnkownUnderlyingSecurity,
7250            "3" => Self::InvalidOrUnknownProduct,
7251            "4" => Self::InvalidOrUnknownCfiCode,
7252            "5" => Self::InvalidOrUnknownSecurityType,
7253            "6" => Self::InvalidOrUnknownTradingSession,
7254            "99" => Self::Other,
7255            unrecognized => Self::Unrecognized(unrecognized),
7256        }
7257    }
7258
7259    pub fn value(self) -> &'a str {
7260        match self {
7261            Self::MassCancelNotSupported => "0",
7262            Self::InvalidOrUnknownSecurity => "1",
7263            Self::InvalidOrUnkownUnderlyingSecurity => "2",
7264            Self::InvalidOrUnknownProduct => "3",
7265            Self::InvalidOrUnknownCfiCode => "4",
7266            Self::InvalidOrUnknownSecurityType => "5",
7267            Self::InvalidOrUnknownTradingSession => "6",
7268            Self::Other => "99",
7269            Self::Unrecognized(value) => value,
7270        }
7271    }
7272}
7273
7274impl<'a> From<&'a str> for MassCancelRejectReason<'a> {
7275    fn from(value: &'a str) -> Self {
7276        Self::from_value(value)
7277    }
7278}
7279
7280/// The values of the `QuoteType` (537) field.
7281#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7282pub enum QuoteType {
7283    /// `0`
7284    Indicative,
7285    /// `1`
7286    Tradeable,
7287    /// `2`
7288    RestrictedTradeable,
7289    /// `3`
7290    Counter,
7291    /// A value the dictionary does not list.
7292    Unrecognized(i64),
7293}
7294
7295impl QuoteType {
7296    pub fn from_value(value: i64) -> Self {
7297        match value {
7298            0 => Self::Indicative,
7299            1 => Self::Tradeable,
7300            2 => Self::RestrictedTradeable,
7301            3 => Self::Counter,
7302            unrecognized => Self::Unrecognized(unrecognized),
7303        }
7304    }
7305
7306    pub fn value(self) -> i64 {
7307        match self {
7308            Self::Indicative => 0,
7309            Self::Tradeable => 1,
7310            Self::RestrictedTradeable => 2,
7311            Self::Counter => 3,
7312            Self::Unrecognized(value) => value,
7313        }
7314    }
7315}
7316
7317/// The values of the `CashMargin` (544) field.
7318#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7319pub enum CashMargin<'a> {
7320    /// `1`
7321    Cash,
7322    /// `2`
7323    MarginOpen,
7324    /// `3`
7325    MarginClose,
7326    /// A value the dictionary does not list.
7327    Unrecognized(&'a str),
7328}
7329
7330impl<'a> CashMargin<'a> {
7331    pub fn from_value(value: &'a str) -> Self {
7332        match value {
7333            "1" => Self::Cash,
7334            "2" => Self::MarginOpen,
7335            "3" => Self::MarginClose,
7336            unrecognized => Self::Unrecognized(unrecognized),
7337        }
7338    }
7339
7340    pub fn value(self) -> &'a str {
7341        match self {
7342            Self::Cash => "1",
7343            Self::MarginOpen => "2",
7344            Self::MarginClose => "3",
7345            Self::Unrecognized(value) => value,
7346        }
7347    }
7348}
7349
7350impl<'a> From<&'a str> for CashMargin<'a> {
7351    fn from(value: &'a str) -> Self {
7352        Self::from_value(value)
7353    }
7354}
7355
7356/// The values of the `Scope` (546) field.
7357#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7358pub enum Scope<'a> {
7359    /// `1`
7360    LocalMarket,
7361    /// `2`
7362    National,
7363    /// `3`
7364    Global,
7365    /// A value the dictionary does not list.
7366    Unrecognized(&'a str),
7367}
7368
7369impl<'a> Scope<'a> {
7370    pub fn from_value(value: &'a str) -> Self {
7371        match value {
7372            "1" => Self::LocalMarket,
7373            "2" => Self::National,
7374            "3" => Self::Global,
7375            unrecognized => Self::Unrecognized(unrecognized),
7376        }
7377    }
7378
7379    pub fn value(self) -> &'a str {
7380        match self {
7381            Self::LocalMarket => "1",
7382            Self::National => "2",
7383            Self::Global => "3",
7384            Self::Unrecognized(value) => value,
7385        }
7386    }
7387}
7388
7389impl<'a> From<&'a str> for Scope<'a> {
7390    fn from(value: &'a str) -> Self {
7391        Self::from_value(value)
7392    }
7393}
7394
7395/// The values of the `CrossType` (549) field.
7396#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7397pub enum CrossType {
7398    /// `1`
7399    CrossAon,
7400    /// `2`
7401    CrossIoc,
7402    /// `3`
7403    CrossOneSide,
7404    /// `4`
7405    CrossSamePrice,
7406    /// A value the dictionary does not list.
7407    Unrecognized(i64),
7408}
7409
7410impl CrossType {
7411    pub fn from_value(value: i64) -> Self {
7412        match value {
7413            1 => Self::CrossAon,
7414            2 => Self::CrossIoc,
7415            3 => Self::CrossOneSide,
7416            4 => Self::CrossSamePrice,
7417            unrecognized => Self::Unrecognized(unrecognized),
7418        }
7419    }
7420
7421    pub fn value(self) -> i64 {
7422        match self {
7423            Self::CrossAon => 1,
7424            Self::CrossIoc => 2,
7425            Self::CrossOneSide => 3,
7426            Self::CrossSamePrice => 4,
7427            Self::Unrecognized(value) => value,
7428        }
7429    }
7430}
7431
7432/// The values of the `CrossPrioritization` (550) field.
7433#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7434pub enum CrossPrioritization {
7435    /// `0`
7436    None,
7437    /// `1`
7438    BuySideIsPrioritized,
7439    /// `2`
7440    SellSideIsPrioritized,
7441    /// A value the dictionary does not list.
7442    Unrecognized(i64),
7443}
7444
7445impl CrossPrioritization {
7446    pub fn from_value(value: i64) -> Self {
7447        match value {
7448            0 => Self::None,
7449            1 => Self::BuySideIsPrioritized,
7450            2 => Self::SellSideIsPrioritized,
7451            unrecognized => Self::Unrecognized(unrecognized),
7452        }
7453    }
7454
7455    pub fn value(self) -> i64 {
7456        match self {
7457            Self::None => 0,
7458            Self::BuySideIsPrioritized => 1,
7459            Self::SellSideIsPrioritized => 2,
7460            Self::Unrecognized(value) => value,
7461        }
7462    }
7463}
7464
7465/// The values of the `NoSides` (552) field.
7466#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7467pub enum NoSides {
7468    /// `1`
7469    OneSide,
7470    /// `2`
7471    BothSides,
7472    /// A value the dictionary does not list.
7473    Unrecognized(i64),
7474}
7475
7476impl NoSides {
7477    pub fn from_value(value: i64) -> Self {
7478        match value {
7479            1 => Self::OneSide,
7480            2 => Self::BothSides,
7481            unrecognized => Self::Unrecognized(unrecognized),
7482        }
7483    }
7484
7485    pub fn value(self) -> i64 {
7486        match self {
7487            Self::OneSide => 1,
7488            Self::BothSides => 2,
7489            Self::Unrecognized(value) => value,
7490        }
7491    }
7492}
7493
7494/// The values of the `SecurityListRequestType` (559) field.
7495#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7496pub enum SecurityListRequestType {
7497    /// `0`
7498    Symbol,
7499    /// `1`
7500    SecurityTypeAnd,
7501    /// `2`
7502    Product,
7503    /// `3`
7504    TradingSessionId,
7505    /// `4`
7506    AllSecurities,
7507    /// A value the dictionary does not list.
7508    Unrecognized(i64),
7509}
7510
7511impl SecurityListRequestType {
7512    pub fn from_value(value: i64) -> Self {
7513        match value {
7514            0 => Self::Symbol,
7515            1 => Self::SecurityTypeAnd,
7516            2 => Self::Product,
7517            3 => Self::TradingSessionId,
7518            4 => Self::AllSecurities,
7519            unrecognized => Self::Unrecognized(unrecognized),
7520        }
7521    }
7522
7523    pub fn value(self) -> i64 {
7524        match self {
7525            Self::Symbol => 0,
7526            Self::SecurityTypeAnd => 1,
7527            Self::Product => 2,
7528            Self::TradingSessionId => 3,
7529            Self::AllSecurities => 4,
7530            Self::Unrecognized(value) => value,
7531        }
7532    }
7533}
7534
7535/// The values of the `SecurityRequestResult` (560) field.
7536#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7537pub enum SecurityRequestResult {
7538    /// `0`
7539    ValidRequest,
7540    /// `1`
7541    InvalidOrUnsupportedRequest,
7542    /// `2`
7543    NoInstrumentsFound,
7544    /// `3`
7545    NotAuthorizedToRetrieveInstrumentData,
7546    /// `4`
7547    InstrumentDataTemporarilyUnavailable,
7548    /// `5`
7549    RequestForInstrumentDataNotSupported,
7550    /// A value the dictionary does not list.
7551    Unrecognized(i64),
7552}
7553
7554impl SecurityRequestResult {
7555    pub fn from_value(value: i64) -> Self {
7556        match value {
7557            0 => Self::ValidRequest,
7558            1 => Self::InvalidOrUnsupportedRequest,
7559            2 => Self::NoInstrumentsFound,
7560            3 => Self::NotAuthorizedToRetrieveInstrumentData,
7561            4 => Self::InstrumentDataTemporarilyUnavailable,
7562            5 => Self::RequestForInstrumentDataNotSupported,
7563            unrecognized => Self::Unrecognized(unrecognized),
7564        }
7565    }
7566
7567    pub fn value(self) -> i64 {
7568        match self {
7569            Self::ValidRequest => 0,
7570            Self::InvalidOrUnsupportedRequest => 1,
7571            Self::NoInstrumentsFound => 2,
7572            Self::NotAuthorizedToRetrieveInstrumentData => 3,
7573            Self::InstrumentDataTemporarilyUnavailable => 4,
7574            Self::RequestForInstrumentDataNotSupported => 5,
7575            Self::Unrecognized(value) => value,
7576        }
7577    }
7578}
7579
7580/// The values of the `MultiLegRptTypeReq` (563) field.
7581#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7582pub enum MultiLegRptTypeReq {
7583    /// `0`
7584    ReportByMulitlegSecurityOnly,
7585    /// `1`
7586    ReportByMultilegSecurityAndInstrumentLegs,
7587    /// `2`
7588    ReportByInstrumentLegsOnly,
7589    /// A value the dictionary does not list.
7590    Unrecognized(i64),
7591}
7592
7593impl MultiLegRptTypeReq {
7594    pub fn from_value(value: i64) -> Self {
7595        match value {
7596            0 => Self::ReportByMulitlegSecurityOnly,
7597            1 => Self::ReportByMultilegSecurityAndInstrumentLegs,
7598            2 => Self::ReportByInstrumentLegsOnly,
7599            unrecognized => Self::Unrecognized(unrecognized),
7600        }
7601    }
7602
7603    pub fn value(self) -> i64 {
7604        match self {
7605            Self::ReportByMulitlegSecurityOnly => 0,
7606            Self::ReportByMultilegSecurityAndInstrumentLegs => 1,
7607            Self::ReportByInstrumentLegsOnly => 2,
7608            Self::Unrecognized(value) => value,
7609        }
7610    }
7611}
7612
7613/// The values of the `TradSesStatusRejReason` (567) field.
7614#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7615pub enum TradSesStatusRejReason {
7616    /// `1`
7617    UnknownOrInvalidTradingSessionId,
7618    /// `99`
7619    Other,
7620    /// A value the dictionary does not list.
7621    Unrecognized(i64),
7622}
7623
7624impl TradSesStatusRejReason {
7625    pub fn from_value(value: i64) -> Self {
7626        match value {
7627            1 => Self::UnknownOrInvalidTradingSessionId,
7628            99 => Self::Other,
7629            unrecognized => Self::Unrecognized(unrecognized),
7630        }
7631    }
7632
7633    pub fn value(self) -> i64 {
7634        match self {
7635            Self::UnknownOrInvalidTradingSessionId => 1,
7636            Self::Other => 99,
7637            Self::Unrecognized(value) => value,
7638        }
7639    }
7640}
7641
7642/// The values of the `TradeRequestType` (569) field.
7643#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7644pub enum TradeRequestType {
7645    /// `0`
7646    AllTrades,
7647    /// `1`
7648    MatchedTradesMatchingCriteria,
7649    /// `2`
7650    UnmatchedTradesThatMatchCriteria,
7651    /// `3`
7652    UnreportedTradesThatMatchCriteria,
7653    /// `4`
7654    AdvisoriesThatMatchCriteria,
7655    /// A value the dictionary does not list.
7656    Unrecognized(i64),
7657}
7658
7659impl TradeRequestType {
7660    pub fn from_value(value: i64) -> Self {
7661        match value {
7662            0 => Self::AllTrades,
7663            1 => Self::MatchedTradesMatchingCriteria,
7664            2 => Self::UnmatchedTradesThatMatchCriteria,
7665            3 => Self::UnreportedTradesThatMatchCriteria,
7666            4 => Self::AdvisoriesThatMatchCriteria,
7667            unrecognized => Self::Unrecognized(unrecognized),
7668        }
7669    }
7670
7671    pub fn value(self) -> i64 {
7672        match self {
7673            Self::AllTrades => 0,
7674            Self::MatchedTradesMatchingCriteria => 1,
7675            Self::UnmatchedTradesThatMatchCriteria => 2,
7676            Self::UnreportedTradesThatMatchCriteria => 3,
7677            Self::AdvisoriesThatMatchCriteria => 4,
7678            Self::Unrecognized(value) => value,
7679        }
7680    }
7681}
7682
7683/// The values of the `MatchStatus` (573) field.
7684#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7685pub enum MatchStatus<'a> {
7686    /// `0`
7687    Compared,
7688    /// `1`
7689    Uncompared,
7690    /// `2`
7691    AdvisoryOrAlert,
7692    /// A value the dictionary does not list.
7693    Unrecognized(&'a str),
7694}
7695
7696impl<'a> MatchStatus<'a> {
7697    pub fn from_value(value: &'a str) -> Self {
7698        match value {
7699            "0" => Self::Compared,
7700            "1" => Self::Uncompared,
7701            "2" => Self::AdvisoryOrAlert,
7702            unrecognized => Self::Unrecognized(unrecognized),
7703        }
7704    }
7705
7706    pub fn value(self) -> &'a str {
7707        match self {
7708            Self::Compared => "0",
7709            Self::Uncompared => "1",
7710            Self::AdvisoryOrAlert => "2",
7711            Self::Unrecognized(value) => value,
7712        }
7713    }
7714}
7715
7716impl<'a> From<&'a str> for MatchStatus<'a> {
7717    fn from(value: &'a str) -> Self {
7718        Self::from_value(value)
7719    }
7720}
7721
7722/// The values of the `MatchType` (574) field.
7723#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7724pub enum MatchType<'a> {
7725    /// `A1`
7726    ExactMatchPlus4BadgesExecTime,
7727    /// `A2`
7728    ExactMatchPlus4Badges,
7729    /// `A3`
7730    ExactMatchPlus2BadgesExecTime,
7731    /// `A4`
7732    ExactMatchPlus2Badges,
7733    /// `A5`
7734    ExactMatchPlusExecTime,
7735    /// `AQ`
7736    StampedAdvisoriesOrSpecialistAccepts,
7737    /// `S1`
7738    A1ExactMatchSummarizedQuantity,
7739    /// `S2`
7740    A2ExactMatchSummarizedQuantity,
7741    /// `S3`
7742    A3ExactMatchSummarizedQuantity,
7743    /// `S4`
7744    A4ExactMatchSummarizedQuantity,
7745    /// `S5`
7746    A5ExactMatchSummarizedQuantity,
7747    /// `M1`
7748    ExactMatchMinusBadgesTimes,
7749    /// `M2`
7750    SummarizedMatchMinusBadgesTimes,
7751    /// `MT`
7752    OcsLockedIn,
7753    /// `M3`
7754    ActAcceptedTrade,
7755    /// `M4`
7756    ActDefaultTrade,
7757    /// `M5`
7758    ActDefaultAfterM2,
7759    /// `M6`
7760    Actm6Match,
7761    /// A value the dictionary does not list.
7762    Unrecognized(&'a str),
7763}
7764
7765impl<'a> MatchType<'a> {
7766    pub fn from_value(value: &'a str) -> Self {
7767        match value {
7768            "A1" => Self::ExactMatchPlus4BadgesExecTime,
7769            "A2" => Self::ExactMatchPlus4Badges,
7770            "A3" => Self::ExactMatchPlus2BadgesExecTime,
7771            "A4" => Self::ExactMatchPlus2Badges,
7772            "A5" => Self::ExactMatchPlusExecTime,
7773            "AQ" => Self::StampedAdvisoriesOrSpecialistAccepts,
7774            "S1" => Self::A1ExactMatchSummarizedQuantity,
7775            "S2" => Self::A2ExactMatchSummarizedQuantity,
7776            "S3" => Self::A3ExactMatchSummarizedQuantity,
7777            "S4" => Self::A4ExactMatchSummarizedQuantity,
7778            "S5" => Self::A5ExactMatchSummarizedQuantity,
7779            "M1" => Self::ExactMatchMinusBadgesTimes,
7780            "M2" => Self::SummarizedMatchMinusBadgesTimes,
7781            "MT" => Self::OcsLockedIn,
7782            "M3" => Self::ActAcceptedTrade,
7783            "M4" => Self::ActDefaultTrade,
7784            "M5" => Self::ActDefaultAfterM2,
7785            "M6" => Self::Actm6Match,
7786            unrecognized => Self::Unrecognized(unrecognized),
7787        }
7788    }
7789
7790    pub fn value(self) -> &'a str {
7791        match self {
7792            Self::ExactMatchPlus4BadgesExecTime => "A1",
7793            Self::ExactMatchPlus4Badges => "A2",
7794            Self::ExactMatchPlus2BadgesExecTime => "A3",
7795            Self::ExactMatchPlus2Badges => "A4",
7796            Self::ExactMatchPlusExecTime => "A5",
7797            Self::StampedAdvisoriesOrSpecialistAccepts => "AQ",
7798            Self::A1ExactMatchSummarizedQuantity => "S1",
7799            Self::A2ExactMatchSummarizedQuantity => "S2",
7800            Self::A3ExactMatchSummarizedQuantity => "S3",
7801            Self::A4ExactMatchSummarizedQuantity => "S4",
7802            Self::A5ExactMatchSummarizedQuantity => "S5",
7803            Self::ExactMatchMinusBadgesTimes => "M1",
7804            Self::SummarizedMatchMinusBadgesTimes => "M2",
7805            Self::OcsLockedIn => "MT",
7806            Self::ActAcceptedTrade => "M3",
7807            Self::ActDefaultTrade => "M4",
7808            Self::ActDefaultAfterM2 => "M5",
7809            Self::Actm6Match => "M6",
7810            Self::Unrecognized(value) => value,
7811        }
7812    }
7813}
7814
7815impl<'a> From<&'a str> for MatchType<'a> {
7816    fn from(value: &'a str) -> Self {
7817        Self::from_value(value)
7818    }
7819}
7820
7821/// The values of the `ClearingInstruction` (577) field.
7822#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7823pub enum ClearingInstruction {
7824    /// `0`
7825    ProcessNormally,
7826    /// `1`
7827    ExcludeFromAllNetting,
7828    /// `2`
7829    BilateralNettingOnly,
7830    /// `3`
7831    ExClearing,
7832    /// `4`
7833    SpecialTrade,
7834    /// `5`
7835    MultilateralNetting,
7836    /// `6`
7837    ClearAgainstCentralCounterparty,
7838    /// `7`
7839    ExcludeFromCentralCounterparty,
7840    /// `8`
7841    ManualMode,
7842    /// `9`
7843    AutomaticPostingMode,
7844    /// `10`
7845    AutomaticGiveUpMode,
7846    /// `11`
7847    QualifiedServiceRepresentativeQsr,
7848    /// `12`
7849    CustomerTrade,
7850    /// `13`
7851    SelfClearing,
7852    /// A value the dictionary does not list.
7853    Unrecognized(i64),
7854}
7855
7856impl ClearingInstruction {
7857    pub fn from_value(value: i64) -> Self {
7858        match value {
7859            0 => Self::ProcessNormally,
7860            1 => Self::ExcludeFromAllNetting,
7861            2 => Self::BilateralNettingOnly,
7862            3 => Self::ExClearing,
7863            4 => Self::SpecialTrade,
7864            5 => Self::MultilateralNetting,
7865            6 => Self::ClearAgainstCentralCounterparty,
7866            7 => Self::ExcludeFromCentralCounterparty,
7867            8 => Self::ManualMode,
7868            9 => Self::AutomaticPostingMode,
7869            10 => Self::AutomaticGiveUpMode,
7870            11 => Self::QualifiedServiceRepresentativeQsr,
7871            12 => Self::CustomerTrade,
7872            13 => Self::SelfClearing,
7873            unrecognized => Self::Unrecognized(unrecognized),
7874        }
7875    }
7876
7877    pub fn value(self) -> i64 {
7878        match self {
7879            Self::ProcessNormally => 0,
7880            Self::ExcludeFromAllNetting => 1,
7881            Self::BilateralNettingOnly => 2,
7882            Self::ExClearing => 3,
7883            Self::SpecialTrade => 4,
7884            Self::MultilateralNetting => 5,
7885            Self::ClearAgainstCentralCounterparty => 6,
7886            Self::ExcludeFromCentralCounterparty => 7,
7887            Self::ManualMode => 8,
7888            Self::AutomaticPostingMode => 9,
7889            Self::AutomaticGiveUpMode => 10,
7890            Self::QualifiedServiceRepresentativeQsr => 11,
7891            Self::CustomerTrade => 12,
7892            Self::SelfClearing => 13,
7893            Self::Unrecognized(value) => value,
7894        }
7895    }
7896}
7897
7898/// The values of the `AccountType` (581) field.
7899#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7900pub enum AccountType {
7901    /// `1`
7902    CarriedCustomerSide,
7903    /// `2`
7904    CarriedNonCustomerSide,
7905    /// `3`
7906    HouseTrader,
7907    /// `4`
7908    FloorTrader,
7909    /// `6`
7910    CarriedNonCustomerSideCrossMargined,
7911    /// `7`
7912    HouseTraderCrossMargined,
7913    /// `8`
7914    JointBackOfficeAccount,
7915    /// A value the dictionary does not list.
7916    Unrecognized(i64),
7917}
7918
7919impl AccountType {
7920    pub fn from_value(value: i64) -> Self {
7921        match value {
7922            1 => Self::CarriedCustomerSide,
7923            2 => Self::CarriedNonCustomerSide,
7924            3 => Self::HouseTrader,
7925            4 => Self::FloorTrader,
7926            6 => Self::CarriedNonCustomerSideCrossMargined,
7927            7 => Self::HouseTraderCrossMargined,
7928            8 => Self::JointBackOfficeAccount,
7929            unrecognized => Self::Unrecognized(unrecognized),
7930        }
7931    }
7932
7933    pub fn value(self) -> i64 {
7934        match self {
7935            Self::CarriedCustomerSide => 1,
7936            Self::CarriedNonCustomerSide => 2,
7937            Self::HouseTrader => 3,
7938            Self::FloorTrader => 4,
7939            Self::CarriedNonCustomerSideCrossMargined => 6,
7940            Self::HouseTraderCrossMargined => 7,
7941            Self::JointBackOfficeAccount => 8,
7942            Self::Unrecognized(value) => value,
7943        }
7944    }
7945}
7946
7947/// The values of the `CustOrderCapacity` (582) field.
7948#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7949pub enum CustOrderCapacity {
7950    /// `1`
7951    MemberTradingForTheirOwnAccount,
7952    /// `2`
7953    ClearingFirmTradingForItsProprietaryAccount,
7954    /// `3`
7955    MemberTradingForAnotherMember,
7956    /// `4`
7957    AllOther,
7958    /// A value the dictionary does not list.
7959    Unrecognized(i64),
7960}
7961
7962impl CustOrderCapacity {
7963    pub fn from_value(value: i64) -> Self {
7964        match value {
7965            1 => Self::MemberTradingForTheirOwnAccount,
7966            2 => Self::ClearingFirmTradingForItsProprietaryAccount,
7967            3 => Self::MemberTradingForAnotherMember,
7968            4 => Self::AllOther,
7969            unrecognized => Self::Unrecognized(unrecognized),
7970        }
7971    }
7972
7973    pub fn value(self) -> i64 {
7974        match self {
7975            Self::MemberTradingForTheirOwnAccount => 1,
7976            Self::ClearingFirmTradingForItsProprietaryAccount => 2,
7977            Self::MemberTradingForAnotherMember => 3,
7978            Self::AllOther => 4,
7979            Self::Unrecognized(value) => value,
7980        }
7981    }
7982}
7983
7984/// The values of the `MassStatusReqType` (585) field.
7985#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
7986pub enum MassStatusReqType {
7987    /// `1`
7988    StatusForOrdersForASecurity,
7989    /// `2`
7990    StatusForOrdersForAnUnderlyingSecurity,
7991    /// `3`
7992    StatusForOrdersForAProduct,
7993    /// `4`
7994    StatusForOrdersForAcfiCode,
7995    /// `5`
7996    StatusForOrdersForASecurityType,
7997    /// `6`
7998    StatusForOrdersForATradingSession,
7999    /// `7`
8000    StatusForAllOrders,
8001    /// `8`
8002    StatusForOrdersForAPartyId,
8003    /// A value the dictionary does not list.
8004    Unrecognized(i64),
8005}
8006
8007impl MassStatusReqType {
8008    pub fn from_value(value: i64) -> Self {
8009        match value {
8010            1 => Self::StatusForOrdersForASecurity,
8011            2 => Self::StatusForOrdersForAnUnderlyingSecurity,
8012            3 => Self::StatusForOrdersForAProduct,
8013            4 => Self::StatusForOrdersForAcfiCode,
8014            5 => Self::StatusForOrdersForASecurityType,
8015            6 => Self::StatusForOrdersForATradingSession,
8016            7 => Self::StatusForAllOrders,
8017            8 => Self::StatusForOrdersForAPartyId,
8018            unrecognized => Self::Unrecognized(unrecognized),
8019        }
8020    }
8021
8022    pub fn value(self) -> i64 {
8023        match self {
8024            Self::StatusForOrdersForASecurity => 1,
8025            Self::StatusForOrdersForAnUnderlyingSecurity => 2,
8026            Self::StatusForOrdersForAProduct => 3,
8027            Self::StatusForOrdersForAcfiCode => 4,
8028            Self::StatusForOrdersForASecurityType => 5,
8029            Self::StatusForOrdersForATradingSession => 6,
8030            Self::StatusForAllOrders => 7,
8031            Self::StatusForOrdersForAPartyId => 8,
8032            Self::Unrecognized(value) => value,
8033        }
8034    }
8035}
8036
8037/// The values of the `DayBookingInst` (589) field.
8038#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8039pub enum DayBookingInst<'a> {
8040    /// `0`
8041    Auto,
8042    /// `1`
8043    SpeakWithOrderInitiatorBeforeBooking,
8044    /// `2`
8045    Accumulate,
8046    /// A value the dictionary does not list.
8047    Unrecognized(&'a str),
8048}
8049
8050impl<'a> DayBookingInst<'a> {
8051    pub fn from_value(value: &'a str) -> Self {
8052        match value {
8053            "0" => Self::Auto,
8054            "1" => Self::SpeakWithOrderInitiatorBeforeBooking,
8055            "2" => Self::Accumulate,
8056            unrecognized => Self::Unrecognized(unrecognized),
8057        }
8058    }
8059
8060    pub fn value(self) -> &'a str {
8061        match self {
8062            Self::Auto => "0",
8063            Self::SpeakWithOrderInitiatorBeforeBooking => "1",
8064            Self::Accumulate => "2",
8065            Self::Unrecognized(value) => value,
8066        }
8067    }
8068}
8069
8070impl<'a> From<&'a str> for DayBookingInst<'a> {
8071    fn from(value: &'a str) -> Self {
8072        Self::from_value(value)
8073    }
8074}
8075
8076/// The values of the `BookingUnit` (590) field.
8077#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8078pub enum BookingUnit<'a> {
8079    /// `0`
8080    EachPartialExecutionIsABookableUnit,
8081    /// `1`
8082    AggregatePartialExecutionsOnThisOrder,
8083    /// `2`
8084    AggregateExecutionsForThisSymbol,
8085    /// A value the dictionary does not list.
8086    Unrecognized(&'a str),
8087}
8088
8089impl<'a> BookingUnit<'a> {
8090    pub fn from_value(value: &'a str) -> Self {
8091        match value {
8092            "0" => Self::EachPartialExecutionIsABookableUnit,
8093            "1" => Self::AggregatePartialExecutionsOnThisOrder,
8094            "2" => Self::AggregateExecutionsForThisSymbol,
8095            unrecognized => Self::Unrecognized(unrecognized),
8096        }
8097    }
8098
8099    pub fn value(self) -> &'a str {
8100        match self {
8101            Self::EachPartialExecutionIsABookableUnit => "0",
8102            Self::AggregatePartialExecutionsOnThisOrder => "1",
8103            Self::AggregateExecutionsForThisSymbol => "2",
8104            Self::Unrecognized(value) => value,
8105        }
8106    }
8107}
8108
8109impl<'a> From<&'a str> for BookingUnit<'a> {
8110    fn from(value: &'a str) -> Self {
8111        Self::from_value(value)
8112    }
8113}
8114
8115/// The values of the `PreallocMethod` (591) field.
8116#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8117pub enum PreallocMethod<'a> {
8118    /// `0`
8119    ProRata,
8120    /// `1`
8121    DoNotProRata,
8122    /// A value the dictionary does not list.
8123    Unrecognized(&'a str),
8124}
8125
8126impl<'a> PreallocMethod<'a> {
8127    pub fn from_value(value: &'a str) -> Self {
8128        match value {
8129            "0" => Self::ProRata,
8130            "1" => Self::DoNotProRata,
8131            unrecognized => Self::Unrecognized(unrecognized),
8132        }
8133    }
8134
8135    pub fn value(self) -> &'a str {
8136        match self {
8137            Self::ProRata => "0",
8138            Self::DoNotProRata => "1",
8139            Self::Unrecognized(value) => value,
8140        }
8141    }
8142}
8143
8144impl<'a> From<&'a str> for PreallocMethod<'a> {
8145    fn from(value: &'a str) -> Self {
8146        Self::from_value(value)
8147    }
8148}
8149
8150/// The values of the `AllocType` (626) field.
8151#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8152pub enum AllocType {
8153    /// `1`
8154    Calculated,
8155    /// `2`
8156    Preliminary,
8157    /// `5`
8158    ReadyToBook,
8159    /// `7`
8160    WarehouseInstruction,
8161    /// `8`
8162    RequestToIntermediary,
8163    /// A value the dictionary does not list.
8164    Unrecognized(i64),
8165}
8166
8167impl AllocType {
8168    pub fn from_value(value: i64) -> Self {
8169        match value {
8170            1 => Self::Calculated,
8171            2 => Self::Preliminary,
8172            5 => Self::ReadyToBook,
8173            7 => Self::WarehouseInstruction,
8174            8 => Self::RequestToIntermediary,
8175            unrecognized => Self::Unrecognized(unrecognized),
8176        }
8177    }
8178
8179    pub fn value(self) -> i64 {
8180        match self {
8181            Self::Calculated => 1,
8182            Self::Preliminary => 2,
8183            Self::ReadyToBook => 5,
8184            Self::WarehouseInstruction => 7,
8185            Self::RequestToIntermediary => 8,
8186            Self::Unrecognized(value) => value,
8187        }
8188    }
8189}
8190
8191/// The values of the `ClearingFeeIndicator` (635) field.
8192#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8193pub enum ClearingFeeIndicator<'a> {
8194    /// `B`
8195    CboeMember,
8196    /// `C`
8197    NonMemberAndCustomer,
8198    /// `E`
8199    EquityMemberAndClearingMember,
8200    /// `F`
8201    FullAndAssociateMember,
8202    /// `H`
8203    Firms106HAnd106J,
8204    /// `I`
8205    Gim,
8206    /// `L`
8207    Lessee106FEmployees,
8208    /// `M`
8209    AllOtherOwnershipTypes,
8210    /// `1`
8211    FirstYearDelegate,
8212    /// `2`
8213    SecondYearDelegate,
8214    /// `3`
8215    ThirdYearDelegate,
8216    /// `4`
8217    FourthYearDelegate,
8218    /// `5`
8219    FifthYearDelegate,
8220    /// `9`
8221    SixthYearDelegate,
8222    /// A value the dictionary does not list.
8223    Unrecognized(&'a str),
8224}
8225
8226impl<'a> ClearingFeeIndicator<'a> {
8227    pub fn from_value(value: &'a str) -> Self {
8228        match value {
8229            "B" => Self::CboeMember,
8230            "C" => Self::NonMemberAndCustomer,
8231            "E" => Self::EquityMemberAndClearingMember,
8232            "F" => Self::FullAndAssociateMember,
8233            "H" => Self::Firms106HAnd106J,
8234            "I" => Self::Gim,
8235            "L" => Self::Lessee106FEmployees,
8236            "M" => Self::AllOtherOwnershipTypes,
8237            "1" => Self::FirstYearDelegate,
8238            "2" => Self::SecondYearDelegate,
8239            "3" => Self::ThirdYearDelegate,
8240            "4" => Self::FourthYearDelegate,
8241            "5" => Self::FifthYearDelegate,
8242            "9" => Self::SixthYearDelegate,
8243            unrecognized => Self::Unrecognized(unrecognized),
8244        }
8245    }
8246
8247    pub fn value(self) -> &'a str {
8248        match self {
8249            Self::CboeMember => "B",
8250            Self::NonMemberAndCustomer => "C",
8251            Self::EquityMemberAndClearingMember => "E",
8252            Self::FullAndAssociateMember => "F",
8253            Self::Firms106HAnd106J => "H",
8254            Self::Gim => "I",
8255            Self::Lessee106FEmployees => "L",
8256            Self::AllOtherOwnershipTypes => "M",
8257            Self::FirstYearDelegate => "1",
8258            Self::SecondYearDelegate => "2",
8259            Self::ThirdYearDelegate => "3",
8260            Self::FourthYearDelegate => "4",
8261            Self::FifthYearDelegate => "5",
8262            Self::SixthYearDelegate => "9",
8263            Self::Unrecognized(value) => value,
8264        }
8265    }
8266}
8267
8268impl<'a> From<&'a str> for ClearingFeeIndicator<'a> {
8269    fn from(value: &'a str) -> Self {
8270        Self::from_value(value)
8271    }
8272}
8273
8274/// The values of the `PriorityIndicator` (638) field.
8275#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8276pub enum PriorityIndicator {
8277    /// `0`
8278    PriorityUnchanged,
8279    /// `1`
8280    LostPriorityAsResultOfOrderChange,
8281    /// A value the dictionary does not list.
8282    Unrecognized(i64),
8283}
8284
8285impl PriorityIndicator {
8286    pub fn from_value(value: i64) -> Self {
8287        match value {
8288            0 => Self::PriorityUnchanged,
8289            1 => Self::LostPriorityAsResultOfOrderChange,
8290            unrecognized => Self::Unrecognized(unrecognized),
8291        }
8292    }
8293
8294    pub fn value(self) -> i64 {
8295        match self {
8296            Self::PriorityUnchanged => 0,
8297            Self::LostPriorityAsResultOfOrderChange => 1,
8298            Self::Unrecognized(value) => value,
8299        }
8300    }
8301}
8302
8303/// The values of the `QuoteRequestRejectReason` (658) field.
8304#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8305pub enum QuoteRequestRejectReason {
8306    /// `1`
8307    UnknownSymbol,
8308    /// `2`
8309    Exchange,
8310    /// `3`
8311    QuoteRequestExceedsLimit,
8312    /// `4`
8313    TooLateToEnter,
8314    /// `5`
8315    InvalidPrice,
8316    /// `6`
8317    NotAuthorizedToRequestQuote,
8318    /// `7`
8319    NoMatchForInquiry,
8320    /// `8`
8321    NoMarketForInstrument,
8322    /// `9`
8323    NoInventory,
8324    /// `10`
8325    Pass,
8326    /// `99`
8327    Other,
8328    /// A value the dictionary does not list.
8329    Unrecognized(i64),
8330}
8331
8332impl QuoteRequestRejectReason {
8333    pub fn from_value(value: i64) -> Self {
8334        match value {
8335            1 => Self::UnknownSymbol,
8336            2 => Self::Exchange,
8337            3 => Self::QuoteRequestExceedsLimit,
8338            4 => Self::TooLateToEnter,
8339            5 => Self::InvalidPrice,
8340            6 => Self::NotAuthorizedToRequestQuote,
8341            7 => Self::NoMatchForInquiry,
8342            8 => Self::NoMarketForInstrument,
8343            9 => Self::NoInventory,
8344            10 => Self::Pass,
8345            99 => Self::Other,
8346            unrecognized => Self::Unrecognized(unrecognized),
8347        }
8348    }
8349
8350    pub fn value(self) -> i64 {
8351        match self {
8352            Self::UnknownSymbol => 1,
8353            Self::Exchange => 2,
8354            Self::QuoteRequestExceedsLimit => 3,
8355            Self::TooLateToEnter => 4,
8356            Self::InvalidPrice => 5,
8357            Self::NotAuthorizedToRequestQuote => 6,
8358            Self::NoMatchForInquiry => 7,
8359            Self::NoMarketForInstrument => 8,
8360            Self::NoInventory => 9,
8361            Self::Pass => 10,
8362            Self::Other => 99,
8363            Self::Unrecognized(value) => value,
8364        }
8365    }
8366}
8367
8368/// The values of the `AcctIDSource` (660) field.
8369#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8370pub enum AcctIDSource {
8371    /// `1`
8372    Bic,
8373    /// `2`
8374    SidCode,
8375    /// `3`
8376    Tfm,
8377    /// `4`
8378    Omgeo,
8379    /// `5`
8380    DtccCode,
8381    /// `99`
8382    Other,
8383    /// A value the dictionary does not list.
8384    Unrecognized(i64),
8385}
8386
8387impl AcctIDSource {
8388    pub fn from_value(value: i64) -> Self {
8389        match value {
8390            1 => Self::Bic,
8391            2 => Self::SidCode,
8392            3 => Self::Tfm,
8393            4 => Self::Omgeo,
8394            5 => Self::DtccCode,
8395            99 => Self::Other,
8396            unrecognized => Self::Unrecognized(unrecognized),
8397        }
8398    }
8399
8400    pub fn value(self) -> i64 {
8401        match self {
8402            Self::Bic => 1,
8403            Self::SidCode => 2,
8404            Self::Tfm => 3,
8405            Self::Omgeo => 4,
8406            Self::DtccCode => 5,
8407            Self::Other => 99,
8408            Self::Unrecognized(value) => value,
8409        }
8410    }
8411}
8412
8413/// The values of the `ConfirmStatus` (665) field.
8414#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8415pub enum ConfirmStatus {
8416    /// `1`
8417    Received,
8418    /// `2`
8419    MismatchedAccount,
8420    /// `3`
8421    MissingSettlementInstructions,
8422    /// `4`
8423    Confirmed,
8424    /// `5`
8425    RequestRejected,
8426    /// A value the dictionary does not list.
8427    Unrecognized(i64),
8428}
8429
8430impl ConfirmStatus {
8431    pub fn from_value(value: i64) -> Self {
8432        match value {
8433            1 => Self::Received,
8434            2 => Self::MismatchedAccount,
8435            3 => Self::MissingSettlementInstructions,
8436            4 => Self::Confirmed,
8437            5 => Self::RequestRejected,
8438            unrecognized => Self::Unrecognized(unrecognized),
8439        }
8440    }
8441
8442    pub fn value(self) -> i64 {
8443        match self {
8444            Self::Received => 1,
8445            Self::MismatchedAccount => 2,
8446            Self::MissingSettlementInstructions => 3,
8447            Self::Confirmed => 4,
8448            Self::RequestRejected => 5,
8449            Self::Unrecognized(value) => value,
8450        }
8451    }
8452}
8453
8454/// The values of the `ConfirmTransType` (666) field.
8455#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8456pub enum ConfirmTransType {
8457    /// `0`
8458    New,
8459    /// `1`
8460    Replace,
8461    /// `2`
8462    Cancel,
8463    /// A value the dictionary does not list.
8464    Unrecognized(i64),
8465}
8466
8467impl ConfirmTransType {
8468    pub fn from_value(value: i64) -> Self {
8469        match value {
8470            0 => Self::New,
8471            1 => Self::Replace,
8472            2 => Self::Cancel,
8473            unrecognized => Self::Unrecognized(unrecognized),
8474        }
8475    }
8476
8477    pub fn value(self) -> i64 {
8478        match self {
8479            Self::New => 0,
8480            Self::Replace => 1,
8481            Self::Cancel => 2,
8482            Self::Unrecognized(value) => value,
8483        }
8484    }
8485}
8486
8487/// The values of the `DeliveryForm` (668) field.
8488#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8489pub enum DeliveryForm {
8490    /// `1`
8491    BookEntry,
8492    /// `2`
8493    Bearer,
8494    /// A value the dictionary does not list.
8495    Unrecognized(i64),
8496}
8497
8498impl DeliveryForm {
8499    pub fn from_value(value: i64) -> Self {
8500        match value {
8501            1 => Self::BookEntry,
8502            2 => Self::Bearer,
8503            unrecognized => Self::Unrecognized(unrecognized),
8504        }
8505    }
8506
8507    pub fn value(self) -> i64 {
8508        match self {
8509            Self::BookEntry => 1,
8510            Self::Bearer => 2,
8511            Self::Unrecognized(value) => value,
8512        }
8513    }
8514}
8515
8516/// The values of the `LegSwapType` (690) field.
8517#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8518pub enum LegSwapType {
8519    /// `1`
8520    ParForPar,
8521    /// `2`
8522    ModifiedDuration,
8523    /// `4`
8524    Risk,
8525    /// `5`
8526    Proceeds,
8527    /// A value the dictionary does not list.
8528    Unrecognized(i64),
8529}
8530
8531impl LegSwapType {
8532    pub fn from_value(value: i64) -> Self {
8533        match value {
8534            1 => Self::ParForPar,
8535            2 => Self::ModifiedDuration,
8536            4 => Self::Risk,
8537            5 => Self::Proceeds,
8538            unrecognized => Self::Unrecognized(unrecognized),
8539        }
8540    }
8541
8542    pub fn value(self) -> i64 {
8543        match self {
8544            Self::ParForPar => 1,
8545            Self::ModifiedDuration => 2,
8546            Self::Risk => 4,
8547            Self::Proceeds => 5,
8548            Self::Unrecognized(value) => value,
8549        }
8550    }
8551}
8552
8553/// The values of the `QuotePriceType` (692) field.
8554#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8555pub enum QuotePriceType {
8556    /// `1`
8557    Percent,
8558    /// `2`
8559    PerShare,
8560    /// `3`
8561    FixedAmount,
8562    /// `4`
8563    Discount,
8564    /// `5`
8565    Premium,
8566    /// `6`
8567    Spread,
8568    /// `7`
8569    TedPrice,
8570    /// `8`
8571    TedYield,
8572    /// `9`
8573    YieldSpread,
8574    /// `10`
8575    Yield,
8576    /// A value the dictionary does not list.
8577    Unrecognized(i64),
8578}
8579
8580impl QuotePriceType {
8581    pub fn from_value(value: i64) -> Self {
8582        match value {
8583            1 => Self::Percent,
8584            2 => Self::PerShare,
8585            3 => Self::FixedAmount,
8586            4 => Self::Discount,
8587            5 => Self::Premium,
8588            6 => Self::Spread,
8589            7 => Self::TedPrice,
8590            8 => Self::TedYield,
8591            9 => Self::YieldSpread,
8592            10 => Self::Yield,
8593            unrecognized => Self::Unrecognized(unrecognized),
8594        }
8595    }
8596
8597    pub fn value(self) -> i64 {
8598        match self {
8599            Self::Percent => 1,
8600            Self::PerShare => 2,
8601            Self::FixedAmount => 3,
8602            Self::Discount => 4,
8603            Self::Premium => 5,
8604            Self::Spread => 6,
8605            Self::TedPrice => 7,
8606            Self::TedYield => 8,
8607            Self::YieldSpread => 9,
8608            Self::Yield => 10,
8609            Self::Unrecognized(value) => value,
8610        }
8611    }
8612}
8613
8614/// The values of the `QuoteRespType` (694) field.
8615#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8616pub enum QuoteRespType {
8617    /// `1`
8618    Hit,
8619    /// `2`
8620    Counter,
8621    /// `3`
8622    Expired,
8623    /// `4`
8624    Cover,
8625    /// `5`
8626    DoneAway,
8627    /// `6`
8628    Pass,
8629    /// A value the dictionary does not list.
8630    Unrecognized(i64),
8631}
8632
8633impl QuoteRespType {
8634    pub fn from_value(value: i64) -> Self {
8635        match value {
8636            1 => Self::Hit,
8637            2 => Self::Counter,
8638            3 => Self::Expired,
8639            4 => Self::Cover,
8640            5 => Self::DoneAway,
8641            6 => Self::Pass,
8642            unrecognized => Self::Unrecognized(unrecognized),
8643        }
8644    }
8645
8646    pub fn value(self) -> i64 {
8647        match self {
8648            Self::Hit => 1,
8649            Self::Counter => 2,
8650            Self::Expired => 3,
8651            Self::Cover => 4,
8652            Self::DoneAway => 5,
8653            Self::Pass => 6,
8654            Self::Unrecognized(value) => value,
8655        }
8656    }
8657}
8658
8659/// The values of the `PosType` (703) field.
8660#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8661pub enum PosType<'a> {
8662    /// `TQ`
8663    TransactionQuantity,
8664    /// `IAS`
8665    IntraSpreadQty,
8666    /// `IES`
8667    InterSpreadQty,
8668    /// `FIN`
8669    EndOfDayQty,
8670    /// `SOD`
8671    StartOfDayQty,
8672    /// `EX`
8673    OptionExerciseQty,
8674    /// `AS`
8675    OptionAssignment,
8676    /// `TX`
8677    TransactionFromExercise,
8678    /// `TA`
8679    TransactionFromAssignment,
8680    /// `PIT`
8681    PitTradeQty,
8682    /// `TRF`
8683    TransferTradeQty,
8684    /// `ETR`
8685    ElectronicTradeQty,
8686    /// `ALC`
8687    AllocationTradeQty,
8688    /// `PA`
8689    AdjustmentQty,
8690    /// `ASF`
8691    AsOfTradeQty,
8692    /// `DLV`
8693    DeliveryQty,
8694    /// `TOT`
8695    TotalTransactionQty,
8696    /// `XM`
8697    CrossMarginQty,
8698    /// `SPL`
8699    IntegralSplit,
8700    /// A value the dictionary does not list.
8701    Unrecognized(&'a str),
8702}
8703
8704impl<'a> PosType<'a> {
8705    pub fn from_value(value: &'a str) -> Self {
8706        match value {
8707            "TQ" => Self::TransactionQuantity,
8708            "IAS" => Self::IntraSpreadQty,
8709            "IES" => Self::InterSpreadQty,
8710            "FIN" => Self::EndOfDayQty,
8711            "SOD" => Self::StartOfDayQty,
8712            "EX" => Self::OptionExerciseQty,
8713            "AS" => Self::OptionAssignment,
8714            "TX" => Self::TransactionFromExercise,
8715            "TA" => Self::TransactionFromAssignment,
8716            "PIT" => Self::PitTradeQty,
8717            "TRF" => Self::TransferTradeQty,
8718            "ETR" => Self::ElectronicTradeQty,
8719            "ALC" => Self::AllocationTradeQty,
8720            "PA" => Self::AdjustmentQty,
8721            "ASF" => Self::AsOfTradeQty,
8722            "DLV" => Self::DeliveryQty,
8723            "TOT" => Self::TotalTransactionQty,
8724            "XM" => Self::CrossMarginQty,
8725            "SPL" => Self::IntegralSplit,
8726            unrecognized => Self::Unrecognized(unrecognized),
8727        }
8728    }
8729
8730    pub fn value(self) -> &'a str {
8731        match self {
8732            Self::TransactionQuantity => "TQ",
8733            Self::IntraSpreadQty => "IAS",
8734            Self::InterSpreadQty => "IES",
8735            Self::EndOfDayQty => "FIN",
8736            Self::StartOfDayQty => "SOD",
8737            Self::OptionExerciseQty => "EX",
8738            Self::OptionAssignment => "AS",
8739            Self::TransactionFromExercise => "TX",
8740            Self::TransactionFromAssignment => "TA",
8741            Self::PitTradeQty => "PIT",
8742            Self::TransferTradeQty => "TRF",
8743            Self::ElectronicTradeQty => "ETR",
8744            Self::AllocationTradeQty => "ALC",
8745            Self::AdjustmentQty => "PA",
8746            Self::AsOfTradeQty => "ASF",
8747            Self::DeliveryQty => "DLV",
8748            Self::TotalTransactionQty => "TOT",
8749            Self::CrossMarginQty => "XM",
8750            Self::IntegralSplit => "SPL",
8751            Self::Unrecognized(value) => value,
8752        }
8753    }
8754}
8755
8756impl<'a> From<&'a str> for PosType<'a> {
8757    fn from(value: &'a str) -> Self {
8758        Self::from_value(value)
8759    }
8760}
8761
8762/// The values of the `PosQtyStatus` (706) field.
8763#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8764pub enum PosQtyStatus {
8765    /// `0`
8766    Submitted,
8767    /// `1`
8768    Accepted,
8769    /// `2`
8770    Rejected,
8771    /// A value the dictionary does not list.
8772    Unrecognized(i64),
8773}
8774
8775impl PosQtyStatus {
8776    pub fn from_value(value: i64) -> Self {
8777        match value {
8778            0 => Self::Submitted,
8779            1 => Self::Accepted,
8780            2 => Self::Rejected,
8781            unrecognized => Self::Unrecognized(unrecognized),
8782        }
8783    }
8784
8785    pub fn value(self) -> i64 {
8786        match self {
8787            Self::Submitted => 0,
8788            Self::Accepted => 1,
8789            Self::Rejected => 2,
8790            Self::Unrecognized(value) => value,
8791        }
8792    }
8793}
8794
8795/// The values of the `PosAmtType` (707) field.
8796#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8797pub enum PosAmtType<'a> {
8798    /// `FMTM`
8799    FinalMarkToMarketAmount,
8800    /// `IMTM`
8801    IncrementalMarkToMarketAmount,
8802    /// `TVAR`
8803    TradeVariationAmount,
8804    /// `SMTM`
8805    StartOfDayMarkToMarketAmount,
8806    /// `PREM`
8807    PremiumAmount,
8808    /// `CRES`
8809    CashResidualAmount,
8810    /// `CASH`
8811    CashAmount,
8812    /// `VADJ`
8813    ValueAdjustedAmount,
8814    /// A value the dictionary does not list.
8815    Unrecognized(&'a str),
8816}
8817
8818impl<'a> PosAmtType<'a> {
8819    pub fn from_value(value: &'a str) -> Self {
8820        match value {
8821            "FMTM" => Self::FinalMarkToMarketAmount,
8822            "IMTM" => Self::IncrementalMarkToMarketAmount,
8823            "TVAR" => Self::TradeVariationAmount,
8824            "SMTM" => Self::StartOfDayMarkToMarketAmount,
8825            "PREM" => Self::PremiumAmount,
8826            "CRES" => Self::CashResidualAmount,
8827            "CASH" => Self::CashAmount,
8828            "VADJ" => Self::ValueAdjustedAmount,
8829            unrecognized => Self::Unrecognized(unrecognized),
8830        }
8831    }
8832
8833    pub fn value(self) -> &'a str {
8834        match self {
8835            Self::FinalMarkToMarketAmount => "FMTM",
8836            Self::IncrementalMarkToMarketAmount => "IMTM",
8837            Self::TradeVariationAmount => "TVAR",
8838            Self::StartOfDayMarkToMarketAmount => "SMTM",
8839            Self::PremiumAmount => "PREM",
8840            Self::CashResidualAmount => "CRES",
8841            Self::CashAmount => "CASH",
8842            Self::ValueAdjustedAmount => "VADJ",
8843            Self::Unrecognized(value) => value,
8844        }
8845    }
8846}
8847
8848impl<'a> From<&'a str> for PosAmtType<'a> {
8849    fn from(value: &'a str) -> Self {
8850        Self::from_value(value)
8851    }
8852}
8853
8854/// The values of the `PosTransType` (709) field.
8855#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8856pub enum PosTransType {
8857    /// `1`
8858    Exercise,
8859    /// `2`
8860    DoNotExercise,
8861    /// `3`
8862    PositionAdjustment,
8863    /// `4`
8864    PositionChangeSubmission,
8865    /// `5`
8866    Pledge,
8867    /// A value the dictionary does not list.
8868    Unrecognized(i64),
8869}
8870
8871impl PosTransType {
8872    pub fn from_value(value: i64) -> Self {
8873        match value {
8874            1 => Self::Exercise,
8875            2 => Self::DoNotExercise,
8876            3 => Self::PositionAdjustment,
8877            4 => Self::PositionChangeSubmission,
8878            5 => Self::Pledge,
8879            unrecognized => Self::Unrecognized(unrecognized),
8880        }
8881    }
8882
8883    pub fn value(self) -> i64 {
8884        match self {
8885            Self::Exercise => 1,
8886            Self::DoNotExercise => 2,
8887            Self::PositionAdjustment => 3,
8888            Self::PositionChangeSubmission => 4,
8889            Self::Pledge => 5,
8890            Self::Unrecognized(value) => value,
8891        }
8892    }
8893}
8894
8895/// The values of the `PosMaintAction` (712) field.
8896#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8897pub enum PosMaintAction {
8898    /// `1`
8899    New,
8900    /// `2`
8901    Replace,
8902    /// `3`
8903    Cancel,
8904    /// A value the dictionary does not list.
8905    Unrecognized(i64),
8906}
8907
8908impl PosMaintAction {
8909    pub fn from_value(value: i64) -> Self {
8910        match value {
8911            1 => Self::New,
8912            2 => Self::Replace,
8913            3 => Self::Cancel,
8914            unrecognized => Self::Unrecognized(unrecognized),
8915        }
8916    }
8917
8918    pub fn value(self) -> i64 {
8919        match self {
8920            Self::New => 1,
8921            Self::Replace => 2,
8922            Self::Cancel => 3,
8923            Self::Unrecognized(value) => value,
8924        }
8925    }
8926}
8927
8928/// The values of the `SettlSessID` (716) field.
8929#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8930pub enum SettlSessID<'a> {
8931    /// `ITD`
8932    Intraday,
8933    /// `RTH`
8934    RegularTradingHours,
8935    /// `ETH`
8936    ElectronicTradingHours,
8937    /// A value the dictionary does not list.
8938    Unrecognized(&'a str),
8939}
8940
8941impl<'a> SettlSessID<'a> {
8942    pub fn from_value(value: &'a str) -> Self {
8943        match value {
8944            "ITD" => Self::Intraday,
8945            "RTH" => Self::RegularTradingHours,
8946            "ETH" => Self::ElectronicTradingHours,
8947            unrecognized => Self::Unrecognized(unrecognized),
8948        }
8949    }
8950
8951    pub fn value(self) -> &'a str {
8952        match self {
8953            Self::Intraday => "ITD",
8954            Self::RegularTradingHours => "RTH",
8955            Self::ElectronicTradingHours => "ETH",
8956            Self::Unrecognized(value) => value,
8957        }
8958    }
8959}
8960
8961impl<'a> From<&'a str> for SettlSessID<'a> {
8962    fn from(value: &'a str) -> Self {
8963        Self::from_value(value)
8964    }
8965}
8966
8967/// The values of the `AdjustmentType` (718) field.
8968#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
8969pub enum AdjustmentType {
8970    /// `0`
8971    ProcessRequestAsMarginDisposition,
8972    /// `1`
8973    DeltaPlus,
8974    /// `2`
8975    DeltaMinus,
8976    /// `3`
8977    Final,
8978    /// A value the dictionary does not list.
8979    Unrecognized(i64),
8980}
8981
8982impl AdjustmentType {
8983    pub fn from_value(value: i64) -> Self {
8984        match value {
8985            0 => Self::ProcessRequestAsMarginDisposition,
8986            1 => Self::DeltaPlus,
8987            2 => Self::DeltaMinus,
8988            3 => Self::Final,
8989            unrecognized => Self::Unrecognized(unrecognized),
8990        }
8991    }
8992
8993    pub fn value(self) -> i64 {
8994        match self {
8995            Self::ProcessRequestAsMarginDisposition => 0,
8996            Self::DeltaPlus => 1,
8997            Self::DeltaMinus => 2,
8998            Self::Final => 3,
8999            Self::Unrecognized(value) => value,
9000        }
9001    }
9002}
9003
9004/// The values of the `PosMaintStatus` (722) field.
9005#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9006pub enum PosMaintStatus {
9007    /// `0`
9008    Accepted,
9009    /// `1`
9010    AcceptedWithWarnings,
9011    /// `2`
9012    Rejected,
9013    /// `3`
9014    Completed,
9015    /// `4`
9016    CompletedWithWarnings,
9017    /// A value the dictionary does not list.
9018    Unrecognized(i64),
9019}
9020
9021impl PosMaintStatus {
9022    pub fn from_value(value: i64) -> Self {
9023        match value {
9024            0 => Self::Accepted,
9025            1 => Self::AcceptedWithWarnings,
9026            2 => Self::Rejected,
9027            3 => Self::Completed,
9028            4 => Self::CompletedWithWarnings,
9029            unrecognized => Self::Unrecognized(unrecognized),
9030        }
9031    }
9032
9033    pub fn value(self) -> i64 {
9034        match self {
9035            Self::Accepted => 0,
9036            Self::AcceptedWithWarnings => 1,
9037            Self::Rejected => 2,
9038            Self::Completed => 3,
9039            Self::CompletedWithWarnings => 4,
9040            Self::Unrecognized(value) => value,
9041        }
9042    }
9043}
9044
9045/// The values of the `PosMaintResult` (723) field.
9046#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9047pub enum PosMaintResult {
9048    /// `0`
9049    SuccessfulCompletion,
9050    /// `1`
9051    Rejected,
9052    /// `99`
9053    Other,
9054    /// A value the dictionary does not list.
9055    Unrecognized(i64),
9056}
9057
9058impl PosMaintResult {
9059    pub fn from_value(value: i64) -> Self {
9060        match value {
9061            0 => Self::SuccessfulCompletion,
9062            1 => Self::Rejected,
9063            99 => Self::Other,
9064            unrecognized => Self::Unrecognized(unrecognized),
9065        }
9066    }
9067
9068    pub fn value(self) -> i64 {
9069        match self {
9070            Self::SuccessfulCompletion => 0,
9071            Self::Rejected => 1,
9072            Self::Other => 99,
9073            Self::Unrecognized(value) => value,
9074        }
9075    }
9076}
9077
9078/// The values of the `PosReqType` (724) field.
9079#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9080pub enum PosReqType {
9081    /// `0`
9082    Positions,
9083    /// `1`
9084    Trades,
9085    /// `2`
9086    Exercises,
9087    /// `3`
9088    Assignments,
9089    /// A value the dictionary does not list.
9090    Unrecognized(i64),
9091}
9092
9093impl PosReqType {
9094    pub fn from_value(value: i64) -> Self {
9095        match value {
9096            0 => Self::Positions,
9097            1 => Self::Trades,
9098            2 => Self::Exercises,
9099            3 => Self::Assignments,
9100            unrecognized => Self::Unrecognized(unrecognized),
9101        }
9102    }
9103
9104    pub fn value(self) -> i64 {
9105        match self {
9106            Self::Positions => 0,
9107            Self::Trades => 1,
9108            Self::Exercises => 2,
9109            Self::Assignments => 3,
9110            Self::Unrecognized(value) => value,
9111        }
9112    }
9113}
9114
9115/// The values of the `ResponseTransportType` (725) field.
9116#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9117pub enum ResponseTransportType {
9118    /// `0`
9119    Inband,
9120    /// `1`
9121    OutOfBand,
9122    /// A value the dictionary does not list.
9123    Unrecognized(i64),
9124}
9125
9126impl ResponseTransportType {
9127    pub fn from_value(value: i64) -> Self {
9128        match value {
9129            0 => Self::Inband,
9130            1 => Self::OutOfBand,
9131            unrecognized => Self::Unrecognized(unrecognized),
9132        }
9133    }
9134
9135    pub fn value(self) -> i64 {
9136        match self {
9137            Self::Inband => 0,
9138            Self::OutOfBand => 1,
9139            Self::Unrecognized(value) => value,
9140        }
9141    }
9142}
9143
9144/// The values of the `PosReqResult` (728) field.
9145#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9146pub enum PosReqResult {
9147    /// `0`
9148    ValidRequest,
9149    /// `1`
9150    InvalidOrUnsupportedRequest,
9151    /// `2`
9152    NoPositionsFoundThatMatchCriteria,
9153    /// `3`
9154    NotAuthorizedToRequestPositions,
9155    /// `4`
9156    RequestForPositionNotSupported,
9157    /// `99`
9158    Other,
9159    /// A value the dictionary does not list.
9160    Unrecognized(i64),
9161}
9162
9163impl PosReqResult {
9164    pub fn from_value(value: i64) -> Self {
9165        match value {
9166            0 => Self::ValidRequest,
9167            1 => Self::InvalidOrUnsupportedRequest,
9168            2 => Self::NoPositionsFoundThatMatchCriteria,
9169            3 => Self::NotAuthorizedToRequestPositions,
9170            4 => Self::RequestForPositionNotSupported,
9171            99 => Self::Other,
9172            unrecognized => Self::Unrecognized(unrecognized),
9173        }
9174    }
9175
9176    pub fn value(self) -> i64 {
9177        match self {
9178            Self::ValidRequest => 0,
9179            Self::InvalidOrUnsupportedRequest => 1,
9180            Self::NoPositionsFoundThatMatchCriteria => 2,
9181            Self::NotAuthorizedToRequestPositions => 3,
9182            Self::RequestForPositionNotSupported => 4,
9183            Self::Other => 99,
9184            Self::Unrecognized(value) => value,
9185        }
9186    }
9187}
9188
9189/// The values of the `PosReqStatus` (729) field.
9190#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9191pub enum PosReqStatus {
9192    /// `0`
9193    Completed,
9194    /// `1`
9195    CompletedWithWarnings,
9196    /// `2`
9197    Rejected,
9198    /// A value the dictionary does not list.
9199    Unrecognized(i64),
9200}
9201
9202impl PosReqStatus {
9203    pub fn from_value(value: i64) -> Self {
9204        match value {
9205            0 => Self::Completed,
9206            1 => Self::CompletedWithWarnings,
9207            2 => Self::Rejected,
9208            unrecognized => Self::Unrecognized(unrecognized),
9209        }
9210    }
9211
9212    pub fn value(self) -> i64 {
9213        match self {
9214            Self::Completed => 0,
9215            Self::CompletedWithWarnings => 1,
9216            Self::Rejected => 2,
9217            Self::Unrecognized(value) => value,
9218        }
9219    }
9220}
9221
9222/// The values of the `SettlPriceType` (731) field.
9223#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9224pub enum SettlPriceType {
9225    /// `1`
9226    Final,
9227    /// `2`
9228    Theoretical,
9229    /// A value the dictionary does not list.
9230    Unrecognized(i64),
9231}
9232
9233impl SettlPriceType {
9234    pub fn from_value(value: i64) -> Self {
9235        match value {
9236            1 => Self::Final,
9237            2 => Self::Theoretical,
9238            unrecognized => Self::Unrecognized(unrecognized),
9239        }
9240    }
9241
9242    pub fn value(self) -> i64 {
9243        match self {
9244            Self::Final => 1,
9245            Self::Theoretical => 2,
9246            Self::Unrecognized(value) => value,
9247        }
9248    }
9249}
9250
9251/// The values of the `AssignmentMethod` (744) field.
9252#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9253pub enum AssignmentMethod<'a> {
9254    /// `R`
9255    Random,
9256    /// `P`
9257    ProRata,
9258    /// A value the dictionary does not list.
9259    Unrecognized(&'a str),
9260}
9261
9262impl<'a> AssignmentMethod<'a> {
9263    pub fn from_value(value: &'a str) -> Self {
9264        match value {
9265            "R" => Self::Random,
9266            "P" => Self::ProRata,
9267            unrecognized => Self::Unrecognized(unrecognized),
9268        }
9269    }
9270
9271    pub fn value(self) -> &'a str {
9272        match self {
9273            Self::Random => "R",
9274            Self::ProRata => "P",
9275            Self::Unrecognized(value) => value,
9276        }
9277    }
9278}
9279
9280impl<'a> From<&'a str> for AssignmentMethod<'a> {
9281    fn from(value: &'a str) -> Self {
9282        Self::from_value(value)
9283    }
9284}
9285
9286/// The values of the `ExerciseMethod` (747) field.
9287#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9288pub enum ExerciseMethod<'a> {
9289    /// `A`
9290    Automatic,
9291    /// `M`
9292    Manual,
9293    /// A value the dictionary does not list.
9294    Unrecognized(&'a str),
9295}
9296
9297impl<'a> ExerciseMethod<'a> {
9298    pub fn from_value(value: &'a str) -> Self {
9299        match value {
9300            "A" => Self::Automatic,
9301            "M" => Self::Manual,
9302            unrecognized => Self::Unrecognized(unrecognized),
9303        }
9304    }
9305
9306    pub fn value(self) -> &'a str {
9307        match self {
9308            Self::Automatic => "A",
9309            Self::Manual => "M",
9310            Self::Unrecognized(value) => value,
9311        }
9312    }
9313}
9314
9315impl<'a> From<&'a str> for ExerciseMethod<'a> {
9316    fn from(value: &'a str) -> Self {
9317        Self::from_value(value)
9318    }
9319}
9320
9321/// The values of the `TradeRequestResult` (749) field.
9322#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9323pub enum TradeRequestResult {
9324    /// `0`
9325    Successful,
9326    /// `1`
9327    InvalidOrUnknownInstrument,
9328    /// `2`
9329    InvalidTypeOfTradeRequested,
9330    /// `3`
9331    InvalidParties,
9332    /// `4`
9333    InvalidTransportTypeRequested,
9334    /// `5`
9335    InvalidDestinationRequested,
9336    /// `8`
9337    TradeRequestTypeNotSupported,
9338    /// `9`
9339    NotAuthorized,
9340    /// `99`
9341    Other,
9342    /// A value the dictionary does not list.
9343    Unrecognized(i64),
9344}
9345
9346impl TradeRequestResult {
9347    pub fn from_value(value: i64) -> Self {
9348        match value {
9349            0 => Self::Successful,
9350            1 => Self::InvalidOrUnknownInstrument,
9351            2 => Self::InvalidTypeOfTradeRequested,
9352            3 => Self::InvalidParties,
9353            4 => Self::InvalidTransportTypeRequested,
9354            5 => Self::InvalidDestinationRequested,
9355            8 => Self::TradeRequestTypeNotSupported,
9356            9 => Self::NotAuthorized,
9357            99 => Self::Other,
9358            unrecognized => Self::Unrecognized(unrecognized),
9359        }
9360    }
9361
9362    pub fn value(self) -> i64 {
9363        match self {
9364            Self::Successful => 0,
9365            Self::InvalidOrUnknownInstrument => 1,
9366            Self::InvalidTypeOfTradeRequested => 2,
9367            Self::InvalidParties => 3,
9368            Self::InvalidTransportTypeRequested => 4,
9369            Self::InvalidDestinationRequested => 5,
9370            Self::TradeRequestTypeNotSupported => 8,
9371            Self::NotAuthorized => 9,
9372            Self::Other => 99,
9373            Self::Unrecognized(value) => value,
9374        }
9375    }
9376}
9377
9378/// The values of the `TradeRequestStatus` (750) field.
9379#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9380pub enum TradeRequestStatus {
9381    /// `0`
9382    Accepted,
9383    /// `1`
9384    Completed,
9385    /// `2`
9386    Rejected,
9387    /// A value the dictionary does not list.
9388    Unrecognized(i64),
9389}
9390
9391impl TradeRequestStatus {
9392    pub fn from_value(value: i64) -> Self {
9393        match value {
9394            0 => Self::Accepted,
9395            1 => Self::Completed,
9396            2 => Self::Rejected,
9397            unrecognized => Self::Unrecognized(unrecognized),
9398        }
9399    }
9400
9401    pub fn value(self) -> i64 {
9402        match self {
9403            Self::Accepted => 0,
9404            Self::Completed => 1,
9405            Self::Rejected => 2,
9406            Self::Unrecognized(value) => value,
9407        }
9408    }
9409}
9410
9411/// The values of the `TradeReportRejectReason` (751) field.
9412#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9413pub enum TradeReportRejectReason {
9414    /// `0`
9415    Successful,
9416    /// `1`
9417    InvalidPartyOnformation,
9418    /// `2`
9419    UnknownInstrument,
9420    /// `3`
9421    UnauthorizedToReportTrades,
9422    /// `4`
9423    InvalidTradeType,
9424    /// `99`
9425    Other,
9426    /// A value the dictionary does not list.
9427    Unrecognized(i64),
9428}
9429
9430impl TradeReportRejectReason {
9431    pub fn from_value(value: i64) -> Self {
9432        match value {
9433            0 => Self::Successful,
9434            1 => Self::InvalidPartyOnformation,
9435            2 => Self::UnknownInstrument,
9436            3 => Self::UnauthorizedToReportTrades,
9437            4 => Self::InvalidTradeType,
9438            99 => Self::Other,
9439            unrecognized => Self::Unrecognized(unrecognized),
9440        }
9441    }
9442
9443    pub fn value(self) -> i64 {
9444        match self {
9445            Self::Successful => 0,
9446            Self::InvalidPartyOnformation => 1,
9447            Self::UnknownInstrument => 2,
9448            Self::UnauthorizedToReportTrades => 3,
9449            Self::InvalidTradeType => 4,
9450            Self::Other => 99,
9451            Self::Unrecognized(value) => value,
9452        }
9453    }
9454}
9455
9456/// The values of the `SideMultiLegReportingType` (752) field.
9457#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9458pub enum SideMultiLegReportingType {
9459    /// `1`
9460    SingleSecurity,
9461    /// `2`
9462    IndividualLegOfAMultilegSecurity,
9463    /// `3`
9464    MultilegSecurity,
9465    /// A value the dictionary does not list.
9466    Unrecognized(i64),
9467}
9468
9469impl SideMultiLegReportingType {
9470    pub fn from_value(value: i64) -> Self {
9471        match value {
9472            1 => Self::SingleSecurity,
9473            2 => Self::IndividualLegOfAMultilegSecurity,
9474            3 => Self::MultilegSecurity,
9475            unrecognized => Self::Unrecognized(unrecognized),
9476        }
9477    }
9478
9479    pub fn value(self) -> i64 {
9480        match self {
9481            Self::SingleSecurity => 1,
9482            Self::IndividualLegOfAMultilegSecurity => 2,
9483            Self::MultilegSecurity => 3,
9484            Self::Unrecognized(value) => value,
9485        }
9486    }
9487}
9488
9489/// The values of the `TrdRegTimestampType` (770) field.
9490#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9491pub enum TrdRegTimestampType {
9492    /// `1`
9493    ExecutionTime,
9494    /// `2`
9495    TimeIn,
9496    /// `3`
9497    TimeOut,
9498    /// `4`
9499    BrokerReceipt,
9500    /// `5`
9501    BrokerExecution,
9502    /// A value the dictionary does not list.
9503    Unrecognized(i64),
9504}
9505
9506impl TrdRegTimestampType {
9507    pub fn from_value(value: i64) -> Self {
9508        match value {
9509            1 => Self::ExecutionTime,
9510            2 => Self::TimeIn,
9511            3 => Self::TimeOut,
9512            4 => Self::BrokerReceipt,
9513            5 => Self::BrokerExecution,
9514            unrecognized => Self::Unrecognized(unrecognized),
9515        }
9516    }
9517
9518    pub fn value(self) -> i64 {
9519        match self {
9520            Self::ExecutionTime => 1,
9521            Self::TimeIn => 2,
9522            Self::TimeOut => 3,
9523            Self::BrokerReceipt => 4,
9524            Self::BrokerExecution => 5,
9525            Self::Unrecognized(value) => value,
9526        }
9527    }
9528}
9529
9530/// The values of the `ConfirmType` (773) field.
9531#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9532pub enum ConfirmType {
9533    /// `1`
9534    Status,
9535    /// `2`
9536    Confirmation,
9537    /// `3`
9538    ConfirmationRequestRejected,
9539    /// A value the dictionary does not list.
9540    Unrecognized(i64),
9541}
9542
9543impl ConfirmType {
9544    pub fn from_value(value: i64) -> Self {
9545        match value {
9546            1 => Self::Status,
9547            2 => Self::Confirmation,
9548            3 => Self::ConfirmationRequestRejected,
9549            unrecognized => Self::Unrecognized(unrecognized),
9550        }
9551    }
9552
9553    pub fn value(self) -> i64 {
9554        match self {
9555            Self::Status => 1,
9556            Self::Confirmation => 2,
9557            Self::ConfirmationRequestRejected => 3,
9558            Self::Unrecognized(value) => value,
9559        }
9560    }
9561}
9562
9563/// The values of the `ConfirmRejReason` (774) field.
9564#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9565pub enum ConfirmRejReason {
9566    /// `1`
9567    MismatchedAccount,
9568    /// `2`
9569    MissingSettlementInstructions,
9570    /// `99`
9571    Other,
9572    /// A value the dictionary does not list.
9573    Unrecognized(i64),
9574}
9575
9576impl ConfirmRejReason {
9577    pub fn from_value(value: i64) -> Self {
9578        match value {
9579            1 => Self::MismatchedAccount,
9580            2 => Self::MissingSettlementInstructions,
9581            99 => Self::Other,
9582            unrecognized => Self::Unrecognized(unrecognized),
9583        }
9584    }
9585
9586    pub fn value(self) -> i64 {
9587        match self {
9588            Self::MismatchedAccount => 1,
9589            Self::MissingSettlementInstructions => 2,
9590            Self::Other => 99,
9591            Self::Unrecognized(value) => value,
9592        }
9593    }
9594}
9595
9596/// The values of the `BookingType` (775) field.
9597#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9598pub enum BookingType {
9599    /// `0`
9600    RegularBooking,
9601    /// `1`
9602    Cfd,
9603    /// `2`
9604    TotalReturnSwap,
9605    /// A value the dictionary does not list.
9606    Unrecognized(i64),
9607}
9608
9609impl BookingType {
9610    pub fn from_value(value: i64) -> Self {
9611        match value {
9612            0 => Self::RegularBooking,
9613            1 => Self::Cfd,
9614            2 => Self::TotalReturnSwap,
9615            unrecognized => Self::Unrecognized(unrecognized),
9616        }
9617    }
9618
9619    pub fn value(self) -> i64 {
9620        match self {
9621            Self::RegularBooking => 0,
9622            Self::Cfd => 1,
9623            Self::TotalReturnSwap => 2,
9624            Self::Unrecognized(value) => value,
9625        }
9626    }
9627}
9628
9629/// The values of the `AllocSettlInstType` (780) field.
9630#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9631pub enum AllocSettlInstType {
9632    /// `0`
9633    UseDefaultInstructions,
9634    /// `1`
9635    DeriveFromParametersProvided,
9636    /// `2`
9637    FullDetailsProvided,
9638    /// `3`
9639    SsidbiDsProvided,
9640    /// `4`
9641    PhoneForInstructions,
9642    /// A value the dictionary does not list.
9643    Unrecognized(i64),
9644}
9645
9646impl AllocSettlInstType {
9647    pub fn from_value(value: i64) -> Self {
9648        match value {
9649            0 => Self::UseDefaultInstructions,
9650            1 => Self::DeriveFromParametersProvided,
9651            2 => Self::FullDetailsProvided,
9652            3 => Self::SsidbiDsProvided,
9653            4 => Self::PhoneForInstructions,
9654            unrecognized => Self::Unrecognized(unrecognized),
9655        }
9656    }
9657
9658    pub fn value(self) -> i64 {
9659        match self {
9660            Self::UseDefaultInstructions => 0,
9661            Self::DeriveFromParametersProvided => 1,
9662            Self::FullDetailsProvided => 2,
9663            Self::SsidbiDsProvided => 3,
9664            Self::PhoneForInstructions => 4,
9665            Self::Unrecognized(value) => value,
9666        }
9667    }
9668}
9669
9670/// The values of the `DlvyInstType` (787) field.
9671#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9672pub enum DlvyInstType<'a> {
9673    /// `S`
9674    Securities,
9675    /// `C`
9676    Cash,
9677    /// A value the dictionary does not list.
9678    Unrecognized(&'a str),
9679}
9680
9681impl<'a> DlvyInstType<'a> {
9682    pub fn from_value(value: &'a str) -> Self {
9683        match value {
9684            "S" => Self::Securities,
9685            "C" => Self::Cash,
9686            unrecognized => Self::Unrecognized(unrecognized),
9687        }
9688    }
9689
9690    pub fn value(self) -> &'a str {
9691        match self {
9692            Self::Securities => "S",
9693            Self::Cash => "C",
9694            Self::Unrecognized(value) => value,
9695        }
9696    }
9697}
9698
9699impl<'a> From<&'a str> for DlvyInstType<'a> {
9700    fn from(value: &'a str) -> Self {
9701        Self::from_value(value)
9702    }
9703}
9704
9705/// The values of the `TerminationType` (788) field.
9706#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9707pub enum TerminationType {
9708    /// `1`
9709    Overnight,
9710    /// `2`
9711    Term,
9712    /// `3`
9713    Flexible,
9714    /// `4`
9715    Open,
9716    /// A value the dictionary does not list.
9717    Unrecognized(i64),
9718}
9719
9720impl TerminationType {
9721    pub fn from_value(value: i64) -> Self {
9722        match value {
9723            1 => Self::Overnight,
9724            2 => Self::Term,
9725            3 => Self::Flexible,
9726            4 => Self::Open,
9727            unrecognized => Self::Unrecognized(unrecognized),
9728        }
9729    }
9730
9731    pub fn value(self) -> i64 {
9732        match self {
9733            Self::Overnight => 1,
9734            Self::Term => 2,
9735            Self::Flexible => 3,
9736            Self::Open => 4,
9737            Self::Unrecognized(value) => value,
9738        }
9739    }
9740}
9741
9742/// The values of the `SettlInstReqRejCode` (792) field.
9743#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9744pub enum SettlInstReqRejCode {
9745    /// `0`
9746    UnableToProcessRequest,
9747    /// `1`
9748    UnknownAccount,
9749    /// `2`
9750    NoMatchingSettlementInstructionsFound,
9751    /// `99`
9752    Other,
9753    /// A value the dictionary does not list.
9754    Unrecognized(i64),
9755}
9756
9757impl SettlInstReqRejCode {
9758    pub fn from_value(value: i64) -> Self {
9759        match value {
9760            0 => Self::UnableToProcessRequest,
9761            1 => Self::UnknownAccount,
9762            2 => Self::NoMatchingSettlementInstructionsFound,
9763            99 => Self::Other,
9764            unrecognized => Self::Unrecognized(unrecognized),
9765        }
9766    }
9767
9768    pub fn value(self) -> i64 {
9769        match self {
9770            Self::UnableToProcessRequest => 0,
9771            Self::UnknownAccount => 1,
9772            Self::NoMatchingSettlementInstructionsFound => 2,
9773            Self::Other => 99,
9774            Self::Unrecognized(value) => value,
9775        }
9776    }
9777}
9778
9779/// The values of the `AllocReportType` (794) field.
9780#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9781pub enum AllocReportType {
9782    /// `3`
9783    SellsideCalculatedUsingPreliminary,
9784    /// `4`
9785    SellsideCalculatedWithoutPreliminary,
9786    /// `5`
9787    WarehouseRecap,
9788    /// `8`
9789    RequestToIntermediary,
9790    /// A value the dictionary does not list.
9791    Unrecognized(i64),
9792}
9793
9794impl AllocReportType {
9795    pub fn from_value(value: i64) -> Self {
9796        match value {
9797            3 => Self::SellsideCalculatedUsingPreliminary,
9798            4 => Self::SellsideCalculatedWithoutPreliminary,
9799            5 => Self::WarehouseRecap,
9800            8 => Self::RequestToIntermediary,
9801            unrecognized => Self::Unrecognized(unrecognized),
9802        }
9803    }
9804
9805    pub fn value(self) -> i64 {
9806        match self {
9807            Self::SellsideCalculatedUsingPreliminary => 3,
9808            Self::SellsideCalculatedWithoutPreliminary => 4,
9809            Self::WarehouseRecap => 5,
9810            Self::RequestToIntermediary => 8,
9811            Self::Unrecognized(value) => value,
9812        }
9813    }
9814}
9815
9816/// The values of the `AllocCancReplaceReason` (796) field.
9817#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9818pub enum AllocCancReplaceReason {
9819    /// `1`
9820    OriginalDetailsIncomplete,
9821    /// `2`
9822    ChangeInUnderlyingOrderDetails,
9823    /// `99`
9824    Other,
9825    /// A value the dictionary does not list.
9826    Unrecognized(i64),
9827}
9828
9829impl AllocCancReplaceReason {
9830    pub fn from_value(value: i64) -> Self {
9831        match value {
9832            1 => Self::OriginalDetailsIncomplete,
9833            2 => Self::ChangeInUnderlyingOrderDetails,
9834            99 => Self::Other,
9835            unrecognized => Self::Unrecognized(unrecognized),
9836        }
9837    }
9838
9839    pub fn value(self) -> i64 {
9840        match self {
9841            Self::OriginalDetailsIncomplete => 1,
9842            Self::ChangeInUnderlyingOrderDetails => 2,
9843            Self::Other => 99,
9844            Self::Unrecognized(value) => value,
9845        }
9846    }
9847}
9848
9849/// The values of the `AllocAccountType` (798) field.
9850#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9851pub enum AllocAccountType {
9852    /// `1`
9853    CarriedCustomerSide,
9854    /// `2`
9855    CarriedNonCustomerSide,
9856    /// `3`
9857    HouseTrader,
9858    /// `4`
9859    FloorTrader,
9860    /// `6`
9861    CarriedNonCustomerSideCrossMargined,
9862    /// `7`
9863    HouseTraderCrossMargined,
9864    /// `8`
9865    JointBackOfficeAccount,
9866    /// A value the dictionary does not list.
9867    Unrecognized(i64),
9868}
9869
9870impl AllocAccountType {
9871    pub fn from_value(value: i64) -> Self {
9872        match value {
9873            1 => Self::CarriedCustomerSide,
9874            2 => Self::CarriedNonCustomerSide,
9875            3 => Self::HouseTrader,
9876            4 => Self::FloorTrader,
9877            6 => Self::CarriedNonCustomerSideCrossMargined,
9878            7 => Self::HouseTraderCrossMargined,
9879            8 => Self::JointBackOfficeAccount,
9880            unrecognized => Self::Unrecognized(unrecognized),
9881        }
9882    }
9883
9884    pub fn value(self) -> i64 {
9885        match self {
9886            Self::CarriedCustomerSide => 1,
9887            Self::CarriedNonCustomerSide => 2,
9888            Self::HouseTrader => 3,
9889            Self::FloorTrader => 4,
9890            Self::CarriedNonCustomerSideCrossMargined => 6,
9891            Self::HouseTraderCrossMargined => 7,
9892            Self::JointBackOfficeAccount => 8,
9893            Self::Unrecognized(value) => value,
9894        }
9895    }
9896}
9897
9898/// The values of the `PartySubIDType` (803) field.
9899#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
9900pub enum PartySubIDType {
9901    /// `1`
9902    Firm,
9903    /// `2`
9904    Person,
9905    /// `3`
9906    System,
9907    /// `4`
9908    Application,
9909    /// `5`
9910    FullLegalNameOfFirm,
9911    /// `6`
9912    PostalAddress,
9913    /// `7`
9914    PhoneNumber,
9915    /// `8`
9916    EmailAddress,
9917    /// `9`
9918    ContactName,
9919    /// `10`
9920    SecuritiesAccountNumber,
9921    /// `11`
9922    RegistrationNumber,
9923    /// `12`
9924    RegisteredAddressForConfirmation,
9925    /// `13`
9926    RegulatoryStatus,
9927    /// `14`
9928    RegistrationName,
9929    /// `15`
9930    CashAccountNumber,
9931    /// `16`
9932    Bic,
9933    /// `17`
9934    CsdParticipantMemberCode,
9935    /// `18`
9936    RegisteredAddress,
9937    /// `19`
9938    FundAccountName,
9939    /// `20`
9940    TelexNumber,
9941    /// `21`
9942    FaxNumber,
9943    /// `22`
9944    SecuritiesAccountName,
9945    /// `23`
9946    CashAccountName,
9947    /// `24`
9948    Department,
9949    /// `25`
9950    LocationDesk,
9951    /// `26`
9952    PositionAccountType,
9953    /// A value the dictionary does not list.
9954    Unrecognized(i64),
9955}
9956
9957impl PartySubIDType {
9958    pub fn from_value(value: i64) -> Self {
9959        match value {
9960            1 => Self::Firm,
9961            2 => Self::Person,
9962            3 => Self::System,
9963            4 => Self::Application,
9964            5 => Self::FullLegalNameOfFirm,
9965            6 => Self::PostalAddress,
9966            7 => Self::PhoneNumber,
9967            8 => Self::EmailAddress,
9968            9 => Self::ContactName,
9969            10 => Self::SecuritiesAccountNumber,
9970            11 => Self::RegistrationNumber,
9971            12 => Self::RegisteredAddressForConfirmation,
9972            13 => Self::RegulatoryStatus,
9973            14 => Self::RegistrationName,
9974            15 => Self::CashAccountNumber,
9975            16 => Self::Bic,
9976            17 => Self::CsdParticipantMemberCode,
9977            18 => Self::RegisteredAddress,
9978            19 => Self::FundAccountName,
9979            20 => Self::TelexNumber,
9980            21 => Self::FaxNumber,
9981            22 => Self::SecuritiesAccountName,
9982            23 => Self::CashAccountName,
9983            24 => Self::Department,
9984            25 => Self::LocationDesk,
9985            26 => Self::PositionAccountType,
9986            unrecognized => Self::Unrecognized(unrecognized),
9987        }
9988    }
9989
9990    pub fn value(self) -> i64 {
9991        match self {
9992            Self::Firm => 1,
9993            Self::Person => 2,
9994            Self::System => 3,
9995            Self::Application => 4,
9996            Self::FullLegalNameOfFirm => 5,
9997            Self::PostalAddress => 6,
9998            Self::PhoneNumber => 7,
9999            Self::EmailAddress => 8,
10000            Self::ContactName => 9,
10001            Self::SecuritiesAccountNumber => 10,
10002            Self::RegistrationNumber => 11,
10003            Self::RegisteredAddressForConfirmation => 12,
10004            Self::RegulatoryStatus => 13,
10005            Self::RegistrationName => 14,
10006            Self::CashAccountNumber => 15,
10007            Self::Bic => 16,
10008            Self::CsdParticipantMemberCode => 17,
10009            Self::RegisteredAddress => 18,
10010            Self::FundAccountName => 19,
10011            Self::TelexNumber => 20,
10012            Self::FaxNumber => 21,
10013            Self::SecuritiesAccountName => 22,
10014            Self::CashAccountName => 23,
10015            Self::Department => 24,
10016            Self::LocationDesk => 25,
10017            Self::PositionAccountType => 26,
10018            Self::Unrecognized(value) => value,
10019        }
10020    }
10021}
10022
10023/// The values of the `AllocIntermedReqType` (808) field.
10024#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10025pub enum AllocIntermedReqType {
10026    /// `1`
10027    PendingAccept,
10028    /// `2`
10029    PendingRelease,
10030    /// `3`
10031    PendingReversal,
10032    /// `4`
10033    Accept,
10034    /// `5`
10035    BlockLevelReject,
10036    /// `6`
10037    AccountLevelReject,
10038    /// A value the dictionary does not list.
10039    Unrecognized(i64),
10040}
10041
10042impl AllocIntermedReqType {
10043    pub fn from_value(value: i64) -> Self {
10044        match value {
10045            1 => Self::PendingAccept,
10046            2 => Self::PendingRelease,
10047            3 => Self::PendingReversal,
10048            4 => Self::Accept,
10049            5 => Self::BlockLevelReject,
10050            6 => Self::AccountLevelReject,
10051            unrecognized => Self::Unrecognized(unrecognized),
10052        }
10053    }
10054
10055    pub fn value(self) -> i64 {
10056        match self {
10057            Self::PendingAccept => 1,
10058            Self::PendingRelease => 2,
10059            Self::PendingReversal => 3,
10060            Self::Accept => 4,
10061            Self::BlockLevelReject => 5,
10062            Self::AccountLevelReject => 6,
10063            Self::Unrecognized(value) => value,
10064        }
10065    }
10066}
10067
10068/// The values of the `ApplQueueResolution` (814) field.
10069#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10070pub enum ApplQueueResolution {
10071    /// `0`
10072    NoActionTaken,
10073    /// `1`
10074    QueueFlushed,
10075    /// `2`
10076    OverlayLast,
10077    /// `3`
10078    EndSession,
10079    /// A value the dictionary does not list.
10080    Unrecognized(i64),
10081}
10082
10083impl ApplQueueResolution {
10084    pub fn from_value(value: i64) -> Self {
10085        match value {
10086            0 => Self::NoActionTaken,
10087            1 => Self::QueueFlushed,
10088            2 => Self::OverlayLast,
10089            3 => Self::EndSession,
10090            unrecognized => Self::Unrecognized(unrecognized),
10091        }
10092    }
10093
10094    pub fn value(self) -> i64 {
10095        match self {
10096            Self::NoActionTaken => 0,
10097            Self::QueueFlushed => 1,
10098            Self::OverlayLast => 2,
10099            Self::EndSession => 3,
10100            Self::Unrecognized(value) => value,
10101        }
10102    }
10103}
10104
10105/// The values of the `ApplQueueAction` (815) field.
10106#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10107pub enum ApplQueueAction {
10108    /// `0`
10109    NoActionTaken,
10110    /// `1`
10111    QueueFlushed,
10112    /// `2`
10113    OverlayLast,
10114    /// `3`
10115    EndSession,
10116    /// A value the dictionary does not list.
10117    Unrecognized(i64),
10118}
10119
10120impl ApplQueueAction {
10121    pub fn from_value(value: i64) -> Self {
10122        match value {
10123            0 => Self::NoActionTaken,
10124            1 => Self::QueueFlushed,
10125            2 => Self::OverlayLast,
10126            3 => Self::EndSession,
10127            unrecognized => Self::Unrecognized(unrecognized),
10128        }
10129    }
10130
10131    pub fn value(self) -> i64 {
10132        match self {
10133            Self::NoActionTaken => 0,
10134            Self::QueueFlushed => 1,
10135            Self::OverlayLast => 2,
10136            Self::EndSession => 3,
10137            Self::Unrecognized(value) => value,
10138        }
10139    }
10140}
10141
10142/// The values of the `AvgPxIndicator` (819) field.
10143#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10144pub enum AvgPxIndicator {
10145    /// `0`
10146    NoAveragePricing,
10147    /// `1`
10148    Trade,
10149    /// `2`
10150    LastTrade,
10151    /// A value the dictionary does not list.
10152    Unrecognized(i64),
10153}
10154
10155impl AvgPxIndicator {
10156    pub fn from_value(value: i64) -> Self {
10157        match value {
10158            0 => Self::NoAveragePricing,
10159            1 => Self::Trade,
10160            2 => Self::LastTrade,
10161            unrecognized => Self::Unrecognized(unrecognized),
10162        }
10163    }
10164
10165    pub fn value(self) -> i64 {
10166        match self {
10167            Self::NoAveragePricing => 0,
10168            Self::Trade => 1,
10169            Self::LastTrade => 2,
10170            Self::Unrecognized(value) => value,
10171        }
10172    }
10173}
10174
10175/// The values of the `TradeAllocIndicator` (826) field.
10176#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10177pub enum TradeAllocIndicator {
10178    /// `0`
10179    AllocationNotRequired,
10180    /// `1`
10181    AllocationRequired,
10182    /// `2`
10183    UseAllocationProvidedWithTheTrade,
10184    /// A value the dictionary does not list.
10185    Unrecognized(i64),
10186}
10187
10188impl TradeAllocIndicator {
10189    pub fn from_value(value: i64) -> Self {
10190        match value {
10191            0 => Self::AllocationNotRequired,
10192            1 => Self::AllocationRequired,
10193            2 => Self::UseAllocationProvidedWithTheTrade,
10194            unrecognized => Self::Unrecognized(unrecognized),
10195        }
10196    }
10197
10198    pub fn value(self) -> i64 {
10199        match self {
10200            Self::AllocationNotRequired => 0,
10201            Self::AllocationRequired => 1,
10202            Self::UseAllocationProvidedWithTheTrade => 2,
10203            Self::Unrecognized(value) => value,
10204        }
10205    }
10206}
10207
10208/// The values of the `ExpirationCycle` (827) field.
10209#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10210pub enum ExpirationCycle {
10211    /// `0`
10212    ExpireOnTradingSessionClose,
10213    /// `1`
10214    ExpireOnTradingSessionOpen,
10215    /// A value the dictionary does not list.
10216    Unrecognized(i64),
10217}
10218
10219impl ExpirationCycle {
10220    pub fn from_value(value: i64) -> Self {
10221        match value {
10222            0 => Self::ExpireOnTradingSessionClose,
10223            1 => Self::ExpireOnTradingSessionOpen,
10224            unrecognized => Self::Unrecognized(unrecognized),
10225        }
10226    }
10227
10228    pub fn value(self) -> i64 {
10229        match self {
10230            Self::ExpireOnTradingSessionClose => 0,
10231            Self::ExpireOnTradingSessionOpen => 1,
10232            Self::Unrecognized(value) => value,
10233        }
10234    }
10235}
10236
10237/// The values of the `TrdType` (828) field.
10238#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10239pub enum TrdType {
10240    /// `0`
10241    RegularTrade,
10242    /// `1`
10243    BlockTrade,
10244    /// `2`
10245    Efp,
10246    /// `3`
10247    Transfer,
10248    /// `4`
10249    LateTrade,
10250    /// `5`
10251    TTrade,
10252    /// `6`
10253    WeightedAveragePriceTrade,
10254    /// `7`
10255    BunchedTrade,
10256    /// `8`
10257    LateBunchedTrade,
10258    /// `9`
10259    PriorReferencePriceTrade,
10260    /// `10`
10261    AfterHoursTrade,
10262    /// A value the dictionary does not list.
10263    Unrecognized(i64),
10264}
10265
10266impl TrdType {
10267    pub fn from_value(value: i64) -> Self {
10268        match value {
10269            0 => Self::RegularTrade,
10270            1 => Self::BlockTrade,
10271            2 => Self::Efp,
10272            3 => Self::Transfer,
10273            4 => Self::LateTrade,
10274            5 => Self::TTrade,
10275            6 => Self::WeightedAveragePriceTrade,
10276            7 => Self::BunchedTrade,
10277            8 => Self::LateBunchedTrade,
10278            9 => Self::PriorReferencePriceTrade,
10279            10 => Self::AfterHoursTrade,
10280            unrecognized => Self::Unrecognized(unrecognized),
10281        }
10282    }
10283
10284    pub fn value(self) -> i64 {
10285        match self {
10286            Self::RegularTrade => 0,
10287            Self::BlockTrade => 1,
10288            Self::Efp => 2,
10289            Self::Transfer => 3,
10290            Self::LateTrade => 4,
10291            Self::TTrade => 5,
10292            Self::WeightedAveragePriceTrade => 6,
10293            Self::BunchedTrade => 7,
10294            Self::LateBunchedTrade => 8,
10295            Self::PriorReferencePriceTrade => 9,
10296            Self::AfterHoursTrade => 10,
10297            Self::Unrecognized(value) => value,
10298        }
10299    }
10300}
10301
10302/// The values of the `PegMoveType` (835) field.
10303#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10304pub enum PegMoveType {
10305    /// `0`
10306    Floating,
10307    /// `1`
10308    Fixed,
10309    /// A value the dictionary does not list.
10310    Unrecognized(i64),
10311}
10312
10313impl PegMoveType {
10314    pub fn from_value(value: i64) -> Self {
10315        match value {
10316            0 => Self::Floating,
10317            1 => Self::Fixed,
10318            unrecognized => Self::Unrecognized(unrecognized),
10319        }
10320    }
10321
10322    pub fn value(self) -> i64 {
10323        match self {
10324            Self::Floating => 0,
10325            Self::Fixed => 1,
10326            Self::Unrecognized(value) => value,
10327        }
10328    }
10329}
10330
10331/// The values of the `PegOffsetType` (836) field.
10332#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10333pub enum PegOffsetType {
10334    /// `0`
10335    Price,
10336    /// `1`
10337    BasisPoints,
10338    /// `2`
10339    Ticks,
10340    /// `3`
10341    PriceTier,
10342    /// A value the dictionary does not list.
10343    Unrecognized(i64),
10344}
10345
10346impl PegOffsetType {
10347    pub fn from_value(value: i64) -> Self {
10348        match value {
10349            0 => Self::Price,
10350            1 => Self::BasisPoints,
10351            2 => Self::Ticks,
10352            3 => Self::PriceTier,
10353            unrecognized => Self::Unrecognized(unrecognized),
10354        }
10355    }
10356
10357    pub fn value(self) -> i64 {
10358        match self {
10359            Self::Price => 0,
10360            Self::BasisPoints => 1,
10361            Self::Ticks => 2,
10362            Self::PriceTier => 3,
10363            Self::Unrecognized(value) => value,
10364        }
10365    }
10366}
10367
10368/// The values of the `PegLimitType` (837) field.
10369#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10370pub enum PegLimitType {
10371    /// `0`
10372    OrBetter,
10373    /// `1`
10374    Strict,
10375    /// `2`
10376    OrWorse,
10377    /// A value the dictionary does not list.
10378    Unrecognized(i64),
10379}
10380
10381impl PegLimitType {
10382    pub fn from_value(value: i64) -> Self {
10383        match value {
10384            0 => Self::OrBetter,
10385            1 => Self::Strict,
10386            2 => Self::OrWorse,
10387            unrecognized => Self::Unrecognized(unrecognized),
10388        }
10389    }
10390
10391    pub fn value(self) -> i64 {
10392        match self {
10393            Self::OrBetter => 0,
10394            Self::Strict => 1,
10395            Self::OrWorse => 2,
10396            Self::Unrecognized(value) => value,
10397        }
10398    }
10399}
10400
10401/// The values of the `PegRoundDirection` (838) field.
10402#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10403pub enum PegRoundDirection {
10404    /// `1`
10405    MoreAggressive,
10406    /// `2`
10407    MorePassive,
10408    /// A value the dictionary does not list.
10409    Unrecognized(i64),
10410}
10411
10412impl PegRoundDirection {
10413    pub fn from_value(value: i64) -> Self {
10414        match value {
10415            1 => Self::MoreAggressive,
10416            2 => Self::MorePassive,
10417            unrecognized => Self::Unrecognized(unrecognized),
10418        }
10419    }
10420
10421    pub fn value(self) -> i64 {
10422        match self {
10423            Self::MoreAggressive => 1,
10424            Self::MorePassive => 2,
10425            Self::Unrecognized(value) => value,
10426        }
10427    }
10428}
10429
10430/// The values of the `PegScope` (840) field.
10431#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10432pub enum PegScope {
10433    /// `1`
10434    Local,
10435    /// `2`
10436    National,
10437    /// `3`
10438    Global,
10439    /// `4`
10440    NationalExcludingLocal,
10441    /// A value the dictionary does not list.
10442    Unrecognized(i64),
10443}
10444
10445impl PegScope {
10446    pub fn from_value(value: i64) -> Self {
10447        match value {
10448            1 => Self::Local,
10449            2 => Self::National,
10450            3 => Self::Global,
10451            4 => Self::NationalExcludingLocal,
10452            unrecognized => Self::Unrecognized(unrecognized),
10453        }
10454    }
10455
10456    pub fn value(self) -> i64 {
10457        match self {
10458            Self::Local => 1,
10459            Self::National => 2,
10460            Self::Global => 3,
10461            Self::NationalExcludingLocal => 4,
10462            Self::Unrecognized(value) => value,
10463        }
10464    }
10465}
10466
10467/// The values of the `DiscretionMoveType` (841) field.
10468#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10469pub enum DiscretionMoveType {
10470    /// `0`
10471    Floating,
10472    /// `1`
10473    Fixed,
10474    /// A value the dictionary does not list.
10475    Unrecognized(i64),
10476}
10477
10478impl DiscretionMoveType {
10479    pub fn from_value(value: i64) -> Self {
10480        match value {
10481            0 => Self::Floating,
10482            1 => Self::Fixed,
10483            unrecognized => Self::Unrecognized(unrecognized),
10484        }
10485    }
10486
10487    pub fn value(self) -> i64 {
10488        match self {
10489            Self::Floating => 0,
10490            Self::Fixed => 1,
10491            Self::Unrecognized(value) => value,
10492        }
10493    }
10494}
10495
10496/// The values of the `DiscretionOffsetType` (842) field.
10497#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10498pub enum DiscretionOffsetType {
10499    /// `0`
10500    Price,
10501    /// `1`
10502    BasisPoints,
10503    /// `2`
10504    Ticks,
10505    /// `3`
10506    PriceTier,
10507    /// A value the dictionary does not list.
10508    Unrecognized(i64),
10509}
10510
10511impl DiscretionOffsetType {
10512    pub fn from_value(value: i64) -> Self {
10513        match value {
10514            0 => Self::Price,
10515            1 => Self::BasisPoints,
10516            2 => Self::Ticks,
10517            3 => Self::PriceTier,
10518            unrecognized => Self::Unrecognized(unrecognized),
10519        }
10520    }
10521
10522    pub fn value(self) -> i64 {
10523        match self {
10524            Self::Price => 0,
10525            Self::BasisPoints => 1,
10526            Self::Ticks => 2,
10527            Self::PriceTier => 3,
10528            Self::Unrecognized(value) => value,
10529        }
10530    }
10531}
10532
10533/// The values of the `DiscretionLimitType` (843) field.
10534#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10535pub enum DiscretionLimitType {
10536    /// `0`
10537    OrBetter,
10538    /// `1`
10539    Strict,
10540    /// `2`
10541    OrWorse,
10542    /// A value the dictionary does not list.
10543    Unrecognized(i64),
10544}
10545
10546impl DiscretionLimitType {
10547    pub fn from_value(value: i64) -> Self {
10548        match value {
10549            0 => Self::OrBetter,
10550            1 => Self::Strict,
10551            2 => Self::OrWorse,
10552            unrecognized => Self::Unrecognized(unrecognized),
10553        }
10554    }
10555
10556    pub fn value(self) -> i64 {
10557        match self {
10558            Self::OrBetter => 0,
10559            Self::Strict => 1,
10560            Self::OrWorse => 2,
10561            Self::Unrecognized(value) => value,
10562        }
10563    }
10564}
10565
10566/// The values of the `DiscretionRoundDirection` (844) field.
10567#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10568pub enum DiscretionRoundDirection {
10569    /// `1`
10570    MoreAggressive,
10571    /// `2`
10572    MorePassive,
10573    /// A value the dictionary does not list.
10574    Unrecognized(i64),
10575}
10576
10577impl DiscretionRoundDirection {
10578    pub fn from_value(value: i64) -> Self {
10579        match value {
10580            1 => Self::MoreAggressive,
10581            2 => Self::MorePassive,
10582            unrecognized => Self::Unrecognized(unrecognized),
10583        }
10584    }
10585
10586    pub fn value(self) -> i64 {
10587        match self {
10588            Self::MoreAggressive => 1,
10589            Self::MorePassive => 2,
10590            Self::Unrecognized(value) => value,
10591        }
10592    }
10593}
10594
10595/// The values of the `DiscretionScope` (846) field.
10596#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10597pub enum DiscretionScope {
10598    /// `1`
10599    Local,
10600    /// `2`
10601    National,
10602    /// `3`
10603    Global,
10604    /// `4`
10605    NationalExcludingLocal,
10606    /// A value the dictionary does not list.
10607    Unrecognized(i64),
10608}
10609
10610impl DiscretionScope {
10611    pub fn from_value(value: i64) -> Self {
10612        match value {
10613            1 => Self::Local,
10614            2 => Self::National,
10615            3 => Self::Global,
10616            4 => Self::NationalExcludingLocal,
10617            unrecognized => Self::Unrecognized(unrecognized),
10618        }
10619    }
10620
10621    pub fn value(self) -> i64 {
10622        match self {
10623            Self::Local => 1,
10624            Self::National => 2,
10625            Self::Global => 3,
10626            Self::NationalExcludingLocal => 4,
10627            Self::Unrecognized(value) => value,
10628        }
10629    }
10630}
10631
10632/// The values of the `TargetStrategy` (847) field.
10633#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10634pub enum TargetStrategy {
10635    /// `1`
10636    Vwap,
10637    /// `2`
10638    Participate,
10639    /// `3`
10640    MininizeMarketImpact,
10641    /// A value the dictionary does not list.
10642    Unrecognized(i64),
10643}
10644
10645impl TargetStrategy {
10646    pub fn from_value(value: i64) -> Self {
10647        match value {
10648            1 => Self::Vwap,
10649            2 => Self::Participate,
10650            3 => Self::MininizeMarketImpact,
10651            unrecognized => Self::Unrecognized(unrecognized),
10652        }
10653    }
10654
10655    pub fn value(self) -> i64 {
10656        match self {
10657            Self::Vwap => 1,
10658            Self::Participate => 2,
10659            Self::MininizeMarketImpact => 3,
10660            Self::Unrecognized(value) => value,
10661        }
10662    }
10663}
10664
10665/// The values of the `LastLiquidityInd` (851) field.
10666#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10667pub enum LastLiquidityInd {
10668    /// `1`
10669    AddedLiquidity,
10670    /// `2`
10671    RemovedLiquidity,
10672    /// `3`
10673    LiquidityRoutedOut,
10674    /// A value the dictionary does not list.
10675    Unrecognized(i64),
10676}
10677
10678impl LastLiquidityInd {
10679    pub fn from_value(value: i64) -> Self {
10680        match value {
10681            1 => Self::AddedLiquidity,
10682            2 => Self::RemovedLiquidity,
10683            3 => Self::LiquidityRoutedOut,
10684            unrecognized => Self::Unrecognized(unrecognized),
10685        }
10686    }
10687
10688    pub fn value(self) -> i64 {
10689        match self {
10690            Self::AddedLiquidity => 1,
10691            Self::RemovedLiquidity => 2,
10692            Self::LiquidityRoutedOut => 3,
10693            Self::Unrecognized(value) => value,
10694        }
10695    }
10696}
10697
10698/// The values of the `ShortSaleReason` (853) field.
10699#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10700pub enum ShortSaleReason {
10701    /// `0`
10702    DealerSoldShort,
10703    /// `1`
10704    DealerSoldShortExempt,
10705    /// `2`
10706    SellingCustomerSoldShort,
10707    /// `3`
10708    SellingCustomerSoldShortExempt,
10709    /// `4`
10710    QualifiedServiceRepresentative,
10711    /// `5`
10712    QsrOrAguContraSideSoldShortExempt,
10713    /// A value the dictionary does not list.
10714    Unrecognized(i64),
10715}
10716
10717impl ShortSaleReason {
10718    pub fn from_value(value: i64) -> Self {
10719        match value {
10720            0 => Self::DealerSoldShort,
10721            1 => Self::DealerSoldShortExempt,
10722            2 => Self::SellingCustomerSoldShort,
10723            3 => Self::SellingCustomerSoldShortExempt,
10724            4 => Self::QualifiedServiceRepresentative,
10725            5 => Self::QsrOrAguContraSideSoldShortExempt,
10726            unrecognized => Self::Unrecognized(unrecognized),
10727        }
10728    }
10729
10730    pub fn value(self) -> i64 {
10731        match self {
10732            Self::DealerSoldShort => 0,
10733            Self::DealerSoldShortExempt => 1,
10734            Self::SellingCustomerSoldShort => 2,
10735            Self::SellingCustomerSoldShortExempt => 3,
10736            Self::QualifiedServiceRepresentative => 4,
10737            Self::QsrOrAguContraSideSoldShortExempt => 5,
10738            Self::Unrecognized(value) => value,
10739        }
10740    }
10741}
10742
10743/// The values of the `QtyType` (854) field.
10744#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10745pub enum QtyType {
10746    /// `0`
10747    Units,
10748    /// `1`
10749    Contracts,
10750    /// A value the dictionary does not list.
10751    Unrecognized(i64),
10752}
10753
10754impl QtyType {
10755    pub fn from_value(value: i64) -> Self {
10756        match value {
10757            0 => Self::Units,
10758            1 => Self::Contracts,
10759            unrecognized => Self::Unrecognized(unrecognized),
10760        }
10761    }
10762
10763    pub fn value(self) -> i64 {
10764        match self {
10765            Self::Units => 0,
10766            Self::Contracts => 1,
10767            Self::Unrecognized(value) => value,
10768        }
10769    }
10770}
10771
10772/// The values of the `TradeReportType` (856) field.
10773#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10774pub enum TradeReportType {
10775    /// `0`
10776    Submit,
10777    /// `1`
10778    Alleged,
10779    /// `2`
10780    Accept,
10781    /// `3`
10782    Decline,
10783    /// `4`
10784    Addendum,
10785    /// `5`
10786    No,
10787    /// `6`
10788    TradeReportCancel,
10789    /// `7`
10790    LockedIn,
10791    /// A value the dictionary does not list.
10792    Unrecognized(i64),
10793}
10794
10795impl TradeReportType {
10796    pub fn from_value(value: i64) -> Self {
10797        match value {
10798            0 => Self::Submit,
10799            1 => Self::Alleged,
10800            2 => Self::Accept,
10801            3 => Self::Decline,
10802            4 => Self::Addendum,
10803            5 => Self::No,
10804            6 => Self::TradeReportCancel,
10805            7 => Self::LockedIn,
10806            unrecognized => Self::Unrecognized(unrecognized),
10807        }
10808    }
10809
10810    pub fn value(self) -> i64 {
10811        match self {
10812            Self::Submit => 0,
10813            Self::Alleged => 1,
10814            Self::Accept => 2,
10815            Self::Decline => 3,
10816            Self::Addendum => 4,
10817            Self::No => 5,
10818            Self::TradeReportCancel => 6,
10819            Self::LockedIn => 7,
10820            Self::Unrecognized(value) => value,
10821        }
10822    }
10823}
10824
10825/// The values of the `AllocNoOrdersType` (857) field.
10826#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10827pub enum AllocNoOrdersType {
10828    /// `0`
10829    NotSpecified,
10830    /// `1`
10831    ExplicitListProvided,
10832    /// A value the dictionary does not list.
10833    Unrecognized(i64),
10834}
10835
10836impl AllocNoOrdersType {
10837    pub fn from_value(value: i64) -> Self {
10838        match value {
10839            0 => Self::NotSpecified,
10840            1 => Self::ExplicitListProvided,
10841            unrecognized => Self::Unrecognized(unrecognized),
10842        }
10843    }
10844
10845    pub fn value(self) -> i64 {
10846        match self {
10847            Self::NotSpecified => 0,
10848            Self::ExplicitListProvided => 1,
10849            Self::Unrecognized(value) => value,
10850        }
10851    }
10852}
10853
10854/// The values of the `EventType` (865) field.
10855#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10856pub enum EventType {
10857    /// `1`
10858    Put,
10859    /// `2`
10860    Call,
10861    /// `3`
10862    Tender,
10863    /// `4`
10864    SinkingFundCall,
10865    /// `99`
10866    Other,
10867    /// A value the dictionary does not list.
10868    Unrecognized(i64),
10869}
10870
10871impl EventType {
10872    pub fn from_value(value: i64) -> Self {
10873        match value {
10874            1 => Self::Put,
10875            2 => Self::Call,
10876            3 => Self::Tender,
10877            4 => Self::SinkingFundCall,
10878            99 => Self::Other,
10879            unrecognized => Self::Unrecognized(unrecognized),
10880        }
10881    }
10882
10883    pub fn value(self) -> i64 {
10884        match self {
10885            Self::Put => 1,
10886            Self::Call => 2,
10887            Self::Tender => 3,
10888            Self::SinkingFundCall => 4,
10889            Self::Other => 99,
10890            Self::Unrecognized(value) => value,
10891        }
10892    }
10893}
10894
10895/// The values of the `InstrAttribType` (871) field.
10896#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
10897pub enum InstrAttribType {
10898    /// `1`
10899    Flat,
10900    /// `2`
10901    ZeroCoupon,
10902    /// `3`
10903    InterestBearing,
10904    /// `4`
10905    NoPeriodicPayments,
10906    /// `5`
10907    VariableRate,
10908    /// `6`
10909    LessFeeForPut,
10910    /// `7`
10911    SteppedCoupon,
10912    /// `8`
10913    CouponPeriod,
10914    /// `9`
10915    When,
10916    /// `10`
10917    OriginalIssueDiscount,
10918    /// `11`
10919    Callable,
10920    /// `12`
10921    EscrowedToMaturity,
10922    /// `13`
10923    EscrowedToRedemptionDate,
10924    /// `14`
10925    PreRefunded,
10926    /// `15`
10927    InDefault,
10928    /// `16`
10929    Unrated,
10930    /// `17`
10931    Taxable,
10932    /// `18`
10933    Indexed,
10934    /// `19`
10935    SubjectToAlternativeMinimumTax,
10936    /// `20`
10937    OriginalIssueDiscountPrice,
10938    /// `21`
10939    CallableBelowMaturityValue,
10940    /// `22`
10941    CallableWithoutNotice,
10942    /// `99`
10943    Text,
10944    /// A value the dictionary does not list.
10945    Unrecognized(i64),
10946}
10947
10948impl InstrAttribType {
10949    pub fn from_value(value: i64) -> Self {
10950        match value {
10951            1 => Self::Flat,
10952            2 => Self::ZeroCoupon,
10953            3 => Self::InterestBearing,
10954            4 => Self::NoPeriodicPayments,
10955            5 => Self::VariableRate,
10956            6 => Self::LessFeeForPut,
10957            7 => Self::SteppedCoupon,
10958            8 => Self::CouponPeriod,
10959            9 => Self::When,
10960            10 => Self::OriginalIssueDiscount,
10961            11 => Self::Callable,
10962            12 => Self::EscrowedToMaturity,
10963            13 => Self::EscrowedToRedemptionDate,
10964            14 => Self::PreRefunded,
10965            15 => Self::InDefault,
10966            16 => Self::Unrated,
10967            17 => Self::Taxable,
10968            18 => Self::Indexed,
10969            19 => Self::SubjectToAlternativeMinimumTax,
10970            20 => Self::OriginalIssueDiscountPrice,
10971            21 => Self::CallableBelowMaturityValue,
10972            22 => Self::CallableWithoutNotice,
10973            99 => Self::Text,
10974            unrecognized => Self::Unrecognized(unrecognized),
10975        }
10976    }
10977
10978    pub fn value(self) -> i64 {
10979        match self {
10980            Self::Flat => 1,
10981            Self::ZeroCoupon => 2,
10982            Self::InterestBearing => 3,
10983            Self::NoPeriodicPayments => 4,
10984            Self::VariableRate => 5,
10985            Self::LessFeeForPut => 6,
10986            Self::SteppedCoupon => 7,
10987            Self::CouponPeriod => 8,
10988            Self::When => 9,
10989            Self::OriginalIssueDiscount => 10,
10990            Self::Callable => 11,
10991            Self::EscrowedToMaturity => 12,
10992            Self::EscrowedToRedemptionDate => 13,
10993            Self::PreRefunded => 14,
10994            Self::InDefault => 15,
10995            Self::Unrated => 16,
10996            Self::Taxable => 17,
10997            Self::Indexed => 18,
10998            Self::SubjectToAlternativeMinimumTax => 19,
10999            Self::OriginalIssueDiscountPrice => 20,
11000            Self::CallableBelowMaturityValue => 21,
11001            Self::CallableWithoutNotice => 22,
11002            Self::Text => 99,
11003            Self::Unrecognized(value) => value,
11004        }
11005    }
11006}
11007
11008/// The values of the `CPProgram` (875) field.
11009#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11010pub enum CPProgram {
11011    /// `1`
11012    Program3a3,
11013    /// `2`
11014    Program42,
11015    /// `99`
11016    Other,
11017    /// A value the dictionary does not list.
11018    Unrecognized(i64),
11019}
11020
11021impl CPProgram {
11022    pub fn from_value(value: i64) -> Self {
11023        match value {
11024            1 => Self::Program3a3,
11025            2 => Self::Program42,
11026            99 => Self::Other,
11027            unrecognized => Self::Unrecognized(unrecognized),
11028        }
11029    }
11030
11031    pub fn value(self) -> i64 {
11032        match self {
11033            Self::Program3a3 => 1,
11034            Self::Program42 => 2,
11035            Self::Other => 99,
11036            Self::Unrecognized(value) => value,
11037        }
11038    }
11039}
11040
11041/// The values of the `MiscFeeBasis` (891) field.
11042#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11043pub enum MiscFeeBasis {
11044    /// `0`
11045    Absolute,
11046    /// `1`
11047    PerUnit,
11048    /// `2`
11049    Percentage,
11050    /// A value the dictionary does not list.
11051    Unrecognized(i64),
11052}
11053
11054impl MiscFeeBasis {
11055    pub fn from_value(value: i64) -> Self {
11056        match value {
11057            0 => Self::Absolute,
11058            1 => Self::PerUnit,
11059            2 => Self::Percentage,
11060            unrecognized => Self::Unrecognized(unrecognized),
11061        }
11062    }
11063
11064    pub fn value(self) -> i64 {
11065        match self {
11066            Self::Absolute => 0,
11067            Self::PerUnit => 1,
11068            Self::Percentage => 2,
11069            Self::Unrecognized(value) => value,
11070        }
11071    }
11072}
11073
11074/// The values of the `CollAsgnReason` (895) field.
11075#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11076pub enum CollAsgnReason {
11077    /// `0`
11078    Initial,
11079    /// `1`
11080    Scheduled,
11081    /// `2`
11082    TimeWarning,
11083    /// `3`
11084    MarginDeficiency,
11085    /// `4`
11086    MarginExcess,
11087    /// `5`
11088    ForwardCollateralDemand,
11089    /// `6`
11090    EventOfDefault,
11091    /// `7`
11092    AdverseTaxEvent,
11093    /// A value the dictionary does not list.
11094    Unrecognized(i64),
11095}
11096
11097impl CollAsgnReason {
11098    pub fn from_value(value: i64) -> Self {
11099        match value {
11100            0 => Self::Initial,
11101            1 => Self::Scheduled,
11102            2 => Self::TimeWarning,
11103            3 => Self::MarginDeficiency,
11104            4 => Self::MarginExcess,
11105            5 => Self::ForwardCollateralDemand,
11106            6 => Self::EventOfDefault,
11107            7 => Self::AdverseTaxEvent,
11108            unrecognized => Self::Unrecognized(unrecognized),
11109        }
11110    }
11111
11112    pub fn value(self) -> i64 {
11113        match self {
11114            Self::Initial => 0,
11115            Self::Scheduled => 1,
11116            Self::TimeWarning => 2,
11117            Self::MarginDeficiency => 3,
11118            Self::MarginExcess => 4,
11119            Self::ForwardCollateralDemand => 5,
11120            Self::EventOfDefault => 6,
11121            Self::AdverseTaxEvent => 7,
11122            Self::Unrecognized(value) => value,
11123        }
11124    }
11125}
11126
11127/// The values of the `CollInquiryQualifier` (896) field.
11128#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11129pub enum CollInquiryQualifier {
11130    /// `0`
11131    TradeDate,
11132    /// `1`
11133    GcInstrument,
11134    /// `2`
11135    CollateralInstrument,
11136    /// `3`
11137    SubstitutionEligible,
11138    /// `4`
11139    NotAssigned,
11140    /// `5`
11141    PartiallyAssigned,
11142    /// `6`
11143    FullyAssigned,
11144    /// `7`
11145    OutstandingTrades,
11146    /// A value the dictionary does not list.
11147    Unrecognized(i64),
11148}
11149
11150impl CollInquiryQualifier {
11151    pub fn from_value(value: i64) -> Self {
11152        match value {
11153            0 => Self::TradeDate,
11154            1 => Self::GcInstrument,
11155            2 => Self::CollateralInstrument,
11156            3 => Self::SubstitutionEligible,
11157            4 => Self::NotAssigned,
11158            5 => Self::PartiallyAssigned,
11159            6 => Self::FullyAssigned,
11160            7 => Self::OutstandingTrades,
11161            unrecognized => Self::Unrecognized(unrecognized),
11162        }
11163    }
11164
11165    pub fn value(self) -> i64 {
11166        match self {
11167            Self::TradeDate => 0,
11168            Self::GcInstrument => 1,
11169            Self::CollateralInstrument => 2,
11170            Self::SubstitutionEligible => 3,
11171            Self::NotAssigned => 4,
11172            Self::PartiallyAssigned => 5,
11173            Self::FullyAssigned => 6,
11174            Self::OutstandingTrades => 7,
11175            Self::Unrecognized(value) => value,
11176        }
11177    }
11178}
11179
11180/// The values of the `CollAsgnTransType` (903) field.
11181#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11182pub enum CollAsgnTransType {
11183    /// `0`
11184    New,
11185    /// `1`
11186    Replace,
11187    /// `2`
11188    Cancel,
11189    /// `3`
11190    Release,
11191    /// `4`
11192    Reverse,
11193    /// A value the dictionary does not list.
11194    Unrecognized(i64),
11195}
11196
11197impl CollAsgnTransType {
11198    pub fn from_value(value: i64) -> Self {
11199        match value {
11200            0 => Self::New,
11201            1 => Self::Replace,
11202            2 => Self::Cancel,
11203            3 => Self::Release,
11204            4 => Self::Reverse,
11205            unrecognized => Self::Unrecognized(unrecognized),
11206        }
11207    }
11208
11209    pub fn value(self) -> i64 {
11210        match self {
11211            Self::New => 0,
11212            Self::Replace => 1,
11213            Self::Cancel => 2,
11214            Self::Release => 3,
11215            Self::Reverse => 4,
11216            Self::Unrecognized(value) => value,
11217        }
11218    }
11219}
11220
11221/// The values of the `CollAsgnRespType` (905) field.
11222#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11223pub enum CollAsgnRespType {
11224    /// `0`
11225    Received,
11226    /// `1`
11227    Accepted,
11228    /// `2`
11229    Declined,
11230    /// `3`
11231    Rejected,
11232    /// A value the dictionary does not list.
11233    Unrecognized(i64),
11234}
11235
11236impl CollAsgnRespType {
11237    pub fn from_value(value: i64) -> Self {
11238        match value {
11239            0 => Self::Received,
11240            1 => Self::Accepted,
11241            2 => Self::Declined,
11242            3 => Self::Rejected,
11243            unrecognized => Self::Unrecognized(unrecognized),
11244        }
11245    }
11246
11247    pub fn value(self) -> i64 {
11248        match self {
11249            Self::Received => 0,
11250            Self::Accepted => 1,
11251            Self::Declined => 2,
11252            Self::Rejected => 3,
11253            Self::Unrecognized(value) => value,
11254        }
11255    }
11256}
11257
11258/// The values of the `CollAsgnRejectReason` (906) field.
11259#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11260pub enum CollAsgnRejectReason {
11261    /// `0`
11262    UnknownDeal,
11263    /// `1`
11264    UnknownOrInvalidInstrument,
11265    /// `2`
11266    UnauthorizedTransaction,
11267    /// `3`
11268    InsufficientCollateral,
11269    /// `4`
11270    InvalidTypeOfCollateral,
11271    /// `5`
11272    ExcessiveSubstitution,
11273    /// `99`
11274    Other,
11275    /// A value the dictionary does not list.
11276    Unrecognized(i64),
11277}
11278
11279impl CollAsgnRejectReason {
11280    pub fn from_value(value: i64) -> Self {
11281        match value {
11282            0 => Self::UnknownDeal,
11283            1 => Self::UnknownOrInvalidInstrument,
11284            2 => Self::UnauthorizedTransaction,
11285            3 => Self::InsufficientCollateral,
11286            4 => Self::InvalidTypeOfCollateral,
11287            5 => Self::ExcessiveSubstitution,
11288            99 => Self::Other,
11289            unrecognized => Self::Unrecognized(unrecognized),
11290        }
11291    }
11292
11293    pub fn value(self) -> i64 {
11294        match self {
11295            Self::UnknownDeal => 0,
11296            Self::UnknownOrInvalidInstrument => 1,
11297            Self::UnauthorizedTransaction => 2,
11298            Self::InsufficientCollateral => 3,
11299            Self::InvalidTypeOfCollateral => 4,
11300            Self::ExcessiveSubstitution => 5,
11301            Self::Other => 99,
11302            Self::Unrecognized(value) => value,
11303        }
11304    }
11305}
11306
11307/// The values of the `CollStatus` (910) field.
11308#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11309pub enum CollStatus {
11310    /// `0`
11311    Unassigned,
11312    /// `1`
11313    PartiallyAssigned,
11314    /// `2`
11315    AssignmentProposed,
11316    /// `3`
11317    Assigned,
11318    /// `4`
11319    Challenged,
11320    /// A value the dictionary does not list.
11321    Unrecognized(i64),
11322}
11323
11324impl CollStatus {
11325    pub fn from_value(value: i64) -> Self {
11326        match value {
11327            0 => Self::Unassigned,
11328            1 => Self::PartiallyAssigned,
11329            2 => Self::AssignmentProposed,
11330            3 => Self::Assigned,
11331            4 => Self::Challenged,
11332            unrecognized => Self::Unrecognized(unrecognized),
11333        }
11334    }
11335
11336    pub fn value(self) -> i64 {
11337        match self {
11338            Self::Unassigned => 0,
11339            Self::PartiallyAssigned => 1,
11340            Self::AssignmentProposed => 2,
11341            Self::Assigned => 3,
11342            Self::Challenged => 4,
11343            Self::Unrecognized(value) => value,
11344        }
11345    }
11346}
11347
11348/// The values of the `DeliveryType` (919) field.
11349#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11350pub enum DeliveryType {
11351    /// `0`
11352    VersusPayment,
11353    /// `1`
11354    Free,
11355    /// `2`
11356    TriParty,
11357    /// `3`
11358    HoldInCustody,
11359    /// A value the dictionary does not list.
11360    Unrecognized(i64),
11361}
11362
11363impl DeliveryType {
11364    pub fn from_value(value: i64) -> Self {
11365        match value {
11366            0 => Self::VersusPayment,
11367            1 => Self::Free,
11368            2 => Self::TriParty,
11369            3 => Self::HoldInCustody,
11370            unrecognized => Self::Unrecognized(unrecognized),
11371        }
11372    }
11373
11374    pub fn value(self) -> i64 {
11375        match self {
11376            Self::VersusPayment => 0,
11377            Self::Free => 1,
11378            Self::TriParty => 2,
11379            Self::HoldInCustody => 3,
11380            Self::Unrecognized(value) => value,
11381        }
11382    }
11383}
11384
11385/// The values of the `UserRequestType` (924) field.
11386#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11387pub enum UserRequestType {
11388    /// `1`
11389    LogOnUser,
11390    /// `2`
11391    LogOffUser,
11392    /// `3`
11393    ChangePasswordForUser,
11394    /// `4`
11395    RequestIndividualUserStatus,
11396    /// A value the dictionary does not list.
11397    Unrecognized(i64),
11398}
11399
11400impl UserRequestType {
11401    pub fn from_value(value: i64) -> Self {
11402        match value {
11403            1 => Self::LogOnUser,
11404            2 => Self::LogOffUser,
11405            3 => Self::ChangePasswordForUser,
11406            4 => Self::RequestIndividualUserStatus,
11407            unrecognized => Self::Unrecognized(unrecognized),
11408        }
11409    }
11410
11411    pub fn value(self) -> i64 {
11412        match self {
11413            Self::LogOnUser => 1,
11414            Self::LogOffUser => 2,
11415            Self::ChangePasswordForUser => 3,
11416            Self::RequestIndividualUserStatus => 4,
11417            Self::Unrecognized(value) => value,
11418        }
11419    }
11420}
11421
11422/// The values of the `UserStatus` (926) field.
11423#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11424pub enum UserStatus {
11425    /// `1`
11426    LoggedIn,
11427    /// `2`
11428    NotLoggedIn,
11429    /// `3`
11430    UserNotRecognised,
11431    /// `4`
11432    PasswordIncorrect,
11433    /// `5`
11434    PasswordChanged,
11435    /// `6`
11436    Other,
11437    /// A value the dictionary does not list.
11438    Unrecognized(i64),
11439}
11440
11441impl UserStatus {
11442    pub fn from_value(value: i64) -> Self {
11443        match value {
11444            1 => Self::LoggedIn,
11445            2 => Self::NotLoggedIn,
11446            3 => Self::UserNotRecognised,
11447            4 => Self::PasswordIncorrect,
11448            5 => Self::PasswordChanged,
11449            6 => Self::Other,
11450            unrecognized => Self::Unrecognized(unrecognized),
11451        }
11452    }
11453
11454    pub fn value(self) -> i64 {
11455        match self {
11456            Self::LoggedIn => 1,
11457            Self::NotLoggedIn => 2,
11458            Self::UserNotRecognised => 3,
11459            Self::PasswordIncorrect => 4,
11460            Self::PasswordChanged => 5,
11461            Self::Other => 6,
11462            Self::Unrecognized(value) => value,
11463        }
11464    }
11465}
11466
11467/// The values of the `StatusValue` (928) field.
11468#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11469pub enum StatusValue {
11470    /// `1`
11471    Connected,
11472    /// `2`
11473    NotConnectedUnexpected,
11474    /// `3`
11475    NotConnectedExpected,
11476    /// `4`
11477    InProcess,
11478    /// A value the dictionary does not list.
11479    Unrecognized(i64),
11480}
11481
11482impl StatusValue {
11483    pub fn from_value(value: i64) -> Self {
11484        match value {
11485            1 => Self::Connected,
11486            2 => Self::NotConnectedUnexpected,
11487            3 => Self::NotConnectedExpected,
11488            4 => Self::InProcess,
11489            unrecognized => Self::Unrecognized(unrecognized),
11490        }
11491    }
11492
11493    pub fn value(self) -> i64 {
11494        match self {
11495            Self::Connected => 1,
11496            Self::NotConnectedUnexpected => 2,
11497            Self::NotConnectedExpected => 3,
11498            Self::InProcess => 4,
11499            Self::Unrecognized(value) => value,
11500        }
11501    }
11502}
11503
11504/// The values of the `NetworkRequestType` (935) field.
11505#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11506pub enum NetworkRequestType {
11507    /// `1`
11508    Snapshot,
11509    /// `2`
11510    Subscribe,
11511    /// `4`
11512    StopSubscribing,
11513    /// `8`
11514    LevelOfDetail,
11515    /// A value the dictionary does not list.
11516    Unrecognized(i64),
11517}
11518
11519impl NetworkRequestType {
11520    pub fn from_value(value: i64) -> Self {
11521        match value {
11522            1 => Self::Snapshot,
11523            2 => Self::Subscribe,
11524            4 => Self::StopSubscribing,
11525            8 => Self::LevelOfDetail,
11526            unrecognized => Self::Unrecognized(unrecognized),
11527        }
11528    }
11529
11530    pub fn value(self) -> i64 {
11531        match self {
11532            Self::Snapshot => 1,
11533            Self::Subscribe => 2,
11534            Self::StopSubscribing => 4,
11535            Self::LevelOfDetail => 8,
11536            Self::Unrecognized(value) => value,
11537        }
11538    }
11539}
11540
11541/// The values of the `NetworkStatusResponseType` (937) field.
11542#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11543pub enum NetworkStatusResponseType {
11544    /// `1`
11545    Full,
11546    /// `2`
11547    IncrementalUpdate,
11548    /// A value the dictionary does not list.
11549    Unrecognized(i64),
11550}
11551
11552impl NetworkStatusResponseType {
11553    pub fn from_value(value: i64) -> Self {
11554        match value {
11555            1 => Self::Full,
11556            2 => Self::IncrementalUpdate,
11557            unrecognized => Self::Unrecognized(unrecognized),
11558        }
11559    }
11560
11561    pub fn value(self) -> i64 {
11562        match self {
11563            Self::Full => 1,
11564            Self::IncrementalUpdate => 2,
11565            Self::Unrecognized(value) => value,
11566        }
11567    }
11568}
11569
11570/// The values of the `TrdRptStatus` (939) field.
11571#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11572pub enum TrdRptStatus {
11573    /// `0`
11574    Accepted,
11575    /// `1`
11576    Rejected,
11577    /// A value the dictionary does not list.
11578    Unrecognized(i64),
11579}
11580
11581impl TrdRptStatus {
11582    pub fn from_value(value: i64) -> Self {
11583        match value {
11584            0 => Self::Accepted,
11585            1 => Self::Rejected,
11586            unrecognized => Self::Unrecognized(unrecognized),
11587        }
11588    }
11589
11590    pub fn value(self) -> i64 {
11591        match self {
11592            Self::Accepted => 0,
11593            Self::Rejected => 1,
11594            Self::Unrecognized(value) => value,
11595        }
11596    }
11597}
11598
11599/// The values of the `AffirmStatus` (940) field.
11600#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11601pub enum AffirmStatus {
11602    /// `1`
11603    Received,
11604    /// `2`
11605    ConfirmRejected,
11606    /// `3`
11607    Affirmed,
11608    /// A value the dictionary does not list.
11609    Unrecognized(i64),
11610}
11611
11612impl AffirmStatus {
11613    pub fn from_value(value: i64) -> Self {
11614        match value {
11615            1 => Self::Received,
11616            2 => Self::ConfirmRejected,
11617            3 => Self::Affirmed,
11618            unrecognized => Self::Unrecognized(unrecognized),
11619        }
11620    }
11621
11622    pub fn value(self) -> i64 {
11623        match self {
11624            Self::Received => 1,
11625            Self::ConfirmRejected => 2,
11626            Self::Affirmed => 3,
11627            Self::Unrecognized(value) => value,
11628        }
11629    }
11630}
11631
11632/// The values of the `CollAction` (944) field.
11633#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11634pub enum CollAction {
11635    /// `0`
11636    Retain,
11637    /// `1`
11638    Add,
11639    /// `2`
11640    Remove,
11641    /// A value the dictionary does not list.
11642    Unrecognized(i64),
11643}
11644
11645impl CollAction {
11646    pub fn from_value(value: i64) -> Self {
11647        match value {
11648            0 => Self::Retain,
11649            1 => Self::Add,
11650            2 => Self::Remove,
11651            unrecognized => Self::Unrecognized(unrecognized),
11652        }
11653    }
11654
11655    pub fn value(self) -> i64 {
11656        match self {
11657            Self::Retain => 0,
11658            Self::Add => 1,
11659            Self::Remove => 2,
11660            Self::Unrecognized(value) => value,
11661        }
11662    }
11663}
11664
11665/// The values of the `CollInquiryStatus` (945) field.
11666#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11667pub enum CollInquiryStatus {
11668    /// `0`
11669    Accepted,
11670    /// `1`
11671    AcceptedWithWarnings,
11672    /// `2`
11673    Completed,
11674    /// `3`
11675    CompletedWithWarnings,
11676    /// `4`
11677    Rejected,
11678    /// A value the dictionary does not list.
11679    Unrecognized(i64),
11680}
11681
11682impl CollInquiryStatus {
11683    pub fn from_value(value: i64) -> Self {
11684        match value {
11685            0 => Self::Accepted,
11686            1 => Self::AcceptedWithWarnings,
11687            2 => Self::Completed,
11688            3 => Self::CompletedWithWarnings,
11689            4 => Self::Rejected,
11690            unrecognized => Self::Unrecognized(unrecognized),
11691        }
11692    }
11693
11694    pub fn value(self) -> i64 {
11695        match self {
11696            Self::Accepted => 0,
11697            Self::AcceptedWithWarnings => 1,
11698            Self::Completed => 2,
11699            Self::CompletedWithWarnings => 3,
11700            Self::Rejected => 4,
11701            Self::Unrecognized(value) => value,
11702        }
11703    }
11704}
11705
11706/// The values of the `CollInquiryResult` (946) field.
11707#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq)]
11708pub enum CollInquiryResult {
11709    /// `0`
11710    Successful,
11711    /// `1`
11712    InvalidOrUnknownInstrument,
11713    /// `2`
11714    InvalidOrUnknownCollateralType,
11715    /// `3`
11716    InvalidParties,
11717    /// `4`
11718    InvalidTransportTypeRequested,
11719    /// `5`
11720    InvalidDestinationRequested,
11721    /// `6`
11722    NoCollateralFoundForTheTradeSpecified,
11723    /// `7`
11724    NoCollateralFoundForTheOrderSpecified,
11725    /// `8`
11726    CollateralInquiryTypeNotSupported,
11727    /// `9`
11728    UnauthorizedForCollateralInquiry,
11729    /// `99`
11730    Other,
11731    /// A value the dictionary does not list.
11732    Unrecognized(i64),
11733}
11734
11735impl CollInquiryResult {
11736    pub fn from_value(value: i64) -> Self {
11737        match value {
11738            0 => Self::Successful,
11739            1 => Self::InvalidOrUnknownInstrument,
11740            2 => Self::InvalidOrUnknownCollateralType,
11741            3 => Self::InvalidParties,
11742            4 => Self::InvalidTransportTypeRequested,
11743            5 => Self::InvalidDestinationRequested,
11744            6 => Self::NoCollateralFoundForTheTradeSpecified,
11745            7 => Self::NoCollateralFoundForTheOrderSpecified,
11746            8 => Self::CollateralInquiryTypeNotSupported,
11747            9 => Self::UnauthorizedForCollateralInquiry,
11748            99 => Self::Other,
11749            unrecognized => Self::Unrecognized(unrecognized),
11750        }
11751    }
11752
11753    pub fn value(self) -> i64 {
11754        match self {
11755            Self::Successful => 0,
11756            Self::InvalidOrUnknownInstrument => 1,
11757            Self::InvalidOrUnknownCollateralType => 2,
11758            Self::InvalidParties => 3,
11759            Self::InvalidTransportTypeRequested => 4,
11760            Self::InvalidDestinationRequested => 5,
11761            Self::NoCollateralFoundForTheTradeSpecified => 6,
11762            Self::NoCollateralFoundForTheOrderSpecified => 7,
11763            Self::CollateralInquiryTypeNotSupported => 8,
11764            Self::UnauthorizedForCollateralInquiry => 9,
11765            Self::Other => 99,
11766            Self::Unrecognized(value) => value,
11767        }
11768    }
11769}