pub struct NotificationGroup {
pub id: i32,
pub type: NotificationGroupType,
pub chat_id: i64,
pub total_count: i32,
pub notifications: Vec<Notification>,
}
Expand description
Describes a group of notifications
Fields§
§id: i32
Unique persistent auto-incremented from 1 identifier of the notification group
type: NotificationGroupType
Type of the group
chat_id: i64
Identifier of a chat to which all notifications in the group belong
total_count: i32
Total number of active notifications in the group
notifications: Vec<Notification>
The list of active notifications
Trait Implementations§
Source§impl Clone for NotificationGroup
impl Clone for NotificationGroup
Source§fn clone(&self) -> NotificationGroup
fn clone(&self) -> NotificationGroup
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 NotificationGroup
impl Debug for NotificationGroup
Source§impl<'de> Deserialize<'de> for NotificationGroup
impl<'de> Deserialize<'de> for NotificationGroup
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 NotificationGroup
impl PartialEq for NotificationGroup
Source§impl Serialize for NotificationGroup
impl Serialize for NotificationGroup
impl StructuralPartialEq for NotificationGroup
Auto Trait Implementations§
impl Freeze for NotificationGroup
impl RefUnwindSafe for NotificationGroup
impl Send for NotificationGroup
impl Sync for NotificationGroup
impl Unpin for NotificationGroup
impl UnwindSafe for NotificationGroup
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