Struct speedrun_api::api::games::GameCategoriesBuilder
source · [−]pub struct GameCategoriesBuilder<'a> { /* private fields */ }Expand description
Builder for GameCategories.
Implementations
sourceimpl<'a> GameCategoriesBuilder<'a>
impl<'a> GameCategoriesBuilder<'a>
sourcepub fn id<VALUE: Into<GameId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<GameId<'a>>>(&mut self, value: VALUE) -> &mut Self
ID of the game to retrieve categories for.
sourcepub fn miscellaneous<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn miscellaneous<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Filter miscellaneous categories.
sourcepub fn orderby<VALUE: Into<CategoriesSorting>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn orderby<VALUE: Into<CategoriesSorting>>(
&mut self,
value: VALUE
) -> &mut Self
Sorting options for results.
sourcepub fn build(&self) -> Result<GameCategories<'a>, GameCategoriesBuilderError>
pub fn build(&self) -> Result<GameCategories<'a>, GameCategoriesBuilderError>
sourceimpl<'a> GameCategoriesBuilder<'a>
impl<'a> GameCategoriesBuilder<'a>
sourcepub fn embed(&mut self, embed: CategoryEmbeds) -> &mut Self
pub fn embed(&mut self, embed: CategoryEmbeds) -> &mut Self
Add an embedded resource to this result
sourcepub fn embeds<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = CategoryEmbeds>,
pub fn embeds<I>(&mut self, iter: I) -> &mut Selfwhere
I: Iterator<Item = CategoryEmbeds>,
Add multiple embedded resources to this result
Trait Implementations
sourceimpl<'a> Clone for GameCategoriesBuilder<'a>
impl<'a> Clone for GameCategoriesBuilder<'a>
sourcefn clone(&self) -> GameCategoriesBuilder<'a>
fn clone(&self) -> GameCategoriesBuilder<'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 GameCategoriesBuilder<'a>
impl<'a> Send for GameCategoriesBuilder<'a>
impl<'a> Sync for GameCategoriesBuilder<'a>
impl<'a> Unpin for GameCategoriesBuilder<'a>
impl<'a> UnwindSafe for GameCategoriesBuilder<'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