pub struct VizHealthData {
pub availability: VizAvailability,
pub capabilities: VizHealthCapabilities,
pub shared_parse: Option<bool>,
pub score: Option<f64>,
pub grade: Option<String>,
pub average_maintainability: Option<f64>,
pub files: Vec<VizHealthFile>,
pub files_truncated: Option<usize>,
pub findings_truncated: Option<usize>,
pub findings: Vec<VizFinding>,
}Expand description
Health lens payload populated after the shared health runner completes.
Fields§
§availability: VizAvailabilityWhether the health runner completed, and how many files it scored.
capabilities: VizHealthCapabilitiesPer-signal availability, so the lens can dim what did not run.
Whether the run reused the viz session’s parse instead of reparsing.
score: Option<f64>Overall health score.
grade: Option<String>Letter grade derived from score.
average_maintainability: Option<f64>Mean maintainability index across scored files.
files: Vec<VizHealthFile>Per-file metrics carried in the payload.
files_truncated: Option<usize>Total scored-file count before the payload was capped.
findings_truncated: Option<usize>Total finding count before the payload was capped.
findings: Vec<VizFinding>The health findings carried in the payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VizHealthData
impl RefUnwindSafe for VizHealthData
impl Send for VizHealthData
impl Sync for VizHealthData
impl Unpin for VizHealthData
impl UnsafeUnpin for VizHealthData
impl UnwindSafe for VizHealthData
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> 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