[][src]Struct ruma_identifiers::DeviceKeyId

pub struct DeviceKeyId { /* fields omitted */ }

A key algorithm and a device id, combined with a ':'

Implementations

impl DeviceKeyId[src]

pub fn algorithm(&self) -> DeviceKeyAlgorithm[src]

Returns key algorithm of the device key ID.

pub fn device_id(&self) -> &DeviceId[src]

Returns device ID of the device key ID.

impl DeviceKeyId[src]

pub fn as_str(&self) -> &str[src]

Creates a string slice from this DeviceKeyId

pub fn as_bytes(&self) -> &[u8][src]

Creates a byte slice from this DeviceKeyId

Trait Implementations

impl AsRef<str> for DeviceKeyId[src]

impl Clone for DeviceKeyId[src]

impl Debug for DeviceKeyId[src]

impl<'de> Deserialize<'de> for DeviceKeyId[src]

impl Display for DeviceKeyId[src]

impl Eq for DeviceKeyId[src]

impl From<DeviceKeyId> for String[src]

impl Hash for DeviceKeyId[src]

impl Ord for DeviceKeyId[src]

impl<'_> PartialEq<&'_ str> for DeviceKeyId[src]

impl PartialEq<DeviceKeyId> for DeviceKeyId[src]

impl PartialEq<DeviceKeyId> for str[src]

impl<'_> PartialEq<DeviceKeyId> for &'_ str[src]

impl PartialEq<DeviceKeyId> for String[src]

impl PartialEq<String> for DeviceKeyId[src]

impl PartialEq<str> for DeviceKeyId[src]

impl PartialOrd<DeviceKeyId> for DeviceKeyId[src]

impl Serialize for DeviceKeyId[src]

impl<'_> TryFrom<&'_ str> for DeviceKeyId[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for DeviceKeyId[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,