Struct speedrun_api::api::runs::RunsBuilder
source · [−]pub struct RunsBuilder<'a> { /* private fields */ }Expand description
Builder for Runs.
Implementations
sourceimpl<'a> RunsBuilder<'a>
impl<'a> RunsBuilder<'a>
sourcepub fn user<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn user<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
Return only runs done by user.
sourcepub fn guest<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn guest<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Return only runs done by guest.
sourcepub fn examiner<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn examiner<VALUE: Into<UserId<'a>>>(&mut self, value: VALUE) -> &mut Self
Return only runs examined by examiner.
sourcepub fn game<VALUE: Into<GameId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn game<VALUE: Into<GameId<'a>>>(&mut self, value: VALUE) -> &mut Self
Restrict results to game.
sourcepub fn level<VALUE: Into<LevelId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn level<VALUE: Into<LevelId<'a>>>(&mut self, value: VALUE) -> &mut Self
Restrict results to level.
sourcepub fn category<VALUE: Into<CategoryId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
pub fn category<VALUE: Into<CategoryId<'a>>>(
&mut self,
value: VALUE
) -> &mut Self
Restrict results to category.
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 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 region.
sourcepub fn emulated<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn emulated<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
Only return games run on an emulator when true.
sourcepub fn status<VALUE: Into<RunStatus>>(&mut self, value: VALUE) -> &mut Self
pub fn status<VALUE: Into<RunStatus>>(&mut self, value: VALUE) -> &mut Self
Filter runs based on status.
sourcepub fn orderby<VALUE: Into<RunsSorting>>(&mut self, value: VALUE) -> &mut Self
pub fn orderby<VALUE: Into<RunsSorting>>(&mut self, value: VALUE) -> &mut Self
Sorting options for results.
Trait Implementations
sourceimpl<'a> Clone for RunsBuilder<'a>
impl<'a> Clone for RunsBuilder<'a>
sourcefn clone(&self) -> RunsBuilder<'a>
fn clone(&self) -> RunsBuilder<'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 RunsBuilder<'a>
impl<'a> Send for RunsBuilder<'a>
impl<'a> Sync for RunsBuilder<'a>
impl<'a> Unpin for RunsBuilder<'a>
impl<'a> UnwindSafe for RunsBuilder<'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