pub struct ReactionNotificationSettings {
pub message_reaction_source: ReactionNotificationSource,
pub story_reaction_source: ReactionNotificationSource,
pub sound_id: i64,
pub show_preview: bool,
}
Expand description
Contains information about notification settings for reactions
Fields§
§message_reaction_source: ReactionNotificationSource
Source of message reactions for which notifications are shown
story_reaction_source: ReactionNotificationSource
Source of story reactions for which notifications are shown
sound_id: i64
Identifier of the notification sound to be played; 0 if sound is disabled
show_preview: bool
True, if reaction sender and emoji must be displayed in notifications
Trait Implementations§
Source§impl Clone for ReactionNotificationSettings
impl Clone for ReactionNotificationSettings
Source§fn clone(&self) -> ReactionNotificationSettings
fn clone(&self) -> ReactionNotificationSettings
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 ReactionNotificationSettings
impl Debug for ReactionNotificationSettings
Source§impl<'de> Deserialize<'de> for ReactionNotificationSettings
impl<'de> Deserialize<'de> for ReactionNotificationSettings
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
Source§impl PartialEq for ReactionNotificationSettings
impl PartialEq for ReactionNotificationSettings
Source§fn eq(&self, other: &ReactionNotificationSettings) -> bool
fn eq(&self, other: &ReactionNotificationSettings) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ReactionNotificationSettings
Auto Trait Implementations§
impl Freeze for ReactionNotificationSettings
impl RefUnwindSafe for ReactionNotificationSettings
impl Send for ReactionNotificationSettings
impl Sync for ReactionNotificationSettings
impl Unpin for ReactionNotificationSettings
impl UnwindSafe for ReactionNotificationSettings
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