pub enum CredentialKind {
Password,
ApiKey,
AccessToken,
RefreshToken,
IdToken,
ClientSecret,
Certificate,
PrivateKey,
Passkey,
}Expand description
Credential kind labels.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CredentialKind
impl Clone for CredentialKind
Source§fn clone(&self) -> CredentialKind
fn clone(&self) -> CredentialKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialKind
impl Debug for CredentialKind
Source§impl Display for CredentialKind
impl Display for CredentialKind
Source§impl FromStr for CredentialKind
impl FromStr for CredentialKind
Source§type Err = AuthnParseError
type Err = AuthnParseError
The associated error which can be returned from parsing.
Source§fn from_str(
input: &str,
) -> Result<CredentialKind, <CredentialKind as FromStr>::Err>
fn from_str( input: &str, ) -> Result<CredentialKind, <CredentialKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for CredentialKind
impl Hash for CredentialKind
Source§impl Ord for CredentialKind
impl Ord for CredentialKind
Source§fn cmp(&self, other: &CredentialKind) -> Ordering
fn cmp(&self, other: &CredentialKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CredentialKind
impl PartialEq for CredentialKind
Source§fn eq(&self, other: &CredentialKind) -> bool
fn eq(&self, other: &CredentialKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CredentialKind
impl PartialOrd for CredentialKind
impl Copy for CredentialKind
impl Eq 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