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: u32Which statement has failed.
In a single-statement ops this is usually 0 for the statement itself or 1 for the COMMIT.
status: &'static strReturned by PQresStatus, “string constant describing the status code”.
sqlstate: StringThe 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: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for PgSqlErr
impl !RefUnwindSafe for PgSqlErr
impl Send for PgSqlErr
impl Sync for PgSqlErr
impl Unpin for PgSqlErr
impl !UnwindSafe for PgSqlErr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more