[][src]Trait sqlx::error::DatabaseError

pub trait DatabaseError: Send + Sync + Debug + Display {
    fn message(&self) -> &str;

    fn details(&self) -> Option<&str> { ... }
fn hint(&self) -> Option<&str> { ... }
fn table_name(&self) -> Option<&str> { ... }
fn column_name(&self) -> Option<&str> { ... }
fn constraint_name(&self) -> Option<&str> { ... } }

An error that was returned by the database.

Required methods

fn message(&self) -> &str

The primary, human-readable error message.

Loading content...

Provided methods

fn details(&self) -> Option<&str>

fn hint(&self) -> Option<&str>

fn table_name(&self) -> Option<&str>

fn column_name(&self) -> Option<&str>

fn constraint_name(&self) -> Option<&str>

Loading content...

Implementors

Loading content...