pub struct UserGuildSettingsUpdate {Show 13 fields
pub version: u8,
pub suppress_roles: bool,
pub suppress_everyone: bool,
pub notify_highlights: u8,
pub muted: bool,
pub mute_scheduled_events: bool,
pub mute_config: Option<Value>,
pub mobile_push: bool,
pub message_notifications: u8,
pub hide_muted_channels: bool,
pub guild_id: Snowflake,
pub flags: i32,
pub channel_overrides: Vec<UserGuildSettingsChannelOverride>,
}Expand description
Undocumented;
Possibly an update for muted guild / channel settings for the current user;
Ex: {“version”:2,“suppress_roles”:false,“suppress_everyone”:false,“notify_highlights”:0,“muted”:false,“mute_scheduled_events”:false,“mute_config”:null,“mobile_push”:true,“message_notifications”:1,“hide_muted_channels”:false,“guild_id”:“848582562217590824”,“flags”:0,“channel_overrides”:[{“muted”:false,“mute_config”:null,“message_notifications”:3,“flags”:4096,“collapsed”:false,“channel_id”:“1042689182893604885”}]}
Fields§
§version: u8§suppress_roles: bool§suppress_everyone: bool§notify_highlights: u8§muted: bool§mute_scheduled_events: bool§mute_config: Option<Value>??
mobile_push: bool§message_notifications: u8§hide_muted_channels: bool§guild_id: Snowflake§flags: i32§channel_overrides: Vec<UserGuildSettingsChannelOverride>Trait Implementations§
Source§impl Clone for UserGuildSettingsUpdate
impl Clone for UserGuildSettingsUpdate
Source§fn clone(&self) -> UserGuildSettingsUpdate
fn clone(&self) -> UserGuildSettingsUpdate
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 UserGuildSettingsUpdate
impl Debug for UserGuildSettingsUpdate
Source§impl Default for UserGuildSettingsUpdate
impl Default for UserGuildSettingsUpdate
Source§fn default() -> UserGuildSettingsUpdate
fn default() -> UserGuildSettingsUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserGuildSettingsUpdate
impl<'de> Deserialize<'de> for UserGuildSettingsUpdate
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 UserGuildSettingsUpdate
impl PartialEq for UserGuildSettingsUpdate
Source§impl Serialize for UserGuildSettingsUpdate
impl Serialize for UserGuildSettingsUpdate
impl Eq for UserGuildSettingsUpdate
impl StructuralPartialEq for UserGuildSettingsUpdate
impl WebSocketEvent for UserGuildSettingsUpdate
Auto Trait Implementations§
impl Freeze for UserGuildSettingsUpdate
impl RefUnwindSafe for UserGuildSettingsUpdate
impl Send for UserGuildSettingsUpdate
impl Sync for UserGuildSettingsUpdate
impl Unpin for UserGuildSettingsUpdate
impl UnwindSafe for UserGuildSettingsUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.