pub struct RiskProfile {
pub low_risk: f64,
pub medium_risk: f64,
pub high_risk: f64,
pub very_high_risk: f64,
}Expand description
Risk profile: percentage of functions in each risk bin.
Bins are defined by thresholds that depend on the measured property:
- Unit size: low risk (1-15 LOC), medium risk (16-30), high risk (31-60), very high risk (>60)
- Unit interfacing: low risk (0-2 params), medium risk (3-4), high risk (5-6), very high risk (>=7)
Percentages sum to approximately 100.0 (subject to rounding).
Fields§
§low_risk: f64Percentage of functions in the low-risk bin.
medium_risk: f64Percentage of functions in the medium-risk bin.
high_risk: f64Percentage of functions in the high-risk bin.
very_high_risk: f64Percentage of functions in the very-high-risk bin.
Trait Implementations§
Source§impl Clone for RiskProfile
impl Clone for RiskProfile
Source§impl Debug for RiskProfile
impl Debug for RiskProfile
Source§impl<'de> Deserialize<'de> for RiskProfile
impl<'de> Deserialize<'de> for RiskProfile
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 RiskProfile
impl RefUnwindSafe for RiskProfile
impl Send for RiskProfile
impl Sync for RiskProfile
impl Unpin for RiskProfile
impl UnsafeUnpin for RiskProfile
impl UnwindSafe for RiskProfile
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