pub struct NotificationAndCount {
pub type: NotificationType,
pub count: i64,
}Fields§
§type: NotificationType§count: i64Implementations§
Source§impl NotificationAndCount
impl NotificationAndCount
pub fn new(type: NotificationType, count: i64) -> NotificationAndCount
Trait Implementations§
Source§impl Clone for NotificationAndCount
impl Clone for NotificationAndCount
Source§fn clone(&self) -> NotificationAndCount
fn clone(&self) -> NotificationAndCount
Returns a duplicate 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 NotificationAndCount
impl Debug for NotificationAndCount
Source§impl Default for NotificationAndCount
impl Default for NotificationAndCount
Source§fn default() -> NotificationAndCount
fn default() -> NotificationAndCount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NotificationAndCount
impl<'de> Deserialize<'de> for NotificationAndCount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NotificationAndCount
impl PartialEq for NotificationAndCount
Source§impl Serialize for NotificationAndCount
impl Serialize for NotificationAndCount
impl StructuralPartialEq for NotificationAndCount
Auto Trait Implementations§
impl Freeze for NotificationAndCount
impl RefUnwindSafe for NotificationAndCount
impl Send for NotificationAndCount
impl Sync for NotificationAndCount
impl Unpin for NotificationAndCount
impl UnwindSafe for NotificationAndCount
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