pub struct Finding {
pub severity: &'static str,
pub code: Option<&'static str>,
pub concept: Option<String>,
pub path: Option<String>,
pub message: String,
}Expand description
One finding from validate_report or lint_report.
Fields§
§severity: &'static strerror, warning or info.
code: Option<&'static str>The hygiene rule that produced this (L1..L12), when it was one.
Conformance findings carry no code: they are the specification’s rules rather than this project’s opinions, and numbering them here would invent an identifier scheme OKF does not have.
concept: Option<String>The concept the finding is about, if it is about one.
path: Option<String>The file the finding is about, relative to the bundle root.
message: StringWhat is wrong.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Finding
impl UnwindSafe for Finding
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