#[non_exhaustive]pub enum BrokerAuth {
None,
Bearer(Arc<dyn CredentialSource>),
}Expand description
How the app authenticates to the broker.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
No app authentication (only for brokers behind other protection).
Bearer(Arc<dyn CredentialSource>)
Authorization: Bearer <secret> where the secret comes from this source,
asked with provider name "token_broker" (e.g. the user’s session token).
Trait Implementations§
Source§impl Clone for BrokerAuth
impl Clone for BrokerAuth
Source§impl Debug for BrokerAuth
impl Debug for BrokerAuth
Auto Trait Implementations§
impl !RefUnwindSafe for BrokerAuth
impl !UnwindSafe for BrokerAuth
impl Forget for BrokerAuth
impl Freeze for BrokerAuth
impl Move for BrokerAuth
impl Send for BrokerAuth
impl Sync for BrokerAuth
impl Unpin for BrokerAuth
impl UnsafeUnpin for BrokerAuth
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