pub enum BrokerAuthConfig {
Plain {
username: String,
password: String,
},
ScramSha256 {
username: String,
password: String,
},
ScramSha512 {
username: String,
password: String,
},
}Expand description
Authentication configuration for broker connection
Variants§
Plain
SASL/PLAIN authentication
ScramSha256
SASL/SCRAM-SHA-256 authentication
ScramSha512
SASL/SCRAM-SHA-512 authentication
Trait Implementations§
Source§impl Clone for BrokerAuthConfig
impl Clone for BrokerAuthConfig
Source§fn clone(&self) -> BrokerAuthConfig
fn clone(&self) -> BrokerAuthConfig
Returns a duplicate 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 BrokerAuthConfig
impl Debug for BrokerAuthConfig
Source§impl<'de> Deserialize<'de> for BrokerAuthConfig
impl<'de> Deserialize<'de> for BrokerAuthConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BrokerAuthConfig
impl RefUnwindSafe for BrokerAuthConfig
impl Send for BrokerAuthConfig
impl Sync for BrokerAuthConfig
impl Unpin for BrokerAuthConfig
impl UnsafeUnpin for BrokerAuthConfig
impl UnwindSafe for BrokerAuthConfig
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