Struct postgres::error::SqlState
[−]
[src]
pub struct SqlState(_);
A SQLSTATE error code
Methods
impl SqlState[src]
fn from_code(s: &str) -> SqlState[src]
Creates a SqlState from its error code.
fn code(&self) -> &str[src]
Returns the error code corresponding to the SqlState.
Trait Implementations
impl Debug for SqlState[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>[src]
Formats the value using the given formatter.
impl Clone for SqlState[src]
fn clone(&self) -> SqlState[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more