pub enum RuleOrigin {
Parse,
Directory,
Mig,
Ahb,
Semantic,
Custom,
Unvalidated,
}Expand description
Which layer of the validation stack produced a finding.
Typed rather than a bare string, so a mis-cased or misspelled origin is a compile error instead of an empty result.
Variants§
Parse
L1 — EDIFACT parse / tokeniser error.
Directory
L2 — directory check (segment definitions, code lists).
Mig
L3 — MIG structural rule (segment ordering, cardinality).
Ahb
L4–L5 — AHB Bedingungsoperator rule.
Semantic
Message-type-specific semantic rule.
Custom
L6 — caller-supplied CustomRulePack rule.
Unvalidated
The message type is not validated in this build, so no layer ran.
Its own value rather than a layer’s: the finding reports the absence of validation, which is a build-configuration fact rather than a structural violation of any layer.
Implementations§
Source§impl RuleOrigin
impl RuleOrigin
Trait Implementations§
Source§impl Clone for RuleOrigin
impl Clone for RuleOrigin
Source§fn clone(&self) -> RuleOrigin
fn clone(&self) -> RuleOrigin
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 RuleOrigin
Source§impl Debug for RuleOrigin
impl Debug for RuleOrigin
Source§impl Display for RuleOrigin
impl Display for RuleOrigin
impl Eq for RuleOrigin
Source§impl Hash for RuleOrigin
impl Hash for RuleOrigin
Source§impl Ord for RuleOrigin
impl Ord for RuleOrigin
Source§fn cmp(&self, other: &RuleOrigin) -> Ordering
fn cmp(&self, other: &RuleOrigin) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RuleOrigin
impl PartialEq for RuleOrigin
Source§impl PartialOrd for RuleOrigin
impl PartialOrd for RuleOrigin
impl StructuralPartialEq for RuleOrigin
Auto Trait Implementations§
impl Freeze for RuleOrigin
impl RefUnwindSafe for RuleOrigin
impl Send for RuleOrigin
impl Sync for RuleOrigin
impl Unpin for RuleOrigin
impl UnsafeUnpin for RuleOrigin
impl UnwindSafe for RuleOrigin
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
impl<T, O> Matches<O> for Twhere
T: PartialEq<O>,
fn validate_matches(&self, other: &O) -> bool
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more