pub struct Violation {
pub severity: Severity,
pub field: String,
pub message: String,
pub spec_ref: &'static str,
}Expand description
A single lint finding with a citation into the spec or schema.
Fields§
§severity: SeverityHow severe this finding is.
field: StringFrontmatter field or path associated with the violation.
message: StringHuman-readable description of the problem.
spec_ref: &'static strURL to the relevant RFC section or schema document.
Trait Implementations§
Source§impl Deserialize<'static> for Violation
impl Deserialize<'static> for Violation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Violation> for ReportViolation
impl From<&Violation> for ReportViolation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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