Struct postgres_shared::error::SqlState [−][src]
pub struct SqlState(_);
A SQLSTATE error code
Methods
impl SqlState
[src]
impl SqlState
pub fn from_code(s: &str) -> SqlState
[src]
pub fn from_code(s: &str) -> SqlState
Creates a SqlState
from its error code.
pub fn code(&self) -> &str
[src]
pub fn code(&self) -> &str
Returns the error code corresponding to the SqlState
.
Trait Implementations
impl PartialEq for SqlState
[src]
impl PartialEq for SqlState
fn eq(&self, other: &SqlState) -> bool
[src]
fn eq(&self, other: &SqlState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &SqlState) -> bool
[src]
fn ne(&self, other: &SqlState) -> bool
This method tests for !=
.
impl Eq for SqlState
[src]
impl Eq for SqlState
impl Clone for SqlState
[src]
impl Clone for SqlState
fn clone(&self) -> SqlState
[src]
fn clone(&self) -> SqlState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for SqlState
[src]
impl Debug for SqlState