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

pub enum DatabaseErrorKind {
    UniqueViolation,
    // 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 programatically. This enum is not intended to be exhaustively matched, and new variants may be added in the future without a major version bump.

Variants

UniqueViolation

Trait Implementations

impl Copy for DatabaseErrorKind
[src]

impl Clone for DatabaseErrorKind
[src]

fn clone(&self) -> DatabaseErrorKind

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for DatabaseErrorKind
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.