Struct speedrun_api::api::games::GameDerivedGamesBuilder
source · [−]pub struct GameDerivedGamesBuilder<'a> { /* private fields */ }Expand description
Builder for GameDerivedGames.
Implementations
sourceimpl<'a> GameDerivedGamesBuilder<'a>
impl<'a> GameDerivedGamesBuilder<'a>
sourcepub fn id<S>(&mut self, value: S) -> &mut Self where
S: Into<GameId<'a>>,
pub fn id<S>(&mut self, value: S) -> &mut Self where
S: Into<GameId<'a>>,
ID of the base game to retrieve games for.
sourcepub fn name<S>(&mut self, value: S) -> &mut Self where
S: Into<Cow<'a, str>>,
pub fn name<S>(&mut self, value: S) -> &mut Self where
S: Into<Cow<'a, str>>,
Performs a fuzzy search across game names and abbreviations.
sourcepub fn abbreviation<S>(&mut self, value: S) -> &mut Self where
S: Into<Cow<'a, str>>,
pub fn abbreviation<S>(&mut self, value: S) -> &mut Self where
S: Into<Cow<'a, str>>,
Perform an exact-match search for this abbreviation.
sourcepub fn released<T>(&mut self, value: T) -> &mut Self where
T: Into<i64>,
pub fn released<T>(&mut self, value: T) -> &mut Self where
T: Into<i64>,
Restrict results to games released in the given year.
sourcepub fn gametype<S>(&mut self, value: S) -> &mut Self where
S: Into<GameTypeId<'a>>,
pub fn gametype<S>(&mut self, value: S) -> &mut Self where
S: Into<GameTypeId<'a>>,
Restrict results to the given game type.
sourcepub fn platform<S>(&mut self, value: S) -> &mut Self where
S: Into<PlatformId<'a>>,
pub fn platform<S>(&mut self, value: S) -> &mut Self where
S: Into<PlatformId<'a>>,
Restrict results to the given platform.
sourcepub fn region<S>(&mut self, value: S) -> &mut Self where
S: Into<RegionId<'a>>,
pub fn region<S>(&mut self, value: S) -> &mut Self where
S: Into<RegionId<'a>>,
Restrict results to the given region.
sourcepub fn genre<S>(&mut self, value: S) -> &mut Self where
S: Into<GenreId<'a>>,
pub fn genre<S>(&mut self, value: S) -> &mut Self where
S: Into<GenreId<'a>>,
Restrict results to the given genre.
sourcepub fn engine<S>(&mut self, value: S) -> &mut Self where
S: Into<EngineId<'a>>,
pub fn engine<S>(&mut self, value: S) -> &mut Self where
S: Into<EngineId<'a>>,
Restrict results to the given engine.
sourcepub fn developer<S>(&mut self, value: S) -> &mut Self where
S: Into<DeveloperId<'a>>,
pub fn developer<S>(&mut self, value: S) -> &mut Self where
S: Into<DeveloperId<'a>>,
Restrict results to the given developer.
sourcepub fn publisher<S>(&mut self, value: S) -> &mut Self where
S: Into<PublisherId<'a>>,
pub fn publisher<S>(&mut self, value: S) -> &mut Self where
S: Into<PublisherId<'a>>,
Restrict results to the given publisher.
sourcepub fn moderator<S>(&mut self, value: S) -> &mut Self where
S: Into<UserId<'a>>,
pub fn moderator<S>(&mut self, value: S) -> &mut Self where
S: Into<UserId<'a>>,
Only return games moderated by the given user.
sourcepub fn orderby<V>(&mut self, value: V) -> &mut Self where
V: Into<GamesSorting>,
pub fn orderby<V>(&mut self, value: V) -> &mut Self where
V: Into<GamesSorting>,
Sorting options for results.
sourcepub fn direction<V>(&mut self, value: V) -> &mut Self where
V: Into<Direction>,
pub fn direction<V>(&mut self, value: V) -> &mut Self where
V: Into<Direction>,
Sort direction.
sourcepub fn build(
&self
) -> Result<GameDerivedGames<'a>, GameDerivedGamesBuilderError>
pub fn build(
&self
) -> Result<GameDerivedGames<'a>, GameDerivedGamesBuilderError>
Trait Implementations
sourceimpl<'a> Clone for GameDerivedGamesBuilder<'a>
impl<'a> Clone for GameDerivedGamesBuilder<'a>
sourcefn clone(&self) -> GameDerivedGamesBuilder<'a>
fn clone(&self) -> GameDerivedGamesBuilder<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'a> Default for GameDerivedGamesBuilder<'a>
impl<'a> Default for GameDerivedGamesBuilder<'a>
sourcefn default() -> GameDerivedGamesBuilder<'a>
fn default() -> GameDerivedGamesBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for GameDerivedGamesBuilder<'a>
impl<'a> Send for GameDerivedGamesBuilder<'a>
impl<'a> Sync for GameDerivedGamesBuilder<'a>
impl<'a> Unpin for GameDerivedGamesBuilder<'a>
impl<'a> UnwindSafe for GameDerivedGamesBuilder<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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