pub struct DetectionConfig {
pub confidence_strong: f64,
pub confidence_moderate: f64,
pub confidence_weak: f64,
pub max_snippet_lines: usize,
pub trend_rising_days: u32,
pub trend_stable_days: u32,
}Expand description
Configuration for the convention detection engine.
Fields§
§confidence_strong: f64Confidence threshold for “Strong” weight.
confidence_moderate: f64Confidence threshold for “Moderate” weight.
confidence_weak: f64Confidence threshold for “Weak” weight.
max_snippet_lines: usizeMaximum number of lines per code snippet.
trend_rising_days: u32Age threshold (in days) below which a convention is considered Rising. If the P90 commit date is fewer than this many days ago, trend = Rising.
trend_stable_days: u32Age threshold (in days) below which a convention is considered Stable.
If the P90 commit date is fewer than this many days ago but at least
trend_rising_days, trend = Stable. Beyond this threshold, trend = Declining.
Trait Implementations§
Source§impl Clone for DetectionConfig
impl Clone for DetectionConfig
Source§fn clone(&self) -> DetectionConfig
fn clone(&self) -> DetectionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DetectionConfig
impl Debug for DetectionConfig
Source§impl Default for DetectionConfig
impl Default for DetectionConfig
Source§impl<'de> Deserialize<'de> for DetectionConfigwhere
DetectionConfig: Default,
impl<'de> Deserialize<'de> for DetectionConfigwhere
DetectionConfig: Default,
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 DetectionConfig
impl RefUnwindSafe for DetectionConfig
impl Send for DetectionConfig
impl Sync for DetectionConfig
impl Unpin for DetectionConfig
impl UnsafeUnpin for DetectionConfig
impl UnwindSafe for DetectionConfig
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