pub struct ReadOnlyOwnUserIdentity { /* private fields */ }
Expand description
Struct representing a cross signing identity of our own user.
This is the user identity of our own user. This user identity will contain a master key, self signing key as well as a user signing key.
This identity can verify other identities as well as devices belonging to the identity.
Implementations§
source§impl ReadOnlyOwnUserIdentity
impl ReadOnlyOwnUserIdentity
sourcepub fn master_key(&self) -> &MasterPubkey
pub fn master_key(&self) -> &MasterPubkey
Get the public master key of the identity.
sourcepub fn self_signing_key(&self) -> &SelfSigningPubkey
pub fn self_signing_key(&self) -> &SelfSigningPubkey
Get the public self-signing key of the identity.
sourcepub fn user_signing_key(&self) -> &UserSigningPubkey
pub fn user_signing_key(&self) -> &UserSigningPubkey
Get the public user-signing key of the identity.
sourcepub fn mark_as_verified(&self)
pub fn mark_as_verified(&self)
Mark our identity as verified.
sourcepub fn is_verified(&self) -> bool
pub fn is_verified(&self) -> bool
Check if our identity is verified.
Trait Implementations§
source§impl Clone for ReadOnlyOwnUserIdentity
impl Clone for ReadOnlyOwnUserIdentity
source§fn clone(&self) -> ReadOnlyOwnUserIdentity
fn clone(&self) -> ReadOnlyOwnUserIdentity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ReadOnlyOwnUserIdentity
impl Debug for ReadOnlyOwnUserIdentity
source§impl<'de> Deserialize<'de> for ReadOnlyOwnUserIdentity
impl<'de> Deserialize<'de> for ReadOnlyOwnUserIdentity
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
source§fn from(identity: ReadOnlyOwnUserIdentity) -> Self
fn from(identity: ReadOnlyOwnUserIdentity) -> Self
source§impl PartialEq for ReadOnlyOwnUserIdentity
impl PartialEq for ReadOnlyOwnUserIdentity
source§fn eq(&self, other: &Self) -> bool
fn eq(&self, other: &Self) -> bool
The PartialEq
implementation compares several attributes, including
the user ID, key material, usage, and, notably, the signatures of
the master key.
This approach contrasts with the PartialEq
implementation of the
MasterPubkey
, SelfSigningPubkey
and UserSigningPubkey
types,
where the signatures are disregarded. This distinction arises from our
treatment of identity as the combined representation of cross-signing
keys and the associated verification state.
The verification state of an identity depends on the signatures of the
master key, requiring their inclusion in our PartialEq
implementation.
Auto Trait Implementations§
impl Freeze for ReadOnlyOwnUserIdentity
impl RefUnwindSafe for ReadOnlyOwnUserIdentity
impl Send for ReadOnlyOwnUserIdentity
impl Sync for ReadOnlyOwnUserIdentity
impl Unpin for ReadOnlyOwnUserIdentity
impl UnwindSafe for ReadOnlyOwnUserIdentity
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, 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