Struct serenity::model::Game [] [src]

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

Represents a game that a a user is playing, or streaming in the case that a stream link is provided.

Fields

The type of game status.

The name of the game that's being played.

Stream URL if the kind is Streaming.

Methods

impl Game
[src]

Creates a Game struct that appears as a Playing <name> status.

Note: Maximum name length is 128.

Creates a Game struct that appears as a Streaming <name> status.

Note: Maximum name length is 128.

Trait Implementations

impl Clone for Game
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Game
[src]

Formats the value using the given formatter.