#[non_exhaustive]pub enum Authentication {
None,
Scan {
api_key: Option<Secret>,
api_token: Option<Secret>,
},
OAuth {
provider: Arc<dyn TokenProvider>,
tsg_header: Option<String>,
},
RuntimeKey {
api_key: Secret,
},
}Expand description
Per-client authentication. Credentials never enter ordinary formatting.
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.
Implementations§
Source§impl Authentication
impl Authentication
Trait Implementations§
Source§impl Clone for Authentication
impl Clone for Authentication
Auto Trait Implementations§
impl !RefUnwindSafe for Authentication
impl !UnwindSafe for Authentication
impl Freeze for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnsafeUnpin for Authentication
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