#[repr(u8)]pub enum EvidenceReasonCode {
Show 19 variants
Unattributed = 0,
UnsupportedContext = 1,
RequiredEvidenceMissing = 2,
WeakAnchor = 3,
GenericDetector = 4,
GenericAssignment = 5,
EntropyOnly = 6,
TestFixture = 7,
Documentation = 8,
RuleDefinition = 9,
Identifier = 10,
OptionDeclaration = 11,
GeneratedMaterial = 12,
SourceRoleMismatch = 13,
VendorPattern = 14,
StructuralGrammar = 15,
RequiredCompanion = 16,
ChecksumValid = 17,
LiveVerification = 18,
}Expand description
Stable reason code that determines a finding’s evidence tier.
Variants§
Unattributed = 0
No scanner producer evidence was available.
UnsupportedContext = 1
The source syntax was unsupported, malformed, or outside parser bounds.
RequiredEvidenceMissing = 2
A declared semantic evidence requirement was not proven.
WeakAnchor = 3
The detector declared only a weak or unanchored context.
GenericDetector = 4
A generic detector pattern produced the candidate.
GenericAssignment = 5
The generic assignment lane produced the candidate.
EntropyOnly = 6
The entropy-only lane produced the candidate.
TestFixture = 7
The candidate is in a test or example fixture.
Documentation = 8
The candidate is in documentation prose.
RuleDefinition = 9
The candidate is inside a regex, scanner rule, or grammar definition.
Identifier = 10
The candidate is an identifier, type, or member name.
OptionDeclaration = 11
The candidate is a command-option declaration rather than its value.
GeneratedMaterial = 12
The candidate is in generated or vendored material.
SourceRoleMismatch = 13
Parsed source semantics do not match the detector’s declared source roles.
VendorPattern = 14
A provider-specific named pattern matched in a credential-bearing source role.
StructuralGrammar = 15
A detector-owned structural grammar proved the credential shape.
RequiredCompanion = 16
Required companion evidence was present.
ChecksumValid = 17
An intrinsic credential checksum validated.
LiveVerification = 18
Live provider verification succeeded.
Implementations§
Trait Implementations§
Source§impl Clone for EvidenceReasonCode
impl Clone for EvidenceReasonCode
Source§fn clone(&self) -> EvidenceReasonCode
fn clone(&self) -> EvidenceReasonCode
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 EvidenceReasonCode
Source§impl Debug for EvidenceReasonCode
impl Debug for EvidenceReasonCode
Source§impl<'de> Deserialize<'de> for EvidenceReasonCode
impl<'de> Deserialize<'de> for EvidenceReasonCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for EvidenceReasonCode
Source§impl Hash for EvidenceReasonCode
impl Hash for EvidenceReasonCode
Source§impl Ord for EvidenceReasonCode
impl Ord for EvidenceReasonCode
Source§fn cmp(&self, other: &EvidenceReasonCode) -> Ordering
fn cmp(&self, other: &EvidenceReasonCode) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for EvidenceReasonCode
impl PartialEq for EvidenceReasonCode
Source§impl PartialOrd for EvidenceReasonCode
impl PartialOrd for EvidenceReasonCode
Source§impl Serialize for EvidenceReasonCode
impl Serialize for EvidenceReasonCode
impl StructuralPartialEq for EvidenceReasonCode
Auto Trait Implementations§
impl Freeze for EvidenceReasonCode
impl RefUnwindSafe for EvidenceReasonCode
impl Send for EvidenceReasonCode
impl Sync for EvidenceReasonCode
impl Unpin for EvidenceReasonCode
impl UnsafeUnpin for EvidenceReasonCode
impl UnwindSafe for EvidenceReasonCode
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more