Struct notifications2::NotificationEntry
source · pub struct NotificationEntry {
pub id: u64,
pub notification: Notification,
pub timestamp: OffsetDateTime,
pub is_read: bool,
pub response: Option<bool>,
}
Fields§
§id: u64
§notification: Notification
§timestamp: OffsetDateTime
§is_read: bool
§response: Option<bool>
Trait Implementations§
source§impl Clone for NotificationEntry
impl Clone for NotificationEntry
source§fn clone(&self) -> NotificationEntry
fn clone(&self) -> NotificationEntry
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 NotificationEntry
impl Debug for NotificationEntry
source§impl Item for NotificationEntry
impl Item for NotificationEntry
source§impl PartialEq<NotificationEntry> for NotificationEntry
impl PartialEq<NotificationEntry> for NotificationEntry
source§fn eq(&self, other: &NotificationEntry) -> bool
fn eq(&self, other: &NotificationEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for NotificationEntry
impl StructuralEq for NotificationEntry
impl StructuralPartialEq for NotificationEntry
Auto Trait Implementations§
impl RefUnwindSafe for NotificationEntry
impl Send for NotificationEntry
impl Sync for NotificationEntry
impl Unpin for NotificationEntry
impl UnwindSafe for NotificationEntry
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
§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
§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
Compare self to
key
and return true
if they are equal.