Struct matrix_sdk_crypto::ReadOnlyUserIdentity
source · [−]pub struct ReadOnlyUserIdentity { /* private fields */ }
Expand description
Struct representing a cross signing identity of a user.
This is the user identity of a user that isn’t our own. Other users will only contain a master key and a self signing key, meaning that only device signatures can be checked with this identity.
Implementations
sourceimpl ReadOnlyUserIdentity
impl ReadOnlyUserIdentity
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.
Trait Implementations
sourceimpl Clone for ReadOnlyUserIdentity
impl Clone for ReadOnlyUserIdentity
sourcefn clone(&self) -> ReadOnlyUserIdentity
fn clone(&self) -> ReadOnlyUserIdentity
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 ReadOnlyUserIdentity
impl Debug for ReadOnlyUserIdentity
sourceimpl<'de> Deserialize<'de> for ReadOnlyUserIdentity
impl<'de> Deserialize<'de> for ReadOnlyUserIdentity
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<ReadOnlyUserIdentity> for ReadOnlyUserIdentities
impl From<ReadOnlyUserIdentity> for ReadOnlyUserIdentities
sourcefn from(identity: ReadOnlyUserIdentity) -> Self
fn from(identity: ReadOnlyUserIdentity) -> Self
Converts to this type from the input type.
sourceimpl Serialize for ReadOnlyUserIdentity
impl Serialize for ReadOnlyUserIdentity
Auto Trait Implementations
impl RefUnwindSafe for ReadOnlyUserIdentity
impl Send for ReadOnlyUserIdentity
impl Sync for ReadOnlyUserIdentity
impl Unpin for ReadOnlyUserIdentity
impl UnwindSafe for ReadOnlyUserIdentity
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