pub struct RegisteredDevice {
pub owner_id: Uuid,
pub token: DeviceToken,
pub platform: DevicePlatform,
pub time_zone: Option<DeviceTimeZone>,
pub created_at: DateTime<Utc>,
pub last_registered_at: DateTime<Utc>,
}Expand description
A device as the registry stores it.
Fields§
§owner_id: UuidThe account the device receives notifications for.
token: DeviceTokenThe device’s provider token.
platform: DevicePlatformThe platform the token belongs to.
time_zone: Option<DeviceTimeZone>The time zone from the latest registration.
created_at: DateTime<Utc>When this owner first registered the token.
last_registered_at: DateTime<Utc>The latest registration instant; eviction and invalidation compare it.
Trait Implementations§
Source§impl Clone for RegisteredDevice
impl Clone for RegisteredDevice
Source§impl Debug for RegisteredDevice
impl Debug for RegisteredDevice
impl Eq for RegisteredDevice
Source§impl PartialEq for RegisteredDevice
impl PartialEq for RegisteredDevice
impl StructuralPartialEq for RegisteredDevice
Auto Trait Implementations§
impl Freeze for RegisteredDevice
impl RefUnwindSafe for RegisteredDevice
impl Send for RegisteredDevice
impl Sync for RegisteredDevice
impl Unpin for RegisteredDevice
impl UnsafeUnpin for RegisteredDevice
impl UnwindSafe for RegisteredDevice
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> 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§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.