pub struct NotificationGroup { /* private fields */ }
Expand description
Describes a group of notifications
Implementations§
Source§impl NotificationGroup
impl NotificationGroup
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> NotificationGroupBuilder
pub fn id(&self) -> i32
pub fn type_(&self) -> &NotificationGroupType
pub fn chat_id(&self) -> i64
pub fn total_count(&self) -> i32
pub fn notifications(&self) -> &Vec<Notification>
Trait Implementations§
Source§impl AsRef<NotificationGroup> for NotificationGroup
impl AsRef<NotificationGroup> for NotificationGroup
Source§fn as_ref(&self) -> &NotificationGroup
fn as_ref(&self) -> &NotificationGroup
Converts this type into a shared reference of the (usually inferred) input type.
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 Default for NotificationGroup
impl Default for NotificationGroup
Source§fn default() -> NotificationGroup
fn default() -> NotificationGroup
Returns the “default value” for a type. Read more
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
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