pub struct PgSqlErr {
pub num: u32,
pub status: &'static str,
pub sqlstate: String,
pub message: String,
/* private fields */
}
Expand description
The part of PgFutureErr
that’s used when the SQL fails.
Fields
num: u32
Which statement has failed.
In a single-statement ops this is usually 0
for the statement itself or 1
for the COMMIT.
status: &'static str
Returned by PQresStatus
, “string constant describing the status code”.
sqlstate: String
The SQLSTATE code identifies the type of error that has occurred; it can be used by front-end applications to perform specific operations (such as error handling) in response to a particular database error. cf. https://www.postgresql.org/docs/9.4/static/errcodes-appendix.html
message: String
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for PgSqlErr
impl Send for PgSqlErr
impl Sync for PgSqlErr
impl Unpin for PgSqlErr
impl !UnwindSafe for PgSqlErr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more