pub struct IndividualLevelLeaderboardBuilder<'a> { /* private fields */ }Expand description
Builder for IndividualLevelLeaderboard.
Implementations
sourceimpl<'a> IndividualLevelLeaderboardBuilder<'a>
impl<'a> IndividualLevelLeaderboardBuilder<'a>
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
Game ID or abbreviation.
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
Level ID or abbreviation.
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
Category ID or abbreviation.
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
Only return runs done on 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
Only return runs done in region.
sourcepub fn emulators<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn emulators<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
When unset, real devices and emulator results are returned. When true only emulator runs are returned, otherwise only real deivces are returned.
sourcepub fn video_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn video_only<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
When true only runs with videos will be returned. (default: false)
sourcepub fn timing<VALUE: Into<TimingMethod>>(&mut self, value: VALUE) -> &mut Self
pub fn timing<VALUE: Into<TimingMethod>>(&mut self, value: VALUE) -> &mut Self
What TimingMethod to use to determine the sorting of runs.
sourcepub fn date<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn date<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Only return runs done on or before this date. ISO 8601 date string.
sourcepub fn build(
&self
) -> Result<IndividualLevelLeaderboard<'a>, IndividualLevelLeaderboardBuilderError>
pub fn build(
&self
) -> Result<IndividualLevelLeaderboard<'a>, IndividualLevelLeaderboardBuilderError>
sourceimpl<'a> IndividualLevelLeaderboardBuilder<'a>
impl<'a> IndividualLevelLeaderboardBuilder<'a>
sourcepub fn embed(&mut self, embed: LeaderboardEmbeds) -> &mut Self
pub fn embed(&mut self, embed: LeaderboardEmbeds) -> &mut Self
Add an embedded resource to this result
sourcepub fn embeds<I>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = LeaderboardEmbeds>,
pub fn embeds<I>(&mut self, iter: I) -> &mut Self where
I: Iterator<Item = LeaderboardEmbeds>,
Add multiple embedded resources to this result
sourcepub fn variable<Var, Val>(&mut self, variable: Var, value: Val) -> &mut Self where
Var: Into<VariableId<'a>>,
Val: Into<ValueId<'a>>,
pub fn variable<Var, Val>(&mut self, variable: Var, value: Val) -> &mut Self where
Var: Into<VariableId<'a>>,
Val: Into<ValueId<'a>>,
Add a single custom variable to filter results by.
sourcepub fn variables<I, Var, Val>(&mut self, iter: I) -> &mut Self where
I: IntoIterator<Item = (Var, Val)>,
Var: Into<VariableId<'a>>,
Val: Into<ValueId<'a>>,
pub fn variables<I, Var, Val>(&mut self, iter: I) -> &mut Self where
I: IntoIterator<Item = (Var, Val)>,
Var: Into<VariableId<'a>>,
Val: Into<ValueId<'a>>,
Add multiple custom variables to filter results by.
Trait Implementations
sourceimpl<'a> Clone for IndividualLevelLeaderboardBuilder<'a>
impl<'a> Clone for IndividualLevelLeaderboardBuilder<'a>
sourcefn clone(&self) -> IndividualLevelLeaderboardBuilder<'a>
fn clone(&self) -> IndividualLevelLeaderboardBuilder<'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 IndividualLevelLeaderboardBuilder<'a>
impl<'a> Send for IndividualLevelLeaderboardBuilder<'a>
impl<'a> Sync for IndividualLevelLeaderboardBuilder<'a>
impl<'a> Unpin for IndividualLevelLeaderboardBuilder<'a>
impl<'a> UnwindSafe for IndividualLevelLeaderboardBuilder<'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