Enum rust_tdlib::types::NotificationGroupType
source · pub enum NotificationGroupType {
Calls(NotificationGroupTypeCalls),
Mentions(NotificationGroupTypeMentions),
Messages(NotificationGroupTypeMessages),
SecretChat(NotificationGroupTypeSecretChat),
// some variants omitted
}
Expand description
Describes the type of notifications in a notification group
Variants§
Calls(NotificationGroupTypeCalls)
A group containing notifications of type notificationTypeNewCall
Mentions(NotificationGroupTypeMentions)
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with unread mentions of the current user, replies to their messages, or a pinned message
Messages(NotificationGroupTypeMessages)
A group containing notifications of type notificationTypeNewMessage and notificationTypeNewPushMessage with ordinary unread messages
SecretChat(NotificationGroupTypeSecretChat)
A group containing a notification of type notificationTypeNewSecretChat
Implementations§
Trait Implementations§
source§impl AsRef<NotificationGroupType> for NotificationGroupType
impl AsRef<NotificationGroupType> for NotificationGroupType
source§fn as_ref(&self) -> &NotificationGroupType
fn as_ref(&self) -> &NotificationGroupType
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for NotificationGroupType
impl Clone for NotificationGroupType
source§fn clone(&self) -> NotificationGroupType
fn clone(&self) -> NotificationGroupType
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 NotificationGroupType
impl Debug for NotificationGroupType
source§impl Default for NotificationGroupType
impl Default for NotificationGroupType
source§fn default() -> NotificationGroupType
fn default() -> NotificationGroupType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NotificationGroupType
impl<'de> Deserialize<'de> for NotificationGroupType
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