[][src]Struct sasl::common::Credentials

pub struct Credentials {
    pub identity: Identity,
    pub secret: Secret,
    pub channel_binding: ChannelBinding,
}

A struct containing SASL credentials.

Fields

identity: Identity

The requested identity.

secret: Secret

The secret used to authenticate.

channel_binding: ChannelBinding

Channel binding data, for *-PLUS mechanisms.

Implementations

impl Credentials[src]

pub fn with_username<N: Into<String>>(
    mut self: Self,
    username: N
) -> Credentials
[src]

Creates a new Credentials with the specified username.

pub fn with_password<P: Into<String>>(
    mut self: Self,
    password: P
) -> Credentials
[src]

Creates a new Credentials with the specified plaintext password.

pub fn with_channel_binding(
    mut self: Self,
    channel_binding: ChannelBinding
) -> Credentials
[src]

Creates a new Credentials with the specified chanel binding.

Trait Implementations

impl Clone for Credentials[src]

impl Debug for Credentials[src]

impl Default for Credentials[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.