[−][src]Enum rtdlib::types::NotificationSettingsScope
Describes the types of chats to which notification settings are applied
Variants
ChannelChats(NotificationSettingsScopeChannelChats)
Notification settings applied to all channels when the corresponding chat setting has a default value
GroupChats(NotificationSettingsScopeGroupChats)
Notification settings applied to all basic groups and supergroups when the corresponding chat setting has a default value
PrivateChats(NotificationSettingsScopePrivateChats)
Notification settings applied to all private and secret chats when the corresponding chat setting has a default value
Implementations
impl NotificationSettingsScope
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_channel_chats(&self) -> bool
[src]
pub fn is_group_chats(&self) -> bool
[src]
pub fn is_private_chats(&self) -> bool
[src]
pub fn on_channel_chats<F: FnOnce(&NotificationSettingsScopeChannelChats)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_group_chats<F: FnOnce(&NotificationSettingsScopeGroupChats)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn on_private_chats<F: FnOnce(&NotificationSettingsScopePrivateChats)>(
&self,
fnc: F
) -> &Self
[src]
&self,
fnc: F
) -> &Self
pub fn as_channel_chats(&self) -> Option<&NotificationSettingsScopeChannelChats>
[src]
pub fn as_group_chats(&self) -> Option<&NotificationSettingsScopeGroupChats>
[src]
pub fn as_private_chats(&self) -> Option<&NotificationSettingsScopePrivateChats>
[src]
pub fn channel_chats<T: AsRef<NotificationSettingsScopeChannelChats>>(
t: T
) -> Self
[src]
t: T
) -> Self
pub fn group_chats<T: AsRef<NotificationSettingsScopeGroupChats>>(t: T) -> Self
[src]
pub fn private_chats<T: AsRef<NotificationSettingsScopePrivateChats>>(
t: T
) -> Self
[src]
t: T
) -> Self
Trait Implementations
impl AsRef<NotificationSettingsScope> for NotificationSettingsScope
[src]
fn as_ref(&self) -> &NotificationSettingsScope
[src]
impl Clone for NotificationSettingsScope
[src]
fn clone(&self) -> NotificationSettingsScope
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for NotificationSettingsScope
[src]
impl Default for NotificationSettingsScope
[src]
impl<'de> Deserialize<'de> for NotificationSettingsScope
[src]
fn deserialize<D>(
deserializer: D
) -> Result<NotificationSettingsScope, D::Error> where
D: Deserializer<'de>,
[src]
deserializer: D
) -> Result<NotificationSettingsScope, D::Error> where
D: Deserializer<'de>,
impl RObject for NotificationSettingsScope
[src]
impl Serialize for NotificationSettingsScope
[src]
Auto Trait Implementations
impl RefUnwindSafe for NotificationSettingsScope
impl Send for NotificationSettingsScope
impl Sync for NotificationSettingsScope
impl Unpin for NotificationSettingsScope
impl UnwindSafe for NotificationSettingsScope
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>,