pub struct RiskScore {
pub level: RiskLevel,
pub score: f32,
pub factors: Vec<RiskFactor>,
}Expand description
Risk score for a plan or step
Fields§
§level: RiskLevelRisk level (Low, Medium, High, Critical)
score: f32Numeric score (0.0 to 1.0+)
factors: Vec<RiskFactor>Individual risk factors contributing to the score
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