pub struct FindingProvenance { /* private fields */ }Expand description
Secret-safe candidate identity retained in public evidence.
Implementations§
Source§impl FindingProvenance
impl FindingProvenance
Sourcepub const SCHEMA_VERSION: u8 = 1
pub const SCHEMA_VERSION: u8 = 1
Current persisted provenance schema.
Sourcepub const fn pattern(
detector_digest: u64,
pattern_index: u32,
source_role: SemanticSourceRole,
context_class: EvidenceReasonCode,
) -> Self
pub const fn pattern( detector_digest: u64, pattern_index: u32, source_role: SemanticSourceRole, context_class: EvidenceReasonCode, ) -> Self
Construct provenance for a scanner-owned named pattern.
Sourcepub const fn generic_assignment(
detector_digest: u64,
source_role: SemanticSourceRole,
context_class: EvidenceReasonCode,
) -> Self
pub const fn generic_assignment( detector_digest: u64, source_role: SemanticSourceRole, context_class: EvidenceReasonCode, ) -> Self
Construct provenance for the generic assignment lane.
Sourcepub const fn entropy(
detector_digest: u64,
source_role: SemanticSourceRole,
context_class: EvidenceReasonCode,
) -> Self
pub const fn entropy( detector_digest: u64, source_role: SemanticSourceRole, context_class: EvidenceReasonCode, ) -> Self
Construct provenance for the entropy lane.
Sourcepub const fn unattributed() -> Self
pub const fn unattributed() -> Self
Construct provenance for a caller-created finding.
Sourcepub const fn detector_digest(self) -> Option<u64>
pub const fn detector_digest(self) -> Option<u64>
Return the active detector-corpus digest.
Sourcepub const fn pattern_index(self) -> Option<u32>
pub const fn pattern_index(self) -> Option<u32>
Return the detector-local source pattern ordinal.
Sourcepub const fn candidate_channel(self) -> FindingCandidateChannel
pub const fn candidate_channel(self) -> FindingCandidateChannel
Return the candidate producer lane.
Sourcepub const fn source_role(self) -> SemanticSourceRole
pub const fn source_role(self) -> SemanticSourceRole
Return the parsed source role.
Sourcepub const fn context_class(self) -> EvidenceReasonCode
pub const fn context_class(self) -> EvidenceReasonCode
Return the pre-verification evidence context.
Trait Implementations§
Source§impl Clone for FindingProvenance
impl Clone for FindingProvenance
Source§fn clone(&self) -> FindingProvenance
fn clone(&self) -> FindingProvenance
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 FindingProvenance
Source§impl Debug for FindingProvenance
impl Debug for FindingProvenance
Source§impl<'de> Deserialize<'de> for FindingProvenance
impl<'de> Deserialize<'de> for FindingProvenance
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FindingProvenance
Source§impl Hash for FindingProvenance
impl Hash for FindingProvenance
Source§impl Ord for FindingProvenance
impl Ord for FindingProvenance
Source§fn cmp(&self, other: &FindingProvenance) -> Ordering
fn cmp(&self, other: &FindingProvenance) -> 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
Source§impl PartialEq for FindingProvenance
impl PartialEq for FindingProvenance
Source§impl PartialOrd for FindingProvenance
impl PartialOrd for FindingProvenance
Source§impl Serialize for FindingProvenance
impl Serialize for FindingProvenance
impl StructuralPartialEq for FindingProvenance
Auto Trait Implementations§
impl Freeze for FindingProvenance
impl RefUnwindSafe for FindingProvenance
impl Send for FindingProvenance
impl Sync for FindingProvenance
impl Unpin for FindingProvenance
impl UnsafeUnpin for FindingProvenance
impl UnwindSafe for FindingProvenance
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
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
Compare self to
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> ⓘ
Converts
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> ⓘ
Converts
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