[][src]Struct ruma_identifiers::device_key_id::DeviceKeyId

pub struct DeviceKeyId<T> { /* fields omitted */ }

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

Implementations

impl<T> DeviceKeyId<T> where
    T: AsRef<str>, 
[src]

pub fn as_ref(&self) -> DeviceKeyId<&str>[src]

Creates a reference to this DeviceKeyId.

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

Returns key algorithm of the device key ID.

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

Returns device ID of the device key ID.

impl<T: AsRef<str>> DeviceKeyId<T>[src]

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

Creates a string slice from this DeviceKeyId

Trait Implementations

impl<T: AsRef<str>> AsRef<str> for DeviceKeyId<T>[src]

impl<T: Clone> Clone for DeviceKeyId<T>[src]

impl<T: Debug> Debug for DeviceKeyId<T>[src]

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

impl<T: Display> Display for DeviceKeyId<T>[src]

impl<T: Eq> Eq for DeviceKeyId<T>[src]

impl<'a> From<&'a DeviceKeyId<Box<str>>> for DeviceKeyId<&'a str>[src]

impl From<DeviceKeyId<Box<str>>> for String[src]

impl<T: Hash> Hash for DeviceKeyId<T>[src]

impl<T: Ord> Ord for DeviceKeyId<T>[src]

impl<'_, T: AsRef<str>> PartialEq<&'_ str> for DeviceKeyId<T>[src]

impl<T: PartialEq> PartialEq<DeviceKeyId<T>> for DeviceKeyId<T>[src]

impl<'_, T: AsRef<str>> PartialEq<DeviceKeyId<T>> for &'_ str[src]

impl<T: AsRef<str>> PartialEq<DeviceKeyId<T>> for String[src]

impl<T: AsRef<str>> PartialEq<String> for DeviceKeyId<T>[src]

impl<T: PartialOrd> PartialOrd<DeviceKeyId<T>> for DeviceKeyId<T>[src]

impl<T: AsRef<str>> Serialize for DeviceKeyId<T>[src]

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

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<String> for DeviceKeyId<Box<str>>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for DeviceKeyId<T> where
    T: RefUnwindSafe

impl<T> Send for DeviceKeyId<T> where
    T: Send

impl<T> Sync for DeviceKeyId<T> where
    T: Sync

impl<T> Unpin for DeviceKeyId<T> where
    T: Unpin

impl<T> UnwindSafe for DeviceKeyId<T> where
    T: UnwindSafe

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.