pub struct Diagnostic {
pub severity: Severity,
pub message: String,
pub at: String,
pub spec_reference: &'static str,
}Expand description
One thing wrong with a document.
Not zerodds_idl_parse::Diagnostic: that one carries a byte span
into an IDL token stream and a DiagnosticCode naming IDL grammar
productions. An XML finding points at an element path, and saying so
is better than a span of 0..0 that pretends to be a source
location.
Fields§
§severity: SeverityHow bad it is.
message: StringWhat is wrong, in a sentence.
at: StringThe document, and the element path inside it —
types/extensibility.xml: dds/types/module[Test]/struct[struct_m1].
spec_reference: &'static strThe clause the rule comes from.
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§impl Debug for Diagnostic
impl Debug for Diagnostic
Source§impl Display for Diagnostic
impl Display for Diagnostic
impl Eq for Diagnostic
Source§impl PartialEq for Diagnostic
impl PartialEq for Diagnostic
impl StructuralPartialEq for Diagnostic
Auto Trait Implementations§
impl Freeze 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