Struct discord::model::Game [] [src]

pub struct Game {
    pub name: String,
    pub url: Option<String>,
    pub kind: GameType,
}

Information about a game being played

Fields

name
url
kind

Methods

impl Game
[src]

fn playing(name: String) -> Game

fn streaming(name: String, url: String) -> Game

fn decode(value: Value) -> Result<Option<Game>>

Trait Implementations

Derived Implementations

impl Clone for Game
[src]

fn clone(&self) -> Game

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 Game
[src]

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

Formats the value using the given formatter.