diff --git a/src/sasl/mod.rs b/src/sasl/mod.rs index 25d4d3a0..1c489f57 100644 --- a/src/sasl/mod.rs +++ b/src/sasl/mod.rs @@ -1,13 +1,17 @@ //! Provides the `SaslMechanism` trait and some implementations. +/// A struct containing SASL credentials. pub struct SaslCredentials { pub username: String, pub secret: SaslSecret, pub channel_binding: Option>, } +/// Represents a SASL secret, like a password. pub enum SaslSecret { + /// No extra data needed. None, + /// Password required. Password(String), }