pub struct ReportViolation {
pub severity: String,
pub field: String,
pub message: String,
pub spec_ref: String,
}Expand description
One violation in a YAML lint report.
Fields§
§severity: String"warn" or "error".
field: StringFrontmatter field or JSON pointer path.
message: StringHuman-readable message.
spec_ref: StringSpec or schema URL citation.
Trait Implementations§
Source§impl Debug for ReportViolation
impl Debug for ReportViolation
Source§impl From<&Violation> for ReportViolation
impl From<&Violation> for ReportViolation
Auto Trait Implementations§
impl Freeze for ReportViolation
impl RefUnwindSafe for ReportViolation
impl Send for ReportViolation
impl Sync for ReportViolation
impl Unpin for ReportViolation
impl UnsafeUnpin for ReportViolation
impl UnwindSafe for ReportViolation
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