Enum discord::model::PossibleServer [] [src]

pub enum PossibleServer<T> {
    Offline(ServerId),
    Online(T),
}

A server which may be unavailable

Variants

Offline

An offline server, the ID of which is known

Online

An online server, for which more information is available

Methods

impl PossibleServer<LiveServer>
[src]

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

fn id(&self) -> ServerId

impl PossibleServer<Server>
[src]

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

fn id(&self) -> ServerId

Trait Implementations

Derived Implementations

impl<T: Clone> Clone for PossibleServer<T>
[src]

fn clone(&self) -> PossibleServer<T>

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<T: Debug> Debug for PossibleServer<T>
[src]

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

Formats the value using the given formatter.