pub enum Event {
Rule {
rule: RuleCommon,
key: String,
line: Option<usize>,
criterion: &'static str,
message: String,
},
Error {
line: Option<usize>,
criterion: &'static str,
message: String,
},
Gate {
only: Only,
line: usize,
rule: usize,
},
}Expand description
One thing the frontmatter check found.
Variants§
Rule
A failure of rule, at the rule’s severity, about the frontmatter
key key.
Fields
§
rule: RuleCommonThe rule that failed.
Error
An error the schema implies with no rule that states it.
Fields
Gate
A gated rule matched the value at line.
Trait Implementations§
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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