[−][src]Enum rtdlib::types::NotificationType
Contains detailed information about a notification
Variants
NewCall(NotificationTypeNewCall)
New call was received
NewMessage(NotificationTypeNewMessage)
New message was received
NewPushMessage(NotificationTypeNewPushMessage)
New message was received through a push notification
NewSecretChat(NotificationTypeNewSecretChat)
New secret chat was created
Implementations
impl NotificationType
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_new_call(&self) -> bool
[src]
pub fn is_new_message(&self) -> bool
[src]
pub fn is_new_push_message(&self) -> bool
[src]
pub fn is_new_secret_chat(&self) -> bool
[src]
pub fn on_new_call<F: FnOnce(&NotificationTypeNewCall)>(&self, fnc: F) -> &Self
[src]
pub fn on_new_message<F: FnOnce(&NotificationTypeNewMessage)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_push_message<F: FnOnce(&NotificationTypeNewPushMessage)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_new_secret_chat<F: FnOnce(&NotificationTypeNewSecretChat)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_new_call(&self) -> Option<&NotificationTypeNewCall>
[src]
pub fn as_new_message(&self) -> Option<&NotificationTypeNewMessage>
[src]
pub fn as_new_push_message(&self) -> Option<&NotificationTypeNewPushMessage>
[src]
pub fn as_new_secret_chat(&self) -> Option<&NotificationTypeNewSecretChat>
[src]
pub fn new_call<T: AsRef<NotificationTypeNewCall>>(t: T) -> Self
[src]
pub fn new_message<T: AsRef<NotificationTypeNewMessage>>(t: T) -> Self
[src]
pub fn new_push_message<T: AsRef<NotificationTypeNewPushMessage>>(t: T) -> Self
[src]
pub fn new_secret_chat<T: AsRef<NotificationTypeNewSecretChat>>(t: T) -> Self
[src]
Trait Implementations
impl AsRef<NotificationType> for NotificationType
[src]
fn as_ref(&self) -> &NotificationType
[src]
impl Clone for NotificationType
[src]
fn clone(&self) -> NotificationType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NotificationType
[src]
impl Default for NotificationType
[src]
impl<'de> Deserialize<'de> for NotificationType
[src]
fn deserialize<D>(deserializer: D) -> Result<NotificationType, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for NotificationType
[src]
impl Serialize for NotificationType
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,