Enum matrix_sdk_crypto::ReadOnlyUserIdentities [−][src]
pub enum ReadOnlyUserIdentities {
Own(ReadOnlyOwnUserIdentity),
Other(ReadOnlyUserIdentity),
}Expand description
Enum over the different user identity types we can have.
Variants
Our own user identity.
Tuple Fields of Own
Other(ReadOnlyUserIdentity)Identities of other users.
Tuple Fields of Other
Implementations
Get the master key of the identity.
Get the self-signing key of the identity.
Get the user-signing key of the identity, this is only present for our own user identity..
Destructure the enum into an ReadOnlyOwnUserIdentity if it’s of the
correct type.
Destructure the enum into an UserIdentity if it’s of the correct
type.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for ReadOnlyUserIdentities
impl Send for ReadOnlyUserIdentities
impl Sync for ReadOnlyUserIdentities
impl Unpin for ReadOnlyUserIdentities
impl UnwindSafe for ReadOnlyUserIdentities
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more