pub enum StructureDiagnosticKind {
UnexpectedSegment,
MissingRequiredSegment,
MaxRepetitionsExceeded,
UnrecognizedQualifier,
SkippedUnknownSegment,
OrphanedGroupSegment,
}Expand description
Classification of structure-level diagnostic issues.
Variants§
UnexpectedSegment
A segment appeared where it was not expected by the MIG schema.
MissingRequiredSegment
A mandatory segment defined in the MIG schema was not found.
MaxRepetitionsExceeded
A segment or group exceeded its maximum allowed repetitions.
UnrecognizedQualifier
A qualifier value was not recognized for the current MIG context.
SkippedUnknownSegment
A segment was present in the EDIFACT input but the PID-filtered MIG
has no slot for it, and the assembler ran with skip_unknown_segments
on. The segment was advanced past (preserved on skipped_segments)
so subsequent legitimate content still assembles, but the caller
should surface it — the message contains data outside the AHB.
OrphanedGroupSegment
A segment the MIG defines as a non-entry segment of a group (e.g. CAV
in SG10) appeared without that group’s entry segment (CCI), so no
group repetition could hold it. Like SkippedUnknownSegment the
assembler advanced past it and its content is absent from the result,
but the defect is a missing entry segment, not foreign content.
Trait Implementations§
Source§impl Clone for StructureDiagnosticKind
impl Clone for StructureDiagnosticKind
Source§fn clone(&self) -> StructureDiagnosticKind
fn clone(&self) -> StructureDiagnosticKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more