Struct ruma_common::encryption::CrossSigningKey
source · pub struct CrossSigningKey {
pub user_id: OwnedUserId,
pub usage: Vec<KeyUsage>,
pub keys: BTreeMap<OwnedDeviceKeyId, String>,
pub signatures: CrossSigningKeySignatures,
}Expand description
A cross signing key.
Fields§
§user_id: OwnedUserIdThe ID of the user the key belongs to.
usage: Vec<KeyUsage>What the key is used for.
keys: BTreeMap<OwnedDeviceKeyId, String>The public key.
The object must have exactly one property.
signatures: CrossSigningKeySignaturesSignatures of the key.
Only optional for master key.
Implementations§
source§impl CrossSigningKey
impl CrossSigningKey
sourcepub fn new(
user_id: OwnedUserId,
usage: Vec<KeyUsage>,
keys: BTreeMap<OwnedDeviceKeyId, String>,
signatures: CrossSigningKeySignatures
) -> Self
pub fn new(
user_id: OwnedUserId,
usage: Vec<KeyUsage>,
keys: BTreeMap<OwnedDeviceKeyId, String>,
signatures: CrossSigningKeySignatures
) -> Self
Creates a new CrossSigningKey with the given user ID, usage, keys and signatures.
Trait Implementations§
source§impl Clone for CrossSigningKey
impl Clone for CrossSigningKey
source§fn clone(&self) -> CrossSigningKey
fn clone(&self) -> CrossSigningKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CrossSigningKey
impl Debug for CrossSigningKey
source§impl<'de> Deserialize<'de> for CrossSigningKey
impl<'de> Deserialize<'de> for CrossSigningKey
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>,
Deserialize this value from the given Serde deserializer. Read more