pub struct CheckRun {
pub reports: Vec<FileReport>,
pub errors: Vec<FileError>,
pub elapsed_ms: u64,
pub skip_reason: Option<CheckSkipReason>,
}Expand description
Structured result of a check request. It contains no terminal formatting or process exit policy.
Fields§
§reports: Vec<FileReport>§errors: Vec<FileError>§elapsed_ms: u64§skip_reason: Option<CheckSkipReason>Implementations§
Source§impl CheckRun
impl CheckRun
pub fn any_error_violation(&self) -> bool
pub fn any_error(&self) -> bool
pub fn violation_counts(&self) -> ViolationCounts
pub fn summary(&self) -> CheckSummary
pub fn failed_rule_summary(&self) -> Vec<FailedRuleSummary>
pub fn violations_by_srcset(&self) -> BTreeMap<String, usize>
pub fn file_violations(&self) -> impl Iterator<Item = (&Path, &Violation)>
pub fn error_summaries(&self) -> impl Iterator<Item = (&Path, &str)>
pub fn rule_violation_totals(&self) -> BTreeMap<&str, usize>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CheckRun
impl RefUnwindSafe for CheckRun
impl Send for CheckRun
impl Sync for CheckRun
impl Unpin for CheckRun
impl UnsafeUnpin for CheckRun
impl UnwindSafe for CheckRun
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<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