File tree Expand file tree Collapse file tree
crates/hotfix-message/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use crate::parts::RepeatingGroup;
44use hotfix_dictionary:: TagU32 ;
55use indexmap:: IndexMap ;
66
7+ #[ derive( Clone , Debug ) ]
78pub struct Field {
89 pub ( crate ) tag : TagU32 ,
910 pub data : Vec < u8 > ,
@@ -19,7 +20,7 @@ impl Field {
1920 }
2021}
2122
22- #[ derive( Default ) ]
23+ #[ derive( Clone , Debug , Default ) ]
2324pub struct FieldMap {
2425 pub fields : IndexMap < TagU32 , Field > ,
2526 pub groups : IndexMap < TagU32 , Vec < RepeatingGroup > > ,
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ pub use encoding::fix42;
1818#[ cfg( feature = "fix44" ) ]
1919pub use encoding:: fix44;
2020pub use encoding:: { FieldValueError , HardCodedFixFieldDefinition } ;
21+ pub use field_map:: { Field , FieldMap } ;
2122pub use hotfix_derive:: FieldType ;
2223pub use hotfix_dictionary:: { self as dict, TagU32 } ;
2324pub use parts:: { Part , RepeatingGroup } ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use crate::parts::Part;
44use hotfix_dictionary:: { IsFieldDefinition , TagU32 } ;
55
66/// Represents a FIX repeating group, such as a party in the list of parties.
7- #[ allow ( dead_code ) ]
7+ #[ derive ( Clone , Debug ) ]
88pub struct RepeatingGroup {
99 pub ( crate ) start_tag : TagU32 ,
1010 pub ( crate ) delimiter_tag : TagU32 ,
You can’t perform that action at this time.
0 commit comments