From 452152a035c458e413a986c975316eaa2d3bc6ae Mon Sep 17 00:00:00 2001 From: David Steiner Date: Fri, 19 Dec 2025 16:37:57 -0500 Subject: [PATCH] Expose types that are required by downstream uses --- crates/hotfix-message/src/field_map.rs | 3 ++- crates/hotfix-message/src/lib.rs | 1 + crates/hotfix-message/src/parts/repeating_group.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/hotfix-message/src/field_map.rs b/crates/hotfix-message/src/field_map.rs index ae05222..0349f8f 100644 --- a/crates/hotfix-message/src/field_map.rs +++ b/crates/hotfix-message/src/field_map.rs @@ -4,6 +4,7 @@ use crate::parts::RepeatingGroup; use hotfix_dictionary::TagU32; use indexmap::IndexMap; +#[derive(Clone, Debug)] pub struct Field { pub(crate) tag: TagU32, pub data: Vec, @@ -19,7 +20,7 @@ impl Field { } } -#[derive(Default)] +#[derive(Clone, Debug, Default)] pub struct FieldMap { pub fields: IndexMap, pub groups: IndexMap>, diff --git a/crates/hotfix-message/src/lib.rs b/crates/hotfix-message/src/lib.rs index 55e22ee..45f0b81 100644 --- a/crates/hotfix-message/src/lib.rs +++ b/crates/hotfix-message/src/lib.rs @@ -18,6 +18,7 @@ pub use encoding::fix42; #[cfg(feature = "fix44")] pub use encoding::fix44; pub use encoding::{FieldValueError, HardCodedFixFieldDefinition}; +pub use field_map::{Field, FieldMap}; pub use hotfix_derive::FieldType; pub use hotfix_dictionary::{self as dict, TagU32}; pub use parts::{Part, RepeatingGroup}; diff --git a/crates/hotfix-message/src/parts/repeating_group.rs b/crates/hotfix-message/src/parts/repeating_group.rs index bd13bfa..cc5b15d 100644 --- a/crates/hotfix-message/src/parts/repeating_group.rs +++ b/crates/hotfix-message/src/parts/repeating_group.rs @@ -4,7 +4,7 @@ use crate::parts::Part; use hotfix_dictionary::{IsFieldDefinition, TagU32}; /// Represents a FIX repeating group, such as a party in the list of parties. -#[allow(dead_code)] +#[derive(Clone, Debug)] pub struct RepeatingGroup { pub(crate) start_tag: TagU32, pub(crate) delimiter_tag: TagU32,