Enum rtdlib::types::NotificationType [−][src]
pub enum NotificationType {
NewCall(NotificationTypeNewCall),
NewMessage(NotificationTypeNewMessage),
NewPushMessage(NotificationTypeNewPushMessage),
NewSecretChat(NotificationTypeNewSecretChat),
// some variants omitted
}
Expand description
Contains detailed information about a notification
Variants
New call was received
Tuple Fields of NewCall
New message was received
Tuple Fields of NewMessage
New message was received through a push notification
Tuple Fields of NewPushMessage
New secret chat was created
Tuple Fields of NewSecretChat
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