pub struct SeverityCounts {
pub errors: usize,
pub warnings: usize,
pub info: usize,
pub unknown: usize,
pub total: usize,
}Expand description
Per-severity count of a single quantity.
The report publishes two distinct quantities: the number of distinct
diagnostics and the number of occurrences. Every surface exposes both under
explicit names, and total is always the sum of the four severities.
Fields§
§errors: usize§warnings: usize§info: usize§unknown: usize§total: usizeTrait Implementations§
Source§impl Clone for SeverityCounts
impl Clone for SeverityCounts
Source§fn clone(&self) -> SeverityCounts
fn clone(&self) -> SeverityCounts
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 moreimpl Copy for SeverityCounts
Source§impl Debug for SeverityCounts
impl Debug for SeverityCounts
Source§impl Default for SeverityCounts
impl Default for SeverityCounts
Source§fn default() -> SeverityCounts
fn default() -> SeverityCounts
Returns the “default value” for a type. Read more
impl Eq for SeverityCounts
Source§impl PartialEq for SeverityCounts
impl PartialEq for SeverityCounts
Source§impl Serialize for SeverityCounts
impl Serialize for SeverityCounts
impl StructuralPartialEq for SeverityCounts
Auto Trait Implementations§
impl Freeze for SeverityCounts
impl RefUnwindSafe for SeverityCounts
impl Send for SeverityCounts
impl Sync for SeverityCounts
impl Unpin for SeverityCounts
impl UnsafeUnpin for SeverityCounts
impl UnwindSafe for SeverityCounts
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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