pub struct Stats {
pub files: u32,
pub unparsed: u32,
pub unparsed_files: Vec<String>,
pub reachable_files: u32,
pub symbols: u32,
pub entry_points: u32,
pub by_category: Vec<CategoryCount>,
pub dead_lines: u32,
pub total_lines: u32,
pub percentage: f64,
pub detection_date: String,
}Expand description
Run-level counters, for reporters and for the exit-code gate.
Fields§
§files: u32Files walked and analyzed.
unparsed: u32Files that failed to parse.
unparsed_files: Vec<String>Their paths, so a reader can tell a broken fixture from a real gap.
reachable_files: u32Files an entry point reaches.
symbols: u32Declarations found across every analyzed file.
entry_points: u32Entry-point files, however they were detected.
by_category: Vec<CategoryCount>Findings surviving the confidence threshold, per category.
dead_lines: u32Lines of code the surviving findings cover.
total_lines: u32Total lines across analyzed files.
percentage: f64dead_lines as a percentage of total_lines.
detection_date: StringISO-8601 timestamp of the run.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
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 Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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
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> 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