Struct speedrun_api::types::Game
source · [−]pub struct Game<'a> {Show 17 fields
pub id: GameId<'a>,
pub names: Names,
pub abbreviation: String,
pub weblink: String,
pub release_date: String,
pub ruleset: Ruleset,
pub gametypes: Vec<GameTypeId<'a>>,
pub platforms: Vec<PlatformId<'a>>,
pub regions: Vec<RegionId<'a>>,
pub genres: Vec<GenreId<'a>>,
pub engines: Vec<EngineId<'a>>,
pub developers: Vec<DeveloperId<'a>>,
pub publishers: Vec<PublisherId<'a>>,
pub moderators: HashMap<UserId<'a>, ModeratorRole>,
pub created: Option<String>,
pub assets: Assets,
pub links: Vec<Link>,
}Fields
id: GameId<'a>names: Namesabbreviation: Stringweblink: Stringrelease_date: Stringruleset: Rulesetgametypes: Vec<GameTypeId<'a>>platforms: Vec<PlatformId<'a>>regions: Vec<RegionId<'a>>genres: Vec<GenreId<'a>>engines: Vec<EngineId<'a>>developers: Vec<DeveloperId<'a>>publishers: Vec<PublisherId<'a>>moderators: HashMap<UserId<'a>, ModeratorRole>created: Option<String>assets: Assetslinks: Vec<Link>Trait Implementations
sourceimpl<'de, 'a> Deserialize<'de> for Game<'a>
impl<'de, 'a> Deserialize<'de> for Game<'a>
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> PartialEq<Game<'a>> for Game<'a>
impl<'a> PartialEq<Game<'a>> for Game<'a>
impl<'a> StructuralPartialEq for Game<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Game<'a>
impl<'a> Send for Game<'a>
impl<'a> Sync for Game<'a>
impl<'a> Unpin for Game<'a>
impl<'a> UnwindSafe for Game<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more