pub struct SeriesGamesBuilder<'a> { /* private fields */ }
Expand description
Builder for SeriesGames
Implementations§
Source§impl<'a> SeriesGamesBuilder<'a>
impl<'a> SeriesGamesBuilder<'a>
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new SeriesGamesBuilder
Sourcepub fn name<S>(&mut self, value: S) -> &mut Self
pub fn name<S>(&mut self, value: S) -> &mut Self
Performs a fuzzy search across game names and abbreviations.
Sourcepub fn abbreviation<S>(&mut self, value: S) -> &mut Self
pub fn abbreviation<S>(&mut self, value: S) -> &mut Self
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 Selfwhere
S: Into<GameTypeId<'a>>,
pub fn gametype<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<GameTypeId<'a>>,
Restrict results to the given game type.
Sourcepub fn platform<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<PlatformId<'a>>,
pub fn platform<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<PlatformId<'a>>,
Restrict results to the given platform.
Sourcepub fn developer<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<DeveloperId<'a>>,
pub fn developer<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<DeveloperId<'a>>,
Restrict results to the given developer.
Sourcepub fn publisher<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<PublisherId<'a>>,
pub fn publisher<S>(&mut self, value: S) -> &mut Selfwhere
S: Into<PublisherId<'a>>,
Restrict results to the given publisher.
Sourcepub fn moderator<S>(&mut self, value: S) -> &mut Self
pub fn moderator<S>(&mut self, value: S) -> &mut Self
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§
Source§impl<'a> Clone for SeriesGamesBuilder<'a>
impl<'a> Clone for SeriesGamesBuilder<'a>
Source§fn clone(&self) -> SeriesGamesBuilder<'a>
fn clone(&self) -> SeriesGamesBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Default for SeriesGamesBuilder<'a>
impl<'a> Default for SeriesGamesBuilder<'a>
Source§fn default() -> SeriesGamesBuilder<'a>
fn default() -> SeriesGamesBuilder<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for SeriesGamesBuilder<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more