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
name
icon
owner
permissions

Methods

impl ServerInfo
[src]

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

Trait Implementations

Derived Implementations

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

impl Debug for ServerInfo
[src]

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

Formats the value using the given formatter.