Struct KameiRiskRow
pub struct KameiRiskRow {
pub rev: String,
pub date: String,
pub la: u32,
pub ld: u32,
pub nf: u32,
pub nd: u32,
pub ndev: u32,
pub nuc: u32,
pub exp: u32,
pub entropy: f64,
pub fix: bool,
}Expand description
Per-commit Kamei JIT-SDP feature row for the Delivery Risk
Sparkline widget. Drops the merge-commit subset (their Kamei
vectors are 0 by design — see
gix_repo.rs::changed_files_for_commit) and the date-null
fringe.
Feature definitions per Kamei et al. 2013 §3:
la/ld— lines added / deleted (Size dimension)nf— files changed (Diffusion)nd— directories changed (Diffusion)ndev— distinct devs who touched the same files before this commit (History)nuc— unique changes per file before this commit (History)exp— author’s general experience (History)entropy— distribution of changes across files (Diffusion)fix— is this a bug-fix commit (Purpose)
Fields§
§rev: String§date: StringISO date YYYY-MM-DD of the commit (committer date).
la: u32§ld: u32§nf: u32§nd: u32§ndev: u32§nuc: u32§exp: u32§entropy: f64§fix: boolTrait Implementations§
§impl Clone for KameiRiskRow
impl Clone for KameiRiskRow
§fn clone(&self) -> KameiRiskRow
fn clone(&self) -> KameiRiskRow
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 more§impl Debug for KameiRiskRow
impl Debug for KameiRiskRow
§impl<'de> Deserialize<'de> for KameiRiskRow
impl<'de> Deserialize<'de> for KameiRiskRow
§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
§impl Serialize for KameiRiskRow
impl Serialize for KameiRiskRow
Auto Trait Implementations§
impl Freeze for KameiRiskRow
impl RefUnwindSafe for KameiRiskRow
impl Send for KameiRiskRow
impl Sync for KameiRiskRow
impl Unpin for KameiRiskRow
impl UnsafeUnpin for KameiRiskRow
impl UnwindSafe for KameiRiskRow
Blanket Implementations§
impl<T> Allocation for T
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more