Struct postgres_shared::error::SqlState [−][src]
pub struct SqlState(_);
A SQLSTATE error code
Methods
impl SqlState[src]
impl SqlStatepub fn from_code(s: &str) -> SqlState[src]
pub fn from_code(s: &str) -> SqlStateCreates a SqlState from its error code.
pub fn code(&self) -> &str[src]
pub fn code(&self) -> &strReturns the error code corresponding to the SqlState.
Trait Implementations
impl PartialEq for SqlState[src]
impl PartialEq for SqlStatefn eq(&self, other: &SqlState) -> bool[src]
fn eq(&self, other: &SqlState) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for SqlState[src]
impl Eq for SqlStateimpl Clone for SqlState[src]
impl Clone for SqlStatefn clone(&self) -> SqlState[src]
fn clone(&self) -> SqlStateReturns 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