pub struct ColumnLevelDiagnostic {
pub kind: ColumnLevelDiagnosticKind,
pub message: String,
pub span: Option<Span>,
}Expand description
A non-fatal diagnostic from column-level extraction
(extract_column_operations).
Carries the same message / span shape as TableLevelDiagnostic.
Fields§
§kind: ColumnLevelDiagnosticKind§message: String§span: Option<Span>Source location of the offending token, when available. None when
the originating AST node carries no span (sqlparser-rs coverage is
patchy outside Ident / Value / tokens), or when the resolver
couldn’t reasonably attribute the diagnostic to a single span.
Trait Implementations§
Source§impl Clone for ColumnLevelDiagnostic
impl Clone for ColumnLevelDiagnostic
Source§fn clone(&self) -> ColumnLevelDiagnostic
fn clone(&self) -> ColumnLevelDiagnostic
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 ColumnLevelDiagnostic
impl Debug for ColumnLevelDiagnostic
impl Eq for ColumnLevelDiagnostic
Source§impl PartialEq for ColumnLevelDiagnostic
impl PartialEq for ColumnLevelDiagnostic
Source§fn eq(&self, other: &ColumnLevelDiagnostic) -> bool
fn eq(&self, other: &ColumnLevelDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColumnLevelDiagnostic
Auto Trait Implementations§
impl Freeze for ColumnLevelDiagnostic
impl RefUnwindSafe for ColumnLevelDiagnostic
impl Send for ColumnLevelDiagnostic
impl Sync for ColumnLevelDiagnostic
impl Unpin for ColumnLevelDiagnostic
impl UnsafeUnpin for ColumnLevelDiagnostic
impl UnwindSafe for ColumnLevelDiagnostic
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