pub enum IdentityState {
Verified,
Pinned,
PinViolation,
VerificationViolation,
}
Expand description
The state of an identity - verified, pinned etc.
Variants§
Verified
The user is verified with us
Pinned
Either this is the first identity we have seen for this user, or the user has acknowledged a change of identity explicitly e.g. by clicking OK on a notification.
PinViolation
The user’s identity has changed since it was pinned. The user should be
notified about this and given the opportunity to acknowledge the
change, which will make the new identity pinned.
When the user acknowledges the change, the app should call
crate::OtherUserIdentity::pin_current_master_key
.
VerificationViolation
The user’s identity has changed, and before that it was verified. This
is a serious problem. The user can either verify again to make this
identity verified, or withdraw verification
UserIdentity::withdraw_verification
to make it pinned.
Trait Implementations§
Source§impl Clone for IdentityState
impl Clone for IdentityState
Source§fn clone(&self) -> IdentityState
fn clone(&self) -> IdentityState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for IdentityState
impl Debug for IdentityState
Source§impl Ord for IdentityState
impl Ord for IdentityState
Source§fn cmp(&self, other: &IdentityState) -> Ordering
fn cmp(&self, other: &IdentityState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for IdentityState
impl PartialEq for IdentityState
Source§impl PartialOrd for IdentityState
impl PartialOrd for IdentityState
impl Eq for IdentityState
impl StructuralPartialEq for IdentityState
Auto Trait Implementations§
impl Freeze for IdentityState
impl RefUnwindSafe for IdentityState
impl Send for IdentityState
impl Sync for IdentityState
impl Unpin for IdentityState
impl UnwindSafe for IdentityState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key
and return true
if they are equal.Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more