Struct speedrun_api::api::series::SeriesGamesBuilder
source · [−]pub struct SeriesGamesBuilder<'a> { /* private fields */ }Expand description
Builder for SeriesGames
Implementations
sourceimpl<'a> SeriesGamesBuilder<'a>
impl<'a> SeriesGamesBuilder<'a>
sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SeriesGamesBuilder
sourcepub fn id<S>(&mut self, id: S) -> &mut Self where
S: Into<SeriesId<'a>>,
pub fn id<S>(&mut self, id: S) -> &mut Self where
S: Into<SeriesId<'a>>,
Series ID or abbreviation
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(&mut self, value: i64) -> &mut Self
pub fn released(&mut self, value: i64) -> &mut Self
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(&mut self, value: GamesSorting) -> &mut Self
pub fn orderby(&mut self, value: GamesSorting) -> &mut Self
Sorting options for results.
sourcepub fn build(&self) -> Result<SeriesGames<'a>, SeriesGamesBuilderError>
pub fn build(&self) -> Result<SeriesGames<'a>, SeriesGamesBuilderError>
Builds a new SeriesGames
Trait Implementations
sourceimpl<'a> Clone for SeriesGamesBuilder<'a>
impl<'a> Clone for SeriesGamesBuilder<'a>
sourcefn clone(&self) -> SeriesGamesBuilder<'a>
fn clone(&self) -> SeriesGamesBuilder<'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 SeriesGamesBuilder<'a>
impl<'a> Default for SeriesGamesBuilder<'a>
sourcefn default() -> SeriesGamesBuilder<'a>
fn default() -> SeriesGamesBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl<'a> RefUnwindSafe for SeriesGamesBuilder<'a>
impl<'a> Send for SeriesGamesBuilder<'a>
impl<'a> Sync for SeriesGamesBuilder<'a>
impl<'a> Unpin for SeriesGamesBuilder<'a>
impl<'a> UnwindSafe for SeriesGamesBuilder<'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