pub struct GetUserScores<'a> { /* private fields */ }Expand description
Implementations§
Source§impl<'a> GetUserScores<'a>
impl<'a> GetUserScores<'a>
Sourcepub const fn limit(self, limit: usize) -> Self
pub const fn limit(self, limit: usize) -> Self
The API provides at most 100 results per requests.
Sourcepub const fn offset(self, offset: usize) -> Self
pub const fn offset(self, offset: usize) -> Self
Set an offset for the requested elements
e.g. skip the first offset amount in the list
Sourcepub const fn include_fails(self, include_fails: bool) -> Self
pub const fn include_fails(self, include_fails: bool) -> Self
Specify whether failed scores can be included.
Only relevant for recent
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 GetUserScores<'_>
impl IntoFuture for GetUserScores<'_>
Source§type Output = Result<Vec<Score>, OsuError>
type Output = Result<Vec<Score>, OsuError>
The output that the future will produce on completion.
Source§type IntoFuture = OsuFuture<GetUserScores<'_>>
type IntoFuture = OsuFuture<GetUserScores<'_>>
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 GetUserScores<'a>
impl<'a> !RefUnwindSafe for GetUserScores<'a>
impl<'a> Send for GetUserScores<'a>
impl<'a> Sync for GetUserScores<'a>
impl<'a> Unpin for GetUserScores<'a>
impl<'a> !UnwindSafe for GetUserScores<'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