#[non_exhaustive]pub enum CredentialClass {
Password,
ApiKey,
NostrKey,
Oidc,
Other(String),
}Expand description
What kind of credential a link describes.
#[non_exhaustive] plus a lossless Other variant: a deployment can
store a credential class this crate has never heard of without the class
being silently coerced into a neighbouring one.
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.
Password
A username + password login (locator: the username).
ApiKey
An API key (locator: the key’s digest).
NostrKey
A nostr secp256k1 keypair (locator: the 64-hex x-only pubkey).
Oidc
A federated OIDC identity (locator: <issuer>|<sub>).
Other(String)
Anything else, kept verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for CredentialClass
impl Clone for CredentialClass
Source§impl Debug for CredentialClass
impl Debug for CredentialClass
Source§impl Display for CredentialClass
impl Display for CredentialClass
impl Eq for CredentialClass
Source§impl Hash for CredentialClass
impl Hash for CredentialClass
Source§impl Ord for CredentialClass
impl Ord for CredentialClass
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CredentialClass
impl PartialEq for CredentialClass
Source§impl PartialOrd for CredentialClass
impl PartialOrd for CredentialClass
impl StructuralPartialEq for CredentialClass
Auto Trait Implementations§
impl Forget for CredentialClass
impl Freeze for CredentialClass
impl RefUnwindSafe for CredentialClass
impl Send for CredentialClass
impl Sync for CredentialClass
impl Unpin for CredentialClass
impl UnsafeUnpin for CredentialClass
impl UnwindSafe for CredentialClass
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