pub struct RiskScore {
pub total: u32,
pub level: RiskLevel,
pub by_category: Vec<CategoryScore>,
pub by_severity: SeverityBreakdown,
}Expand description
Complete risk score result
Fields§
§total: u32Total risk score (0-100)
level: RiskLevelRisk level classification
by_category: Vec<CategoryScore>Score breakdown by category
by_severity: SeverityBreakdownScore breakdown by severity
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RiskScore
impl<'de> Deserialize<'de> for RiskScore
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 RiskScore
impl RefUnwindSafe for RiskScore
impl Send for RiskScore
impl Sync for RiskScore
impl Unpin for RiskScore
impl UnwindSafe for RiskScore
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