pub struct ContributingFactor {
pub metric: &'static str,
pub value: f64,
pub threshold: f64,
pub detail: String,
}Expand description
A contributing factor that triggered or strengthened a recommendation.
Fields§
§metric: &'static strMetric name (matches JSON field names: "fan_in", "dead_code_ratio", etc.).
value: f64Raw metric value for programmatic use.
threshold: f64Threshold that was exceeded.
detail: StringHuman-readable explanation.
Trait Implementations§
Source§impl Clone for ContributingFactor
impl Clone for ContributingFactor
Source§impl Debug for ContributingFactor
impl Debug for ContributingFactor
Source§impl<'de> Deserialize<'de> for ContributingFactor
impl<'de> Deserialize<'de> for ContributingFactor
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 ContributingFactor
impl RefUnwindSafe for ContributingFactor
impl Send for ContributingFactor
impl Sync for ContributingFactor
impl Unpin for ContributingFactor
impl UnsafeUnpin for ContributingFactor
impl UnwindSafe for ContributingFactor
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