Struct osu::builder::GetScoreRequest
[−]
[src]
pub struct GetScoreRequest<'a>(pub BTreeMap<&'a str, String>);
A builder used in conjunction with OsuRequester::get_scores
for
optional parameters.
Methods
impl<'a> GetScoreRequest<'a>
[src]
fn limit(self, limit: u16) -> Self
[src]
Specify the number of performances to retrieve at maximum.
Refer to GetUserRequest::limit
for examples.
fn mode(self, mode: PlayMode) -> Self
[src]
Specify the mode to filter by.
Refer to GetUserRequest::mode
for examples.
fn mods(self, mods: Mods) -> Self
[src]
Filters results by scores with certain Mods enabled.
fn user<U: Into<GetBeatmapUser>>(self, user: U) -> Self
[src]
Specify the user to retrieve a beatmap's top scores for. Pass in a u64 to search by Id, or a string to search by username.
This will automatically set the 'type' based on what is passed.
Trait Implementations
impl<'a> Default for GetScoreRequest<'a>
[src]
fn default() -> GetScoreRequest<'a>
[src]
Returns the "default value" for a type. Read more