pub struct Diagnostic {
pub severity: ErrorSeverity,
pub error_code: ErrorCode,
pub message: String,
pub location: Location,
pub suggestions: Vec<Suggestion>,
pub related: Vec<Diagnostic>,
}
Expand description
Represents a single diagnostic message with context and suggestions
Fields§
§severity: ErrorSeverity
The severity level of this diagnostic
error_code: ErrorCode
The structured error code for this diagnostic
message: String
The human-readable message describing the issue
location: Location
The source location where this diagnostic occurred
suggestions: Vec<Suggestion>
Optional suggestions for fixing the issue
Related diagnostics that provide additional context
Trait Implementations§
Source§impl Clone for Diagnostic
impl Clone for Diagnostic
Source§fn clone(&self) -> Diagnostic
fn clone(&self) -> Diagnostic
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Diagnostic
impl RefUnwindSafe for Diagnostic
impl Send for Diagnostic
impl Sync for Diagnostic
impl Unpin 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