Struct postgres_shared::params::User [−][src]
pub struct User { /* fields omitted */ }
Authentication information.
Methods
impl User
[src]
impl User
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
The username.
pub fn password(&self) -> Option<&str>
[src]
pub fn password(&self) -> Option<&str>
An optional password.
Trait Implementations
impl Clone for User
[src]
impl Clone for User
fn clone(&self) -> User
[src]
fn clone(&self) -> User
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 User
[src]
impl Debug for User
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for User
[src]
impl PartialEq for User
fn eq(&self, other: &User) -> bool
[src]
fn eq(&self, other: &User) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &User) -> bool
[src]
fn ne(&self, other: &User) -> bool
This method tests for !=
.
impl Eq for User
[src]
impl Eq for User
impl Hash for User
[src]
impl Hash for User