pub struct TrendDelta {
pub path: PathBuf,
pub first_as_of: i64,
pub last_as_of: i64,
pub first_risk_score: f64,
pub last_risk_score: f64,
pub delta: f64,
}Available on crate feature
vcs-git only.Expand description
One file’s risk-score movement across the trend (see
Trend::deltas).
Fields§
§path: PathBufRepository-relative path.
first_as_of: i64Timestamp of the file’s earliest present point.
last_as_of: i64Timestamp of the file’s latest present point.
first_risk_score: f64risk_score at the earliest present point.
last_risk_score: f64risk_score at the latest present point.
delta: f64last_risk_score - first_risk_score; negative = improved.
Trait Implementations§
Source§impl Clone for TrendDelta
impl Clone for TrendDelta
Source§fn clone(&self) -> TrendDelta
fn clone(&self) -> TrendDelta
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 TrendDelta
impl Debug for TrendDelta
Source§impl PartialEq for TrendDelta
impl PartialEq for TrendDelta
impl StructuralPartialEq for TrendDelta
Auto Trait Implementations§
impl Freeze for TrendDelta
impl RefUnwindSafe for TrendDelta
impl Send for TrendDelta
impl Sync for TrendDelta
impl Unpin for TrendDelta
impl UnsafeUnpin for TrendDelta
impl UnwindSafe for TrendDelta
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