#[non_exhaustive]pub struct RuleCheck {
pub name: String,
pub id: RuleId,
pub kind: RuleKind,
pub verdict: Verdict,
pub evidence: Evidence,
pub examples: Vec<ExampleFailure>,
}Expand description
The result of checking one rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe rule’s name.
id: RuleIdThe rule’s content hash.
kind: RuleKindRewrite or identity.
verdict: VerdictThe verdict.
evidence: EvidenceWhat was checked.
examples: Vec<ExampleFailure>The #[example]s that did not hold (see check_examples).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuleCheck
impl RefUnwindSafe for RuleCheck
impl Send for RuleCheck
impl Sync for RuleCheck
impl Unpin for RuleCheck
impl UnsafeUnpin for RuleCheck
impl UnwindSafe for RuleCheck
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