Struct postgres::error::SqlState
[−]
[src]
pub struct SqlState(_);
A SQLSTATE error code
Methods
impl SqlState
[src]
fn from_code(s: &str) -> SqlState
Creates a SqlState
from its error code.
fn code(&self) -> &str
Returns the error code corresponding to the SqlState
.
Trait Implementations
impl Clone for SqlState
[src]
fn clone(&self) -> SqlState
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 Eq for SqlState
[src]
impl PartialEq<SqlState> for SqlState
[src]
fn eq(&self, __arg_0: &SqlState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SqlState) -> bool
This method tests for !=
.