Struct discord::model::UserSettings [] [src]

pub struct UserSettings {
    pub enable_tts_command: bool,
    pub inline_attachment_media: bool,
    pub inline_embed_media: bool,
    pub locale: String,
    pub message_display_compact: bool,
    pub render_embeds: bool,
    pub show_current_game: bool,
    pub theme: String,
    pub convert_emoticons: bool,
    pub allow_email_friend_request: bool,
    pub friend_source_flags: FriendSourceFlags,
    pub restricted_servers: Vec<ServerId>,
}

User settings usually used to influence client behavior

Fields

enable_tts_command
inline_attachment_media
inline_embed_media
locale
message_display_compact
render_embeds
show_current_game
theme
convert_emoticons
allow_email_friend_request
friend_source_flags
restricted_servers

Servers whose members cannot private message this user.

Methods

impl UserSettings
[src]

fn decode(value: Value) -> Result<UserSettings>

Trait Implementations

Derived Implementations

impl Clone for UserSettings
[src]

fn clone(&self) -> UserSettings

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for UserSettings
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.