pub enum StructureDiagnosticKind {
UnexpectedSegment,
MissingRequiredSegment,
MaxRepetitionsExceeded,
UnrecognizedQualifier,
SkippedUnknownSegment,
}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.
Trait Implementations§
Source§impl Clone for StructureDiagnosticKind
impl Clone for StructureDiagnosticKind
Source§fn clone(&self) -> StructureDiagnosticKind
fn clone(&self) -> StructureDiagnosticKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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>,
Deserialize this value from the given Serde deserializer. Read more
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,
Serialize this value into the given Serde serializer. Read more
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.