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

pub enum DatabaseErrorKind {
    // 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.


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 Debug for DatabaseErrorKind

Formats the value using the given formatter. Read more

impl Clone for DatabaseErrorKind

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DatabaseErrorKind

Auto Trait Implementations

impl Send for DatabaseErrorKind

impl Sync for DatabaseErrorKind