Struct lapin::auth::Credentials
source · pub struct Credentials { /* private fields */ }
Expand description
Structure holding the username and password for authentication
Implementations§
source§impl Credentials
impl Credentials
sourcepub fn new(username: String, password: String) -> Credentials
pub fn new(username: String, password: String) -> Credentials
Create a new Credentials instance with the given username and password
sourcepub fn sasl_auth_string(&self, mechanism: SASLMechanism) -> String
pub fn sasl_auth_string(&self, mechanism: SASLMechanism) -> String
Get the SASL authentication String for the given SASL mechanism
sourcepub fn rabbit_cr_demo_answer(&self) -> String
pub fn rabbit_cr_demo_answer(&self) -> String
Get the answer we need to give to the server for the RabbitCrDemo mehanism
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
source§fn clone(&self) -> Credentials
fn clone(&self) -> Credentials
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Credentials
impl Debug for Credentials
source§impl Default for Credentials
impl Default for Credentials
source§fn default() -> Credentials
fn default() -> Credentials
Returns the “default value” for a type. Read more
source§impl From<AMQPUserInfo> for Credentials
impl From<AMQPUserInfo> for Credentials
source§fn from(user_info: AMQPUserInfo) -> Credentials
fn from(user_info: AMQPUserInfo) -> Credentials
Converts to this type from the input type.
source§impl PartialEq for Credentials
impl PartialEq for Credentials
source§fn eq(&self, other: &Credentials) -> bool
fn eq(&self, other: &Credentials) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for Credentials
impl StructuralPartialEq for Credentials
Auto Trait Implementations§
impl Freeze for Credentials
impl RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl UnwindSafe for Credentials
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more