Struct discord::model::ServerInfo
[−]
[src]
pub struct ServerInfo {
pub id: ServerId,
pub name: String,
pub icon: Option<String>,
pub owner: bool,
pub permissions: Permissions,
}The basic information about a server only
Fields
id: ServerId
name: String
icon: Option<String>
owner: bool
permissions: Permissions
Methods
impl ServerInfo[src]
fn decode(value: Value) -> Result<Self>
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 ServerInfo[src]
impl Clone for ServerInfo[src]
fn clone(&self) -> ServerInfo
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