pub struct ChatNotificationSettings {
pub use_default_mute_for: bool,
pub mute_for: i32,
pub use_default_sound: bool,
pub sound: String,
pub use_default_show_preview: bool,
pub show_preview: bool,
}
Expand description
Contains information about notification settings for a chat
Fields§
§use_default_mute_for: bool
If true, mute_for is ignored and the value for the relevant type of chat is used instead
mute_for: i32
Time left before notifications will be unmuted, in seconds
use_default_sound: bool
If true, sound is ignored and the value for the relevant type of chat is used instead
sound: String
The name of an audio file to be used for notification sounds; only applies to iOS applications
use_default_show_preview: bool
If true, show_preview is ignored and the value for the relevant type of chat is used instead
show_preview: bool
True, if message content should be displayed in notifications
Trait Implementations§
Source§impl Clone for ChatNotificationSettings
impl Clone for ChatNotificationSettings
Source§fn clone(&self) -> ChatNotificationSettings
fn clone(&self) -> ChatNotificationSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ChatNotificationSettings
impl Debug for ChatNotificationSettings
Source§impl<'de> Deserialize<'de> for ChatNotificationSettings
impl<'de> Deserialize<'de> for ChatNotificationSettings
Source§fn 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
Auto Trait Implementations§
impl Freeze for ChatNotificationSettings
impl RefUnwindSafe for ChatNotificationSettings
impl Send for ChatNotificationSettings
impl Sync for ChatNotificationSettings
impl Unpin for ChatNotificationSettings
impl UnwindSafe for ChatNotificationSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more