pub struct ScoringGap {
pub contract: String,
pub dimension: String,
pub current: f64,
pub target: f64,
pub impact: f64,
pub action: String,
}Expand description
A gap identified by the scoring system.
Impact is computed per spec Section 4:
impact = (1.0 - obligation_coverage) * dependency_fanout * tier_weight
Fields§
§contract: String§dimension: String§current: f64§target: f64§impact: f64§action: StringTrait Implementations§
Source§impl Clone for ScoringGap
impl Clone for ScoringGap
Source§fn clone(&self) -> ScoringGap
fn clone(&self) -> ScoringGap
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 ScoringGap
impl Debug for ScoringGap
Source§impl<'de> Deserialize<'de> for ScoringGap
impl<'de> Deserialize<'de> for ScoringGap
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 ScoringGap
impl RefUnwindSafe for ScoringGap
impl Send for ScoringGap
impl Sync for ScoringGap
impl Unpin for ScoringGap
impl UnsafeUnpin for ScoringGap
impl UnwindSafe for ScoringGap
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