pub struct Identity {
pub platform: ExternalIdentity,
pub ident: String,
pub proof: String,
}
Expand description
A NIP-39 external identity
Fields§
§platform: ExternalIdentity
The external identity provider
ident: String
The user’s identity (username) on the provider
proof: String
The user’s proof on the provider
Implementations§
Trait Implementations§
source§impl Ord for Identity
impl Ord for Identity
source§impl PartialEq<Identity> for Identity
impl PartialEq<Identity> for Identity
source§impl PartialOrd<Identity> for Identity
impl PartialOrd<Identity> for Identity
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Identity
impl StructuralEq for Identity
impl StructuralPartialEq for Identity
Auto Trait Implementations§
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnwindSafe for Identity
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.