Enum nostr_sdk::ExternalIdentity
source · pub enum ExternalIdentity {
GitHub,
Twitter,
Mastodon,
Telegram,
}
Expand description
Supported external identity providers
Variants§
Trait Implementations§
source§impl Clone for ExternalIdentity
impl Clone for ExternalIdentity
source§fn clone(&self) -> ExternalIdentity
fn clone(&self) -> ExternalIdentity
Returns a copy of the value. Read more
1.0.0 · 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 ExternalIdentity
impl Debug for ExternalIdentity
source§impl Display for ExternalIdentity
impl Display for ExternalIdentity
source§impl Hash for ExternalIdentity
impl Hash for ExternalIdentity
source§impl Ord for ExternalIdentity
impl Ord for ExternalIdentity
source§fn cmp(&self, other: &ExternalIdentity) -> Ordering
fn cmp(&self, other: &ExternalIdentity) -> Ordering
1.21.0 · 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<ExternalIdentity> for ExternalIdentity
impl PartialEq<ExternalIdentity> for ExternalIdentity
source§fn eq(&self, other: &ExternalIdentity) -> bool
fn eq(&self, other: &ExternalIdentity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExternalIdentity> for ExternalIdentity
impl PartialOrd<ExternalIdentity> for ExternalIdentity
source§fn partial_cmp(&self, other: &ExternalIdentity) -> Option<Ordering>
fn partial_cmp(&self, other: &ExternalIdentity) -> Option<Ordering>
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 moresource§impl TryFrom<String> for ExternalIdentity
impl TryFrom<String> for ExternalIdentity
impl Eq for ExternalIdentity
impl StructuralEq for ExternalIdentity
impl StructuralPartialEq for ExternalIdentity
Auto Trait Implementations§
impl RefUnwindSafe for ExternalIdentity
impl Send for ExternalIdentity
impl Sync for ExternalIdentity
impl Unpin for ExternalIdentity
impl UnwindSafe for ExternalIdentity
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.