Struct matrix_sdk::identities::MasterPubkey [−]
pub struct MasterPubkey(_);
encryption
only.Expand description
Wrapper for a cross signing key marking it as the master key.
Master keys are used to sign other cross signing keys, the self signing and user signing keys of an user will be signed by their master key.
Implementations
impl MasterPubkey
impl MasterPubkey
pub fn user_id(&self) -> &UserId
pub fn user_id(&self) -> &UserId
Get the user id of the master key’s owner.
pub fn signatures(&self) -> &BTreeMap<UserId, BTreeMap<String, String>>
pub fn signatures(&self) -> &BTreeMap<UserId, BTreeMap<String, String>>
Get the signatures map of this cross signing key.
Get the master key with the given key id.
Arguments
key_id
- The id of the key that should be fetched.
pub fn get_first_key(&self) -> Option<&str>
pub fn get_first_key(&self) -> Option<&str>
Get the first available master key.
There’s usually only a single master key so this will usually fetch the only key.
Trait Implementations
impl AsRef<CrossSigningKey> for MasterPubkey
impl AsRef<CrossSigningKey> for MasterPubkey
pub fn as_ref(&self) -> &CrossSigningKey
pub fn as_ref(&self) -> &CrossSigningKey
Performs the conversion.
impl Clone for MasterPubkey
impl Clone for MasterPubkey
pub fn clone(&self) -> MasterPubkey
pub fn clone(&self) -> MasterPubkey
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for MasterPubkey
impl Debug for MasterPubkey
impl<'de> Deserialize<'de> for MasterPubkey
impl<'de> Deserialize<'de> for MasterPubkey
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MasterPubkey, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MasterPubkey, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'_> From<&'_ CrossSigningKey> for MasterPubkey
impl<'_> From<&'_ CrossSigningKey> for MasterPubkey
pub fn from(key: &CrossSigningKey) -> MasterPubkey
pub fn from(key: &CrossSigningKey) -> MasterPubkey
Performs the conversion.
impl From<CrossSigningKey> for MasterPubkey
impl From<CrossSigningKey> for MasterPubkey
pub fn from(key: CrossSigningKey) -> MasterPubkey
pub fn from(key: CrossSigningKey) -> MasterPubkey
Performs the conversion.
impl Into<CrossSigningKey> for MasterPubkey
impl Into<CrossSigningKey> for MasterPubkey
pub fn into(self) -> CrossSigningKey
pub fn into(self) -> CrossSigningKey
Performs the conversion.
impl<'a> IntoIterator for &'a MasterPubkey
impl<'a> IntoIterator for &'a MasterPubkey
impl PartialEq<MasterPubkey> for MasterPubkey
impl PartialEq<MasterPubkey> for MasterPubkey
impl Serialize for MasterPubkey
impl Serialize for MasterPubkey
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MasterPubkey
impl Send for MasterPubkey
impl Sync for MasterPubkey
impl Unpin for MasterPubkey
impl UnwindSafe for MasterPubkey
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more