Struct speedrun_api::api::games::GamesBuilder
source · [−]pub struct GamesBuilder<'a> { /* private fields */ }Expand description
Builder for Games.
Implementations
sourceimpl<'a> GamesBuilder<'a>
impl<'a> GamesBuilder<'a>
sourcepub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Performs a fuzzy search across game names and abbreviations.
sourcepub fn abbreviation<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn abbreviation<VALUE: Into<Cow<'a, str>>>(
&mut self,
value: VALUE
) -> &mut Self
Perform an exact-match search for this abbreviation.
sourcepub fn released<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn released<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
Restrict results to games released in the given year.
sourcepub fn gametype<VALUE: Into<GameTypeId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn gametype<VALUE: Into<GameTypeId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
Restrict results to the given game type.
sourcepub fn platform<VALUE: Into<PlatformId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn platform<VALUE: Into<PlatformId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
Restrict results to the given platform.
sourcepub fn region<VALUE: Into<RegionId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn region<VALUE: Into<RegionId<'a>>>(&mut self, value: VALUE) -> &mut Self
Restrict results to the given region.
sourcepub fn genre<VALUE: Into<GenreId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn genre<VALUE: Into<GenreId<'a>>>(&mut self, value: VALUE) -> &mut Self
Restrict results to the given genre.
sourcepub fn engine<VALUE: Into<EngineId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn engine<VALUE: Into<EngineId<'a>>>(&mut self, value: VALUE) -> &mut Self
Restrict results to the given engine.
sourcepub fn developer<VALUE: Into<DeveloperId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn developer<VALUE: Into<DeveloperId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
Restrict results to the given developer.
sourcepub fn publisher<VALUE: Into<PublisherId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn publisher<VALUE: Into<PublisherId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
Restrict results to the given publisher.
sourcepub fn moderator<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn moderator<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
Only return games moderated by the given user.
sourcepub fn orderby<VALUE: Into<GamesSorting>>(&mut self, value: VALUE) -> &mut Self
pub fn orderby<VALUE: Into<GamesSorting>>(&mut self, value: VALUE) -> &mut Self
Sorting options for results.
sourceimpl<'a> GamesBuilder<'a>
impl<'a> GamesBuilder<'a>
sourcepub fn embed(&mut self, embed: GameEmbeds) -> &mut Self
pub fn embed(&mut self, embed: GameEmbeds) -> &mut Self
Add an embedded resource to this result.
sourcepub fn embeds<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = GameEmbeds>,
pub fn embeds<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = GameEmbeds>,
Add multiple embedded resources to this result.
Trait Implementations
sourceimpl<'a> Clone for GamesBuilder<'a>
impl<'a> Clone for GamesBuilder<'a>
sourcefn clone(&self) -> GamesBuilder<'a>
fn clone(&self) -> GamesBuilder<'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
Auto Trait Implementations
impl<'a> RefUnwindSafe for GamesBuilder<'a>
impl<'a> Send for GamesBuilder<'a>
impl<'a> Sync for GamesBuilder<'a>
impl<'a> Unpin for GamesBuilder<'a>
impl<'a> UnwindSafe for GamesBuilder<'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