pub struct GetBeatmapScores<'a> { /* private fields */ }Expand description
Get top scores of a beatmap as BeatmapScores.
Implementations§
Source§impl<'a> GetBeatmapScores<'a>
impl<'a> GetBeatmapScores<'a>
Sourcepub fn mods<M>(self, mods: M) -> Selfwhere
GameModsIntermode: From<M>,
pub fn mods<M>(self, mods: M) -> Selfwhere
GameModsIntermode: From<M>,
Specify the mods of the scores
Sourcepub const fn country(self) -> Self
pub const fn country(self) -> Self
Specify that the national leaderboard should be requested.
Note that you must be authenticated through OAuth and have osu!supporter to use this.
pub const fn limit(self, limit: u32) -> Self
Sourcepub const fn legacy_only(self, legacy_only: bool) -> Self
pub const fn legacy_only(self, legacy_only: bool) -> Self
Whether or not to exclude lazer scores.
Sourcepub const fn legacy_scores(self, legacy_scores: bool) -> Self
pub const fn legacy_scores(self, legacy_scores: bool) -> Self
Specify whether the scores should contain legacy data or not.
Legacy data consists of a different grade calculation, less populated statistics, legacy mods, and a different score kind.
Trait Implementations§
Source§impl IntoFuture for GetBeatmapScores<'_>
impl IntoFuture for GetBeatmapScores<'_>
Source§type Output = Result<BeatmapScores, OsuError>
type Output = Result<BeatmapScores, OsuError>
The output that the future will produce on completion.
Source§type IntoFuture = OsuFuture<GetBeatmapScores<'_>>
type IntoFuture = OsuFuture<GetBeatmapScores<'_>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl<'a> Freeze for GetBeatmapScores<'a>
impl<'a> !RefUnwindSafe for GetBeatmapScores<'a>
impl<'a> Send for GetBeatmapScores<'a>
impl<'a> Sync for GetBeatmapScores<'a>
impl<'a> Unpin for GetBeatmapScores<'a>
impl<'a> !UnwindSafe for GetBeatmapScores<'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