pub struct Diagnostic {
pub severity: Severity,
pub code: String,
pub message: String,
pub node_path: String,
pub pass: String,
pub hint: Option<String>,
}Expand description
A single validation diagnostic.
Fields§
§severity: SeveritySeverity level.
code: StringError code (e.g., “A11Y001”, “SEC003”, “STR001”).
message: StringHuman-readable message describing the issue and how to fix it.
node_path: StringPath to the offending node (e.g., “/root/children/2/semantic”).
pass: StringValidation pass that produced this diagnostic.
hint: Option<String>Optional fix suggestion.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
Auto Trait Implementations§
impl Forget for Diagnostic
impl Freeze for Diagnostic
impl Move for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin for Diagnostic
impl UnsafeUnpin for Diagnostic
impl UnwindSafe for Diagnostic
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