Struct rust_tdlib::types::NotificationGroup
source · 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