pub enum ValidationError {
Show 16 variants
UnknownField(String),
UnknownComponent(String),
DuplicatedField(String),
DuplicatedComponent(String),
DuplicatedGroup(String),
DuplicatedMessageName(String),
DuplicatedMessageType(MsgType),
EmptyContainer(String),
EmptyMessage(String),
UnexpectedMessageCategory(MsgCat, String),
UnusedField(String, u16),
UnusedComponent(String),
MissingRequiredField(String, u16),
OptionalRequiredField(String, u16),
InvalidRequiredField(String, u16, BasicType),
CircularReference(String),
}Expand description
Errors related to dictionary structure and content validation.
These errors indicate problems with the dictionary’s structure, such as missing references, duplicates, or invalid relationships between elements.
Variants§
UnknownField(String)
Referenced field was not found in the dictionary
UnknownComponent(String)
Referenced component was not found in the dictionary
DuplicatedField(String)
A field with the same name already exists in the dictionary
DuplicatedComponent(String)
A component with the same name already exists in the dictionary
DuplicatedGroup(String)
A group with the same name already exists in the dictionary
DuplicatedMessageName(String)
A message with the same name already exists in the dictionary
DuplicatedMessageType(MsgType)
A message with the same type already exists in the dictionary
EmptyContainer(String)
Component or group has no members defined
EmptyMessage(String)
Message has no fields or components defined
UnexpectedMessageCategory(MsgCat, String)
Message has an unexpected category for this dictionary type
UnusedField(String, u16)
Field was defined in the dictionary but not used in any message, component, or group
This error only occurs when strict validation is enabled with with_strict_check(true).
UnusedComponent(String)
Component was defined in the dictionary but not used in any message or other component
This error only occurs when strict validation is enabled with with_strict_check(true).
MissingRequiredField(String, u16)
A field the standard header/trailer must carry is not defined there
This error only occurs when strict validation is enabled with with_strict_check(true).
OptionalRequiredField(String, u16)
A field the standard header/trailer must carry is declared optional
This error only occurs when strict validation is enabled with with_strict_check(true).
InvalidRequiredField(String, u16, BasicType)
A required standard field in the header/trailer has incorrect properties
This error occurs when a required FIX field (like BeginString or BodyLength)
is defined with the wrong tag number or data type, or - for the fields
whose position is mandated - does not sit where it must.
This error only occurs when strict validation is enabled with with_strict_check(true).
CircularReference(String)
A circular dependency was detected in component or group references
This error occurs when components or groups reference each other in a way that creates an infinite loop. For example, if Component A contains Component B, and Component B contains Component A, this would create a circular reference.
Trait Implementations§
Source§impl Debug for ValidationError
impl Debug for ValidationError
Source§impl Display for ValidationError
impl Display for ValidationError
Source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()