pub struct ReasonEvidence {
pub reason_code: ReasonCode,
pub matched_heuristic: Option<HeuristicId>,
pub confidence: f64,
pub description: &'static str,
pub provenance: &'static str,
pub applied_prior: Option<AppliedStaticPrior>,
}Expand description
Human-readable explanation of the structural reason selected by DSFB.
Fields§
§reason_code: ReasonCodeSelected reason code.
matched_heuristic: Option<HeuristicId>Heuristic that produced the reason code, if any.
confidence: f64Match confidence after bounded threshold scaling.
description: &'static strHuman-readable description of the pattern.
provenance: &'static strRust-specific provenance of the pattern.
applied_prior: Option<AppliedStaticPrior>Static prior applied to the winning heuristic, if any.
Trait Implementations§
Source§impl Clone for ReasonEvidence
impl Clone for ReasonEvidence
Source§fn clone(&self) -> ReasonEvidence
fn clone(&self) -> ReasonEvidence
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReasonEvidence
impl Debug for ReasonEvidence
impl Copy for ReasonEvidence
Auto Trait Implementations§
impl Freeze for ReasonEvidence
impl RefUnwindSafe for ReasonEvidence
impl Send for ReasonEvidence
impl Sync for ReasonEvidence
impl Unpin for ReasonEvidence
impl UnsafeUnpin for ReasonEvidence
impl UnwindSafe for ReasonEvidence
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