Struct discord::model::Server  
                   
                       [−]
                   
               [src]
pub struct Server {
    pub id: ServerId,
    pub name: String,
    pub afk_timeout: u64,
    pub afk_channel_id: Option<ChannelId>,
    pub icon: Option<String>,
    pub roles: Vec<Role>,
    pub region: String,
    pub embed_enabled: bool,
    pub embed_channel_id: Option<ChannelId>,
    pub owner_id: UserId,
    pub verification_level: VerificationLevel,
    pub emojis: Vec<Emoji>,
    pub features: Vec<String>,
    pub splash: Option<String>,
    pub default_message_notifications: u64,
    pub mfa_level: u64,
}Static information about a server
Fields
id: ServerId
                           
                           
                           name: String
                           
                           
                           afk_timeout: u64
                           
                           
                           afk_channel_id: Option<ChannelId>
                           
                           
                           icon: Option<String>
                           
                           
                           roles: Vec<Role>
                           
                           
                           region: String
                           
                           
                           embed_enabled: bool
                           
                           
                           embed_channel_id: Option<ChannelId>
                           
                           
                           owner_id: UserId
                           
                           
                           verification_level: VerificationLevel
                           
                           
                           emojis: Vec<Emoji>
                           
                           
                           features: Vec<String>
                           
                           
                           splash: Option<String>
                           
                           
                           default_message_notifications: u64
                           
                           
                           mfa_level: u64
                           Methods
impl Server[src]
fn icon_url(&self) -> Option<String>
Returns the formatted URL of the server's icon.
Returns None if the server does not have an icon.
Trait Implementations
impl Debug for Server[src]
impl Clone for Server[src]
fn clone(&self) -> Server
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