Struct rust_tdlib::types::ChatNotificationSettings
source · [−]pub struct ChatNotificationSettings { /* private fields */ }
Expand description
Contains information about notification settings for a chat
Implementations
sourceimpl ChatNotificationSettings
impl ChatNotificationSettings
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatNotificationSettingsBuilder
pub fn use_default_mute_for(&self) -> bool
pub fn mute_for(&self) -> i32
pub fn use_default_sound(&self) -> bool
pub fn sound(&self) -> &String
pub fn use_default_show_preview(&self) -> bool
pub fn show_preview(&self) -> bool
pub fn use_default_disable_pinned_message_notifications(&self) -> bool
pub fn disable_pinned_message_notifications(&self) -> bool
pub fn use_default_disable_mention_notifications(&self) -> bool
pub fn disable_mention_notifications(&self) -> bool
Trait Implementations
sourceimpl AsRef<ChatNotificationSettings> for ChatNotificationSettings
impl AsRef<ChatNotificationSettings> for ChatNotificationSettings
sourcefn as_ref(&self) -> &ChatNotificationSettings
fn as_ref(&self) -> &ChatNotificationSettings
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ChatNotificationSettings
impl Clone for ChatNotificationSettings
sourcefn clone(&self) -> ChatNotificationSettings
fn clone(&self) -> ChatNotificationSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatNotificationSettings
impl Debug for ChatNotificationSettings
sourceimpl Default for ChatNotificationSettings
impl Default for ChatNotificationSettings
sourcefn default() -> ChatNotificationSettings
fn default() -> ChatNotificationSettings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChatNotificationSettings
impl<'de> Deserialize<'de> for ChatNotificationSettings
sourcefn 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
sourceimpl Serialize for ChatNotificationSettings
impl Serialize for ChatNotificationSettings
Auto Trait Implementations
impl RefUnwindSafe for ChatNotificationSettings
impl Send for ChatNotificationSettings
impl Sync for ChatNotificationSettings
impl Unpin for ChatNotificationSettings
impl UnwindSafe for ChatNotificationSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more