#[non_exhaustive]pub enum IdentityKind {
Did(DidMethod),
JwkThumbprint,
}Expand description
The kind of identifier the other side accepts.
§Examples
use identity_kit::did::DidMethod;
use identity_kit::identity::IdentityKind;
let kind = IdentityKind::Did(DidMethod::new("key")?);
assert_eq!(kind.to_string(), "did:key");
assert_eq!(IdentityKind::JwkThumbprint.to_string(), "JWK thumbprint");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.
Did(DidMethod)
A DID of this method, and of its namespace when the DidMethod has one.
JwkThumbprint
The RFC 7638 SHA-256 thumbprint of the public key, as SIOPv2 self-issued ID tokens and
key binding with cnf.jwk use it.
Trait Implementations§
Source§impl Clone for IdentityKind
impl Clone for IdentityKind
Source§impl Debug for IdentityKind
impl Debug for IdentityKind
Source§impl Display for IdentityKind
impl Display for IdentityKind
impl Eq for IdentityKind
Source§impl Hash for IdentityKind
impl Hash for IdentityKind
Source§impl PartialEq for IdentityKind
impl PartialEq for IdentityKind
impl StructuralPartialEq for IdentityKind
Auto Trait Implementations§
impl Freeze for IdentityKind
impl RefUnwindSafe for IdentityKind
impl Send for IdentityKind
impl Sync for IdentityKind
impl Unpin for IdentityKind
impl UnsafeUnpin for IdentityKind
impl UnwindSafe for IdentityKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.