pub struct RatchetRuleConfig {
pub pointer: String,
pub max_increase_pct: Option<f64>,
pub max_value: Option<f64>,
pub level: Option<String>,
pub description: Option<String>,
}Expand description
A single ratchet rule for baseline comparison (TOML configuration).
Fields§
§pointer: StringJSON Pointer to the metric (e.g., “/complexity/avg_cyclomatic”).
max_increase_pct: Option<f64>Maximum allowed percentage increase from baseline.
max_value: Option<f64>Maximum allowed absolute value (hard ceiling).
level: Option<String>Rule severity level: “error” (default) or “warn”.
description: Option<String>Human-readable description of the rule.
Trait Implementations§
Source§impl Clone for RatchetRuleConfig
impl Clone for RatchetRuleConfig
Source§fn clone(&self) -> RatchetRuleConfig
fn clone(&self) -> RatchetRuleConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RatchetRuleConfig
impl Debug for RatchetRuleConfig
Source§impl<'de> Deserialize<'de> for RatchetRuleConfig
impl<'de> Deserialize<'de> for RatchetRuleConfig
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 RatchetRuleConfig
impl RefUnwindSafe for RatchetRuleConfig
impl Send for RatchetRuleConfig
impl Sync for RatchetRuleConfig
impl Unpin for RatchetRuleConfig
impl UnsafeUnpin for RatchetRuleConfig
impl UnwindSafe for RatchetRuleConfig
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