[][src]Struct lapin::auth::Credentials

pub struct Credentials { /* fields omitted */ }

Structure holding the username and passwor for authentication

Methods

impl Credentials[src]

pub fn new(username: String, password: String) -> Credentials[src]

Create a new Credentials instance with the given username and password

pub fn username(&self) -> &str[src]

Get the username

pub fn password(&self) -> &str[src]

Get the password

pub fn sasl_auth_string(&self, mechanism: SASLMechanism) -> String[src]

Get the SASL authentication String for the given SASL mechanism

pub fn rabbit_cr_demo_answer(&self) -> String[src]

Get the answer we need to give to the server for the RabbitCrDemo mehanism

Trait Implementations

impl Clone for Credentials[src]

impl Debug for Credentials[src]

impl Default for Credentials[src]

impl Eq for Credentials[src]

impl From<AMQPUserInfo> for Credentials[src]

impl PartialEq<Credentials> for Credentials[src]

impl StructuralEq for Credentials[src]

impl StructuralPartialEq 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> 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.