Struct sqruff_lib::core::errors::SQLBaseError
source · pub struct SQLBaseError {
pub fatal: bool,
pub ignore: bool,
pub warning: bool,
pub line_no: usize,
pub line_pos: usize,
pub description: String,
pub rule_code: String,
pub rule: Option<ErasedRule>,
}
Fields§
§fatal: bool
§ignore: bool
§warning: bool
§line_no: usize
§line_pos: usize
§description: String
§rule_code: String
§rule: Option<ErasedRule>
Implementations§
source§impl SQLBaseError
impl SQLBaseError
Trait Implementations§
source§impl Clone for SQLBaseError
impl Clone for SQLBaseError
source§fn clone(&self) -> SQLBaseError
fn clone(&self) -> SQLBaseError
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 moresource§impl Debug for SQLBaseError
impl Debug for SQLBaseError
source§impl Default for SQLBaseError
impl Default for SQLBaseError
source§impl From<SQLLintError> for SQLBaseError
impl From<SQLLintError> for SQLBaseError
source§fn from(value: SQLLintError) -> Self
fn from(value: SQLLintError) -> Self
Converts to this type from the input type.
source§impl From<SQLParseError> for SQLBaseError
impl From<SQLParseError> for SQLBaseError
source§fn from(value: SQLParseError) -> Self
fn from(value: SQLParseError) -> Self
Converts to this type from the input type.
source§impl PartialEq for SQLBaseError
impl PartialEq for SQLBaseError
source§fn eq(&self, other: &SQLBaseError) -> bool
fn eq(&self, other: &SQLBaseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SqlError for SQLBaseError
impl SqlError for SQLBaseError
impl StructuralPartialEq for SQLBaseError
Auto Trait Implementations§
impl Freeze for SQLBaseError
impl !RefUnwindSafe for SQLBaseError
impl Send for SQLBaseError
impl Sync for SQLBaseError
impl Unpin for SQLBaseError
impl !UnwindSafe for SQLBaseError
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more