Struct sasl::Credentials
[−]
[src]
pub struct Credentials { pub username: Option<String>, pub secret: Secret, pub channel_binding: ChannelBinding, }
A struct containing SASL credentials.
Fields
username: Option<String>
The requested username.
secret: Secret
The secret used to authenticate.
channel_binding: ChannelBinding
Channel binding data, for *-PLUS mechanisms.
Methods
impl Credentials
[src]
fn with_username<N: Into<String>>(self, username: N) -> Credentials
Creates a new Credentials with the specified username.
fn with_password<P: Into<String>>(self, password: P) -> Credentials
Creates a new Credentials with the specified password.
fn with_channel_binding(self, channel_binding: ChannelBinding) -> Credentials
Creates a new Credentials with the specified chanel binding.
Trait Implementations
impl Clone for Credentials
[src]
fn clone(&self) -> Credentials
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 Debug for Credentials
[src]
impl Default for Credentials
[src]
fn default() -> Credentials
Returns the "default value" for a type. Read more