pub enum SqlError {
InvalidIdentifier {
identifier: String,
},
InjectionAttempt {
input: String,
},
InvalidTableName {
table: String,
},
InvalidColumnName {
column: String,
},
InvalidSpatialFunction {
function: String,
},
ParameterBindingError {
message: String,
},
}Expand description
SQL generation errors
Variants§
InvalidIdentifier
Invalid identifier
InjectionAttempt
SQL injection attempt detected
InvalidTableName
Invalid table name
InvalidColumnName
Invalid column name
InvalidSpatialFunction
Invalid spatial function
ParameterBindingError
Parameter binding error
Trait Implementations§
Source§impl Error for SqlError
impl Error for SqlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for SqlError
impl RefUnwindSafe for SqlError
impl Send for SqlError
impl Sync for SqlError
impl Unpin for SqlError
impl UnsafeUnpin for SqlError
impl UnwindSafe for SqlError
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