Enum rtdlib::types::NotificationType
source[−]pub enum NotificationType {
NewCall(NotificationTypeNewCall),
NewMessage(NotificationTypeNewMessage),
NewPushMessage(NotificationTypeNewPushMessage),
NewSecretChat(NotificationTypeNewSecretChat),
// some variants omitted
}
Expand description
Contains detailed information about a notification
Variants
NewCall(NotificationTypeNewCall)
Tuple Fields
New call was received
NewMessage(NotificationTypeNewMessage)
Tuple Fields
New message was received
NewPushMessage(NotificationTypeNewPushMessage)
Tuple Fields
New message was received through a push notification
NewSecretChat(NotificationTypeNewSecretChat)
Tuple Fields
New secret chat was created
Implementations
pub fn on_new_push_message<F: FnOnce(&NotificationTypeNewPushMessage)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<NotificationType, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<NotificationType, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for NotificationType
impl Send for NotificationType
impl Sync for NotificationType
impl Unpin for NotificationType
impl UnwindSafe for NotificationType
Blanket Implementations
Mutably borrows from an owned value. Read more