pub struct TargetThresholds {
pub fan_in_p95: f64,
pub fan_in_p75: f64,
pub fan_out_p95: f64,
pub fan_out_p90: usize,
}Expand description
Adaptive thresholds used for refactoring target scoring.
Derived from the project’s metric distribution (percentile-based with floors). Exposed in JSON output so consumers can interpret scores in context.
Fields§
§fan_in_p95: f64Fan-in saturation point for priority formula (p95, floor 5).
fan_in_p75: f64Fan-in moderate threshold for contributing factors (p75, floor 3).
fan_out_p95: f64Fan-out saturation point for priority formula (p95, floor 8).
fan_out_p90: usizeFan-out high threshold for rules and contributing factors (p90, floor 5).
Trait Implementations§
Source§impl Clone for TargetThresholds
impl Clone for TargetThresholds
Source§impl Debug for TargetThresholds
impl Debug for TargetThresholds
Source§impl<'de> Deserialize<'de> for TargetThresholds
impl<'de> Deserialize<'de> for TargetThresholds
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 TargetThresholds
impl RefUnwindSafe for TargetThresholds
impl Send for TargetThresholds
impl Sync for TargetThresholds
impl Unpin for TargetThresholds
impl UnsafeUnpin for TargetThresholds
impl UnwindSafe for TargetThresholds
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