pub struct PostgresError {
pub code: PostgresErrorCode,
pub message: String,
pub details: Option<String>,
pub hint: Option<String>,
}Expand description
Represents an error returned by PostgreSQL.
Fields§
§code: PostgresErrorCode§message: String§details: Option<String>§hint: Option<String>Implementations§
Source§impl PostgresError
impl PostgresError
pub fn from_response(resp: ErrorResponse) -> Self
pub const fn http_status_code(&self, is_authenticated: bool) -> u16
Trait Implementations§
Source§impl Clone for PostgresError
impl Clone for PostgresError
Source§fn clone(&self) -> PostgresError
fn clone(&self) -> PostgresError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PostgresError
impl Debug for PostgresError
Source§impl Ord for PostgresError
impl Ord for PostgresError
Source§impl PartialEq for PostgresError
impl PartialEq for PostgresError
Source§impl PartialOrd for PostgresError
impl PartialOrd for PostgresError
impl Eq for PostgresError
impl StructuralPartialEq for PostgresError
Auto Trait Implementations§
impl Freeze for PostgresError
impl RefUnwindSafe for PostgresError
impl Send for PostgresError
impl Sync for PostgresError
impl Unpin for PostgresError
impl UnwindSafe for PostgresError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)