pub struct TrendPoint {
pub timestamp: String,
pub git_sha: Option<String>,
pub score: Option<f64>,
pub grade: Option<String>,
pub score_formula_version: Option<u32>,
pub coverage_model: Option<CoverageModel>,
pub snapshot_schema_version: Option<u32>,
}Expand description
A reference to a snapshot used in trend comparison.
Fields§
§timestamp: StringISO 8601 timestamp of the snapshot.
git_sha: Option<String>Git SHA at time of snapshot.
score: Option<f64>Health score from the snapshot (stored, not re-derived).
grade: Option<String>Letter grade from the snapshot.
score_formula_version: Option<u32>Formula used for the stored score; absent on legacy snapshots. A score delta is emitted only when this matches the current score formula.
coverage_model: Option<CoverageModel>Coverage model used for CRAP computation in this snapshot.
snapshot_schema_version: Option<u32>Schema version of the compared snapshot.
Trait Implementations§
Source§impl Clone for TrendPoint
impl Clone for TrendPoint
Source§impl Debug for TrendPoint
impl Debug for TrendPoint
Source§impl<'de> Deserialize<'de> for TrendPoint
impl<'de> Deserialize<'de> for TrendPoint
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 TrendPoint
impl RefUnwindSafe for TrendPoint
impl Send for TrendPoint
impl Sync for TrendPoint
impl Unpin for TrendPoint
impl UnsafeUnpin for TrendPoint
impl UnwindSafe for TrendPoint
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