Struct splits_io_api::Game

source ·
pub struct Game {
    pub categories: Option<Vec<Category>>,
    pub created_at: Box<str>,
    pub id: Box<str>,
    pub name: Box<str>,
    pub shortname: Option<Box<str>>,
    pub updated_at: Box<str>,
}
Expand description

A Game is a collection of information about a game, and a container for Categories.

API Documentation

Fields§

§categories: Option<Vec<Category>>

The known speedrun categories for this game.

§created_at: Box<str>

The time and date at which this game was created on Splits.io. This field conforms to ISO 8601.

§id: Box<str>

The unique ID of the game.

§name: Box<str>

The full title of the game, like “Super Mario Sunshine”.

§shortname: Option<Box<str>>

A shortened title of the game, like “sms”, if it is known. Where possible, this name tries to match with those on SpeedRunsLive and/or Speedrun.com.

§updated_at: Box<str>

The time and date at which this game was most recently modified on Splits.io. This field conforms to ISO 8601.

Implementations§

Searches for a Game based on the name of the game.

Gets a Game based on the shortened title of the game.

Gets the Categories that belong to the Game based on the shortened title of the game.

Gets the Runs that belong to the Game based on the shortened title of the game.

Gets the Runners that belong to the Game based on the shortened title of the game.

Trait Implementations§

Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more