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 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.