pub struct ScoringReason {
pub description: String,
pub points: i16,
pub dimension: ScoringDimension,
}Expand description
One contribution to the confidence or impact score.
Reasons are accumulated during classification and attached to the OracleResult so the
operator can see exactly which signals drove the final verdict and severity.
Fields§
§description: StringWhat was observed, e.g. "Status differential 416 vs 404".
points: i16Points contributed (positive or negative).
dimension: ScoringDimensionWhich scoring axis this reason contributes to.
Trait Implementations§
Source§impl Clone for ScoringReason
impl Clone for ScoringReason
Source§fn clone(&self) -> ScoringReason
fn clone(&self) -> ScoringReason
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 ScoringReason
impl Debug for ScoringReason
Source§impl<'de> Deserialize<'de> for ScoringReason
impl<'de> Deserialize<'de> for ScoringReason
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
Auto Trait Implementations§
impl Freeze for ScoringReason
impl RefUnwindSafe for ScoringReason
impl Send for ScoringReason
impl Sync for ScoringReason
impl Unpin for ScoringReason
impl UnsafeUnpin for ScoringReason
impl UnwindSafe for ScoringReason
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