[][src]Struct ruma::DeviceId

#[repr(transparent)]pub struct DeviceId(_);

A Matrix key ID.

Device identifiers in Matrix are completely opaque character sequences. This type is provided simply for its semantic value.

Implementations

impl DeviceId[src]

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

Creates a string slice from this DeviceId.

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

Creates a byte slice from this DeviceId.

Trait Implementations

impl AsRef<str> for DeviceId[src]

impl Debug for DeviceId[src]

impl Display for DeviceId[src]

impl Eq for DeviceId[src]

impl<'_> From<&'_ DeviceId> for Box<DeviceId, Global>[src]

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

impl Hash for DeviceId[src]

impl Ord for DeviceId[src]

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

impl PartialEq<DeviceId> for DeviceId[src]

impl PartialEq<String> for DeviceId[src]

impl PartialEq<str> for DeviceId[src]

impl PartialOrd<DeviceId> for DeviceId[src]

impl Serialize for DeviceId[src]

impl ToOwned for DeviceId[src]

type Owned = Box<DeviceId, Global>

The resulting type after obtaining ownership.

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> ToString for T where
    T: Display + ?Sized
[src]