pub struct DiagnosticMeta {
pub code: Value,
pub desc: Option<Value>,
pub hint: Option<&'static str>,
}Expand description
Diagnostic metadata payload used by LSP diagnostics.
Fields§
§code: ValueStable diagnostic code (for example, "PL001").
desc: Option<Value>Optional code description object containing a docs URL.
hint: Option<&'static str>Optional human-readable context hint explaining what the diagnostic
means and how to resolve it. None for codes (e.g. Perl::Critic)
whose per-policy descriptions already serve this purpose.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiagnosticMeta
impl RefUnwindSafe for DiagnosticMeta
impl Send for DiagnosticMeta
impl Sync for DiagnosticMeta
impl Unpin for DiagnosticMeta
impl UnsafeUnpin for DiagnosticMeta
impl UnwindSafe for DiagnosticMeta
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