Struct postgres_shared::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 PartialEq for SqlState
[src]
fn eq(&self, __arg_0: &SqlState) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SqlState) -> bool
[src]
This method tests for !=
.
impl Eq for SqlState
[src]
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