pub struct ThresholdOverrideMetrics {
pub cyclomatic: u16,
pub cognitive: u16,
pub crap: Option<f64>,
pub line_count: Option<u32>,
}Expand description
Current complexity metrics for a matched threshold override entry.
Fields§
§cyclomatic: u16Current cyclomatic complexity of the matched function.
cognitive: u16Current cognitive complexity of the matched function.
crap: Option<f64>Current CRAP score, when coverage data exists.
line_count: Option<u32>Measured line count of the matched unit. Present on complexity rows,
where maxUnitSize participates in the dimension; absent on CRAP rows
and <component> rollup rows, which are never scored on unit size.
Trait Implementations§
Source§impl Clone for ThresholdOverrideMetrics
impl Clone for ThresholdOverrideMetrics
impl Copy for ThresholdOverrideMetrics
Source§impl Debug for ThresholdOverrideMetrics
impl Debug for ThresholdOverrideMetrics
Source§impl<'de> Deserialize<'de> for ThresholdOverrideMetrics
impl<'de> Deserialize<'de> for ThresholdOverrideMetrics
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 ThresholdOverrideMetrics
impl RefUnwindSafe for ThresholdOverrideMetrics
impl Send for ThresholdOverrideMetrics
impl Sync for ThresholdOverrideMetrics
impl Unpin for ThresholdOverrideMetrics
impl UnsafeUnpin for ThresholdOverrideMetrics
impl UnwindSafe for ThresholdOverrideMetrics
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