pub enum DeviceIdOrAllDevices {
DeviceId(OwnedDeviceId),
AllDevices,
}
Expand description
Represents one or all of a user’s devices.
Variants§
DeviceId(OwnedDeviceId)
Represents a device Id for one of a user’s devices.
AllDevices
Represents all devices for a user.
Trait Implementations§
Source§impl Clone for DeviceIdOrAllDevices
impl Clone for DeviceIdOrAllDevices
Source§fn clone(&self) -> DeviceIdOrAllDevices
fn clone(&self) -> DeviceIdOrAllDevices
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DeviceIdOrAllDevices
impl Debug for DeviceIdOrAllDevices
Source§impl<'de> Deserialize<'de> for DeviceIdOrAllDevices
impl<'de> Deserialize<'de> for DeviceIdOrAllDevices
Source§fn deserialize<D>(
deserializer: D,
) -> Result<DeviceIdOrAllDevices, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<DeviceIdOrAllDevices, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DeviceIdOrAllDevices
impl Display for DeviceIdOrAllDevices
Source§impl From<OwnedDeviceId> for DeviceIdOrAllDevices
impl From<OwnedDeviceId> for DeviceIdOrAllDevices
Source§fn from(d: OwnedDeviceId) -> DeviceIdOrAllDevices
fn from(d: OwnedDeviceId) -> DeviceIdOrAllDevices
Converts to this type from the input type.
Source§impl Ord for DeviceIdOrAllDevices
impl Ord for DeviceIdOrAllDevices
Source§fn cmp(&self, other: &DeviceIdOrAllDevices) -> Ordering
fn cmp(&self, other: &DeviceIdOrAllDevices) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DeviceIdOrAllDevices
impl PartialEq for DeviceIdOrAllDevices
Source§impl PartialOrd for DeviceIdOrAllDevices
impl PartialOrd for DeviceIdOrAllDevices
Source§impl Serialize for DeviceIdOrAllDevices
impl Serialize for DeviceIdOrAllDevices
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryFrom<&str> for DeviceIdOrAllDevices
impl TryFrom<&str> for DeviceIdOrAllDevices
impl Eq for DeviceIdOrAllDevices
impl StructuralPartialEq for DeviceIdOrAllDevices
Auto Trait Implementations§
impl Freeze for DeviceIdOrAllDevices
impl RefUnwindSafe for DeviceIdOrAllDevices
impl Send for DeviceIdOrAllDevices
impl Sync for DeviceIdOrAllDevices
impl Unpin for DeviceIdOrAllDevices
impl UnwindSafe for DeviceIdOrAllDevices
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.