pub struct ScoreReport {
pub against: String,
pub files_reindexed: usize,
pub complexity_baseline: i64,
pub complexity_current: i64,
pub fan_out_baseline: i64,
pub fan_out_current: i64,
pub metrics: Metrics,
pub per_file: Vec<FileScore>,
pub check_violations_note: Option<String>,
pub notes: Vec<String>,
}Expand description
The complete result of a score run.
Fields§
§against: StringThe git reference the working tree was compared against.
files_reindexed: usizeHow many files the internal incremental index refresh reindexed.
complexity_baseline: i64Summed baseline complexity over changed files.
complexity_current: i64Summed current complexity over changed files.
fan_out_baseline: i64Summed baseline fan-out over changed files.
fan_out_current: i64Summed current fan-out over changed files.
metrics: Metrics§per_file: Vec<FileScore>§check_violations_note: Option<String>Set when check_violations is 0 because no rules file exists.
notes: Vec<String>Caveats surfaced in both human and JSON output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScoreReport
impl RefUnwindSafe for ScoreReport
impl Send for ScoreReport
impl Sync for ScoreReport
impl Unpin for ScoreReport
impl UnsafeUnpin for ScoreReport
impl UnwindSafe for ScoreReport
Blanket Implementations§
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> 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