Struct lunatic::sqlite::SqliteError
source · pub struct SqliteError {
pub code: SqliteCode,
pub message: Option<String>,
}
Available on crate feature
sqlite
only.Expand description
An Sqlite error with a code and optional message.
Fields§
§code: SqliteCode
Error code.
message: Option<String>
Error message.
Implementations§
source§impl SqliteError
impl SqliteError
sourcepub fn last(conn: SqliteClient) -> Self
pub fn last(conn: SqliteClient) -> Self
Returns the last error that occurred.
Trait Implementations§
source§impl Clone for SqliteError
impl Clone for SqliteError
source§fn clone(&self) -> SqliteError
fn clone(&self) -> SqliteError
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 SqliteError
impl Debug for SqliteError
source§impl Default for SqliteError
impl Default for SqliteError
source§impl<'de> Deserialize<'de> for SqliteError
impl<'de> Deserialize<'de> for SqliteError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SqliteError
impl Display for SqliteError
source§impl Error for SqliteError
impl Error for SqliteError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl PartialEq<SqliteError> for SqliteError
impl PartialEq<SqliteError> for SqliteError
source§fn eq(&self, other: &SqliteError) -> bool
fn eq(&self, other: &SqliteError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SqliteError
impl Serialize for SqliteError
impl Eq for SqliteError
impl StructuralEq for SqliteError
impl StructuralPartialEq for SqliteError
Auto Trait Implementations§
impl RefUnwindSafe for SqliteError
impl Send for SqliteError
impl Sync for SqliteError
impl Unpin for SqliteError
impl UnwindSafe for SqliteError
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