pub struct CompileDiagnostic {
pub severity: DiagnosticSeverity,
pub code: String,
pub message: String,
pub span: Option<SourceLocation>,
pub script: Option<ScriptDiagnostic>,
}Expand description
A versioned, source-attributed diagnostic exposed by the compile API.
Fields§
§severity: DiagnosticSeverity§code: String§message: String§span: Option<SourceLocation>§script: Option<ScriptDiagnostic>Trait Implementations§
Source§impl Clone for CompileDiagnostic
impl Clone for CompileDiagnostic
Source§fn clone(&self) -> CompileDiagnostic
fn clone(&self) -> CompileDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileDiagnostic
impl Debug for CompileDiagnostic
impl Eq for CompileDiagnostic
Source§impl PartialEq for CompileDiagnostic
impl PartialEq for CompileDiagnostic
Source§impl Serialize for CompileDiagnostic
impl Serialize for CompileDiagnostic
impl StructuralPartialEq for CompileDiagnostic
Auto Trait Implementations§
impl Freeze for CompileDiagnostic
impl RefUnwindSafe for CompileDiagnostic
impl Send for CompileDiagnostic
impl Sync for CompileDiagnostic
impl Unpin for CompileDiagnostic
impl UnsafeUnpin for CompileDiagnostic
impl UnwindSafe for CompileDiagnostic
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