pub struct DbError {
pub as_text: String,
pub severity: String,
pub code: String,
pub message: String,
pub detail: Option<String>,
pub extras: Vec<(String, String)>,
}Fields§
§as_text: StringStringised version of the error. This is primarily to facilitate migration of older code.
severity: String§code: String§message: String§detail: Option<String>§extras: Vec<(String, String)>Any error information provided by Postgres and not captured above.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DbError
impl RefUnwindSafe for DbError
impl Send for DbError
impl Sync for DbError
impl Unpin for DbError
impl UnwindSafe for DbError
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