Struct sasl::Credentials [] [src]

pub struct Credentials {
    pub username: Option<String>,
    pub secret: Secret,
    pub channel_binding: ChannelBinding,
}

A struct containing SASL credentials.

Fields

The requested username.

The secret used to authenticate.

Channel binding data, for *-PLUS mechanisms.

Methods

impl Credentials
[src]

Creates a new Credentials with the specified username.

Creates a new Credentials with the specified password.

Creates a new Credentials with the specified chanel binding.

Trait Implementations

impl Clone for Credentials
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Credentials
[src]

Formats the value using the given formatter.

impl Default for Credentials
[src]

Returns the "default value" for a type. Read more