Type Alias OwnedCrossSigningOrDeviceSigningKeyId Copy item path Source pub type OwnedCrossSigningOrDeviceSigningKeyId = OwnedSigningKeyId <Base64PublicKeyOrDeviceId >;Expand description pub struct OwnedCrossSigningOrDeviceSigningKeyId { }Extracts a string slice from this KeyId.
Extracts a byte slice from this KeyId.
Returns key algorithm of the key ID - the part that comes before the colon.
§ Example
use ruma_common::{DeviceKeyAlgorithm, DeviceKeyId};
let k = DeviceKeyId::parse("ed25519:1" ).unwrap();
assert_eq! (k.algorithm(), DeviceKeyAlgorithm::Ed25519);Returns the key name of the key ID - the part that comes after the colon.
§ Example
use ruma_common::DeviceKeyId;
let k = DeviceKeyId::parse("ed25519:DEV1" ).unwrap();
assert_eq! (k.key_name(), "DEV1" );