[][src]Enum diesel::result::DatabaseErrorKind

pub enum DatabaseErrorKind {
    UniqueViolation,
    ForeignKeyViolation,
    UnableToSendCommand,
    // some variants omitted
}

The kind of database error that occurred.

This is not meant to exhaustively cover all possible errors, but is used to identify errors which are commonly recovered from programmatically. This enum is not intended to be exhaustively matched, and new variants may be added in the future without a major version bump.

Variants

A unique constraint was violated.

A foreign key constraint was violated.

The query could not be sent to the database due to a protocol violation.

An example of a case where this would occur is if you attempted to send a query with more than 65000 bind parameters using PostgreSQL.

Trait Implementations

impl Clone for DatabaseErrorKind
[src]

Performs copy-assignment from source. Read more

impl Copy for DatabaseErrorKind
[src]

impl Debug for DatabaseErrorKind
[src]

Auto Trait Implementations

impl Send for DatabaseErrorKind

impl Sync for DatabaseErrorKind

Blanket Implementations

impl<T> IntoSql for T
[src]

Convert self to an expression for Diesel's query builder. Read more

Convert &self to an expression for Diesel's query builder. Read more

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]