pub struct RuleStatistic {
pub rule: String,
pub count: usize,
pub fixable: usize,
pub unsafe_fixable: usize,
}Expand description
One row of htl check --statistics’s table, and of its --format json form: a rule
with at least one finding this run, how many, and how many of those a fix covers.
fixable is safe and suggest findings together — what htl fix applies or shows
without --unsafe — and unsafe_fixable is the rest that still carry a fix. Neither
overlaps the other, and together they need not reach count: the difference is
findings with no fix at all.
Fields§
§rule: String§count: usize§fixable: usize§unsafe_fixable: usizeTrait Implementations§
Source§impl Debug for RuleStatistic
impl Debug for RuleStatistic
impl Eq for RuleStatistic
Source§impl PartialEq for RuleStatistic
impl PartialEq for RuleStatistic
Source§impl Serialize for RuleStatistic
impl Serialize for RuleStatistic
impl StructuralPartialEq for RuleStatistic
Auto Trait Implementations§
impl Freeze for RuleStatistic
impl RefUnwindSafe for RuleStatistic
impl Send for RuleStatistic
impl Sync for RuleStatistic
impl Unpin for RuleStatistic
impl UnsafeUnpin for RuleStatistic
impl UnwindSafe for RuleStatistic
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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