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
sourceimpl 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
sourceimpl Clone for ReadOnlyOwnUserIdentity
impl Clone for ReadOnlyOwnUserIdentity
sourcefn clone(&self) -> ReadOnlyOwnUserIdentity
fn clone(&self) -> ReadOnlyOwnUserIdentity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReadOnlyOwnUserIdentity
impl Debug for ReadOnlyOwnUserIdentity
sourceimpl<'de> Deserialize<'de> for ReadOnlyOwnUserIdentity
impl<'de> Deserialize<'de> for ReadOnlyOwnUserIdentity
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyOwnUserIdentity> for ReadOnlyUserIdentities
sourcefn from(identity: ReadOnlyOwnUserIdentity) -> Self
fn from(identity: ReadOnlyOwnUserIdentity) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ReadOnlyOwnUserIdentity
impl Serialize for ReadOnlyOwnUserIdentity
Auto Trait Implementations
impl RefUnwindSafe for ReadOnlyOwnUserIdentity
impl Send for ReadOnlyOwnUserIdentity
impl Sync for ReadOnlyOwnUserIdentity
impl Unpin for ReadOnlyOwnUserIdentity
impl UnwindSafe for ReadOnlyOwnUserIdentity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more