pub trait SqlxErrorExt {
// Required methods
fn is_unique_violation(&self) -> bool;
fn is_foreign_key_violation(&self) -> bool;
fn is_check_violation(&self) -> bool;
fn is_not_null_violation(&self) -> bool;
fn code(&self) -> Option<Cow<'_, str>>;
fn message(&self) -> Option<&str>;
}Required Methods§
fn is_unique_violation(&self) -> bool
fn is_foreign_key_violation(&self) -> bool
fn is_check_violation(&self) -> bool
fn is_not_null_violation(&self) -> bool
fn code(&self) -> Option<Cow<'_, str>>
fn message(&self) -> Option<&str>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".