pub struct PgServerError {
pub severity: String,
pub code: String,
pub message: String,
pub detail: Option<String>,
pub hint: Option<String>,
}Expand description
Structured PostgreSQL server error fields.
Fields§
§severity: StringSeverity level (e.g. ERROR, FATAL, WARNING).
code: StringSQLSTATE error code (e.g. 23505).
message: StringHuman-readable message.
detail: Option<String>Optional detailed description.
hint: Option<String>Optional hint from server.
Trait Implementations§
Source§impl Clone for PgServerError
impl Clone for PgServerError
Source§fn clone(&self) -> PgServerError
fn clone(&self) -> PgServerError
Returns a duplicate 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 PgServerError
impl Debug for PgServerError
Source§impl From<ErrorFields> for PgServerError
impl From<ErrorFields> for PgServerError
Source§fn from(value: ErrorFields) -> Self
fn from(value: ErrorFields) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PgServerError
impl PartialEq for PgServerError
impl Eq for PgServerError
impl StructuralPartialEq for PgServerError
Auto Trait Implementations§
impl Freeze for PgServerError
impl RefUnwindSafe for PgServerError
impl Send for PgServerError
impl Sync for PgServerError
impl Unpin for PgServerError
impl UnsafeUnpin for PgServerError
impl UnwindSafe for PgServerError
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