Struct ironoxide::user::UserDevice
source · pub struct UserDevice { /* private fields */ }
Expand description
Metadata for a device.
Result from `UserDeviceListResult.result().
Implementations§
source§impl UserDevice
impl UserDevice
sourcepub fn name(&self) -> Option<&DeviceName>
pub fn name(&self) -> Option<&DeviceName>
Name of the device
sourcepub fn created(&self) -> &OffsetDateTime
pub fn created(&self) -> &OffsetDateTime
Date and time when the device was created
sourcepub fn last_updated(&self) -> &OffsetDateTime
pub fn last_updated(&self) -> &OffsetDateTime
Date and time when the device was last updated
sourcepub fn is_current_device(&self) -> bool
pub fn is_current_device(&self) -> bool
Whether this is the device that was used to make the API request
Trait Implementations§
source§impl Clone for UserDevice
impl Clone for UserDevice
source§fn clone(&self) -> UserDevice
fn clone(&self) -> UserDevice
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 UserDevice
impl Debug for UserDevice
source§impl Hash for UserDevice
impl Hash for UserDevice
source§impl PartialEq for UserDevice
impl PartialEq for UserDevice
source§fn eq(&self, other: &UserDevice) -> bool
fn eq(&self, other: &UserDevice) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UserDevice
impl StructuralEq for UserDevice
impl StructuralPartialEq for UserDevice
Auto Trait Implementations§
impl RefUnwindSafe for UserDevice
impl Send for UserDevice
impl Sync for UserDevice
impl Unpin for UserDevice
impl UnwindSafe for UserDevice
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more