Skip to main content

MetricRow

Struct MetricRow 

Source
pub struct MetricRow {
Show 21 fields pub analysis: AnalysisSet, pub id: String, pub family: ContentFamily, pub files: u64, pub bytes: u64, pub allocated: u64, pub analyzed_files: u64, pub metrics: ReportMetricValues, pub document_raw_words: u64, pub document_word_stats: LogicalWordStats, pub document_metric_files: u64, pub coverage: BTreeMap<CoverageReason, u64>, pub lines_coverage: BTreeMap<CoverageReason, u64>, pub code_coverage: Option<BTreeMap<CoverageReason, u64>>, pub words_coverage: Option<BTreeMap<CoverageReason, u64>>, pub detection_sources: BTreeMap<DetectionSource, u64>, pub detection_confidence: BTreeMap<DetectionConfidence, u64>, pub generated_files: u64, pub vendored_files: u64, pub documentation_files: u64, pub share: MetricShare, /* private fields */
}
Expand description

One stable group in a metric-summary section.

Fields§

§analysis: AnalysisSet

Analyzer units requested for this row.

§id: String

Stable type or family label.

§family: ContentFamily

Broad family for type-grouped rows.

§files: u64

Matching regular files.

§bytes: u64

Apparent bytes.

§allocated: u64

Allocated bytes.

§analyzed_files: u64

Files whose requested metrics completed.

§metrics: ReportMetricValues

Additive content metric slots.

§document_raw_words: u64

Query-selected raw document words before normalization.

§document_word_stats: LogicalWordStats

Additive sufficient statistics for the query-selected document projection.

§document_metric_files: u64

Analyzed files that supplied normalized document statistics.

§coverage: BTreeMap<CoverageReason, u64>

Explicit content-analysis outcomes.

§lines_coverage: BTreeMap<CoverageReason, u64>

Lines-unit outcomes.

§code_coverage: Option<BTreeMap<CoverageReason, u64>>

Code-unit outcomes when requested.

§words_coverage: Option<BTreeMap<CoverageReason, u64>>

Words-unit outcomes when requested.

§detection_sources: BTreeMap<DetectionSource, u64>

Files by the classification tier that established their type.

§detection_confidence: BTreeMap<DetectionConfidence, u64>

Files by classification confidence.

§generated_files: u64

Files carrying a bounded generated-file marker.

§vendored_files: u64

Files below a conventional vendored path.

§documentation_files: u64

Files below a conventional documentation path or basename.

§share: MetricShare

Exact share in the report’s selected size metric.

Implementations§

Source§

impl MetricRow

Source

pub fn metric_value(&self, metric: &MetricDef) -> Option<u64>

Return one registry metric when its owning analyzer unit was requested.

Trait Implementations§

Source§

impl Clone for MetricRow

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for MetricRow

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.