pub enum QueueAuth {
Credentials {
username: String,
password: String,
},
ApiKey {
key: String,
},
OAuth2 {
client_id: String,
client_secret: String,
token_url: String,
},
Tls {
cert_path: String,
key_path: String,
ca_path: Option<String>,
},
}Expand description
Queue authentication configuration.
Variants§
Credentials
Username/password authentication.
ApiKey
API key authentication.
OAuth2
OAuth2 authentication.
Fields
Tls
TLS/mTLS authentication.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for QueueAuth
impl<'de> Deserialize<'de> for QueueAuth
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 QueueAuth
impl RefUnwindSafe for QueueAuth
impl Send for QueueAuth
impl Sync for QueueAuth
impl Unpin for QueueAuth
impl UnsafeUnpin for QueueAuth
impl UnwindSafe for QueueAuth
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