pub struct GamesBuilder<'a> { /* private fields */ }Expand description
Builder for Games.
Implementations§
Source§impl<'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.
Source§impl GamesBuilder<'_>
impl GamesBuilder<'_>
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§
Source§impl<'a> Clone for GamesBuilder<'a>
impl<'a> Clone for GamesBuilder<'a>
Source§fn clone(&self) -> GamesBuilder<'a>
fn clone(&self) -> GamesBuilder<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for GamesBuilder<'a>
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§
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