Skip to content

Commit f5d77ca

Browse files
authored
feat: expose types that are required by downstream uses (#260)
Expose types that are required by downstream uses
1 parent 4c3cc8b commit f5d77ca

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

crates/hotfix-message/src/field_map.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::parts::RepeatingGroup;
44
use hotfix_dictionary::TagU32;
55
use indexmap::IndexMap;
66

7+
#[derive(Clone, Debug)]
78
pub 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)]
2324
pub struct FieldMap {
2425
pub fields: IndexMap<TagU32, Field>,
2526
pub groups: IndexMap<TagU32, Vec<RepeatingGroup>>,

crates/hotfix-message/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub use encoding::fix42;
1818
#[cfg(feature = "fix44")]
1919
pub use encoding::fix44;
2020
pub use encoding::{FieldValueError, HardCodedFixFieldDefinition};
21+
pub use field_map::{Field, FieldMap};
2122
pub use hotfix_derive::FieldType;
2223
pub use hotfix_dictionary::{self as dict, TagU32};
2324
pub use parts::{Part, RepeatingGroup};

crates/hotfix-message/src/parts/repeating_group.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use crate::parts::Part;
44
use 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)]
88
pub struct RepeatingGroup {
99
pub(crate) start_tag: TagU32,
1010
pub(crate) delimiter_tag: TagU32,

0 commit comments

Comments
 (0)