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
kind: GameType
The type of game status.
name: String
The name of the game that's being played.
url: Option<String>
Stream URL if the kind
is Streaming
.
Methods
impl Game
[src]
fn playing(name: &str) -> Game
Creates a Game
struct that appears as a Playing <name>
status.
Note: Maximum name
length is 128.
fn streaming(name: &str, url: &str) -> Game
Creates a Game
struct that appears as a Streaming <name>
status.
Note: Maximum name
length is 128.
Trait 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