[][src]Enum ruma_client_api::r0::client_exchange::DeviceIdOrAllDevices

pub enum DeviceIdOrAllDevices {
    DeviceId(DeviceId),
    AllDevices,
}

Represents one or all of a user's devices.

Variants

DeviceId(DeviceId)

Represents a device Id for one of a user's devices.

AllDevices

Represents all devices for a user.

Trait Implementations

impl Clone for DeviceIdOrAllDevices[src]

impl Debug for DeviceIdOrAllDevices[src]

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

impl Display for DeviceIdOrAllDevices[src]

impl Eq for DeviceIdOrAllDevices[src]

impl Hash for DeviceIdOrAllDevices[src]

impl PartialEq<DeviceIdOrAllDevices> for DeviceIdOrAllDevices[src]

impl Serialize for DeviceIdOrAllDevices[src]

impl StructuralEq for DeviceIdOrAllDevices[src]

impl StructuralPartialEq for DeviceIdOrAllDevices[src]

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

type Error = &'static str

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: 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>,