pub enum Kind {
Header,
StructureUnknown,
StructureMismatch,
SegmentMissing,
SegmentUnknown,
FieldUnknown,
ComponentUnknown,
ValueFormat,
}Expand description
What kind of problem a diagnostic reports, for callers that route on it rather than reading the text.
Variants§
Header
A header field a message cannot do without is empty.
StructureUnknown
The dictionary has no grammar for this message structure.
StructureMismatch
The segments do not fit the structure’s grammar.
SegmentMissing
A segment the structure requires is absent.
SegmentUnknown
A segment the dictionary does not define.
FieldUnknown
A field beyond the end of the segment’s definition.
ComponentUnknown
A component beyond the end of the data type’s definition.
ValueFormat
A value that does not match its data type’s format.
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
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