Struct rust_tdlib::types::ScopeNotificationSettings
source · [−]pub struct ScopeNotificationSettings { /* private fields */ }
Expand description
Contains information about notification settings for several chats
Implementations
sourceimpl ScopeNotificationSettings
impl ScopeNotificationSettings
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ScopeNotificationSettingsBuilder
pub fn mute_for(&self) -> i32
pub fn sound(&self) -> &String
pub fn show_preview(&self) -> bool
pub fn disable_pinned_message_notifications(&self) -> bool
pub fn disable_mention_notifications(&self) -> bool
Trait Implementations
sourceimpl AsRef<ScopeNotificationSettings> for ScopeNotificationSettings
impl AsRef<ScopeNotificationSettings> for ScopeNotificationSettings
sourcefn as_ref(&self) -> &ScopeNotificationSettings
fn as_ref(&self) -> &ScopeNotificationSettings
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for ScopeNotificationSettings
impl Clone for ScopeNotificationSettings
sourcefn clone(&self) -> ScopeNotificationSettings
fn clone(&self) -> ScopeNotificationSettings
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 ScopeNotificationSettings
impl Debug for ScopeNotificationSettings
sourceimpl Default for ScopeNotificationSettings
impl Default for ScopeNotificationSettings
sourcefn default() -> ScopeNotificationSettings
fn default() -> ScopeNotificationSettings
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ScopeNotificationSettings
impl<'de> Deserialize<'de> for ScopeNotificationSettings
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 ScopeNotificationSettings
impl Serialize for ScopeNotificationSettings
Auto Trait Implementations
impl RefUnwindSafe for ScopeNotificationSettings
impl Send for ScopeNotificationSettings
impl Sync for ScopeNotificationSettings
impl Unpin for ScopeNotificationSettings
impl UnwindSafe for ScopeNotificationSettings
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