#[non_exhaustive]pub enum CredentialKind {
ApiKey,
Header(String),
}Expand description
The kind of a Credential.
More kinds may follow (a bearer token, request signing keys). An adapter
that places credentials itself refuses a kind it does not know with
Credential::unsupported.
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.
ApiKey
The provider’s own API key (Credential::api_key).
Header(String)
An authentication header with this name (Credential::header).
Trait Implementations§
Source§impl Clone for CredentialKind
impl Clone for CredentialKind
Source§impl Debug for CredentialKind
impl Debug for CredentialKind
impl Eq for CredentialKind
Source§impl PartialEq for CredentialKind
impl PartialEq for CredentialKind
impl StructuralPartialEq for CredentialKind
Auto Trait Implementations§
impl Freeze for CredentialKind
impl RefUnwindSafe for CredentialKind
impl Send for CredentialKind
impl Sync for CredentialKind
impl Unpin for CredentialKind
impl UnsafeUnpin for CredentialKind
impl UnwindSafe for CredentialKind
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