pub enum StructureDiagnosticKind {
UnexpectedSegment,
MissingRequiredSegment,
MaxRepetitionsExceeded,
UnrecognizedQualifier,
MissingRequiredGroup,
GroupMaxRepetitionsExceeded,
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 segment the MIG marks mandatory (M / R) is absent from a
message, or from a group repetition of the variant that requires it.
MaxRepetitionsExceeded
A segment repeats more often than the MIG allows at its place.
UnrecognizedQualifier
A segment’s qualifier is none of the codes the MIG allows for that segment in this group, so no slot could hold it; the assembler advanced past it.
MissingRequiredGroup
A group variant the MIG marks mandatory (M / R) is absent.
GroupMaxRepetitionsExceeded
A group variant repeats more often than the MIG allows.
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 moreimpl Copy for StructureDiagnosticKind
Source§impl Debug for StructureDiagnosticKind
impl Debug for StructureDiagnosticKind
Source§impl<'de> Deserialize<'de> for StructureDiagnosticKind
impl<'de> Deserialize<'de> for StructureDiagnosticKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructureDiagnosticKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StructureDiagnosticKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for StructureDiagnosticKind
Source§impl PartialEq for StructureDiagnosticKind
impl PartialEq for StructureDiagnosticKind
Source§impl Serialize for StructureDiagnosticKind
impl Serialize for StructureDiagnosticKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for StructureDiagnosticKind
Auto Trait Implementations§
impl Freeze for StructureDiagnosticKind
impl RefUnwindSafe for StructureDiagnosticKind
impl Send for StructureDiagnosticKind
impl Sync for StructureDiagnosticKind
impl Unpin for StructureDiagnosticKind
impl UnsafeUnpin for StructureDiagnosticKind
impl UnwindSafe for StructureDiagnosticKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.