Skip to main content

Crate easyfix_core

Crate easyfix_core 

Source
Expand description

Core types for session-message decoupling in easyfix.

This crate defines the contract between the session layer and generated message code: basic types, base messages, the SessionMessage trait, and deserialization error types.

§Basic types

Foundational FIX types (FixStr, FixString, SeqNum, UtcTimestamp, etc.) and user-facing field newtypes (MsgTypeField, SessionStatusField, SessionRejectReasonField) with their corresponding value traits.

§Base messages

Minimal typed structures (HeaderBase, AdminBase, etc.) containing only the fields the session needs, plus base enumerations (MsgTypeBase, SessionStatusBase, etc.) - typed constants for session-relevant FIX enumeration values. Used by SessionMessage implementations.

§SessionMessage trait

The session layer is generic over M: SessionMessage, so it never names a concrete message type. SessionMessage and HeaderAccess are implemented by generated code, bridging session logic to concrete message definitions.

Modules§

base_messages
Base messages and base enumerations - the contract between the session layer and SessionMessage implementations.
basic_types
The FIX datatypes every message is built from.
country
ISO 3166-1 country codes, as the two-character FIX Country datatype.
currency
ISO 4217 currency codes, as the three-character FIX Currency datatype.
deserializer
Reading FIX tag-value messages.
language
ISO 639-1 language codes, as the two-character FIX Language datatype.
message
The SessionMessage trait and related types.
serializer
Writing FIX tag-value messages.
version
FIX protocol version identification.

Macros§

fix_format
Creates a FixString using interpolation of runtime expressions, replacing invalid characters by ?.
fix_str
Builds a &'static FixStr from a string literal.