pub struct Osu(_);
Expand description
The main osu client. Cheap to clone.
Implementations§
source§impl Osu
impl Osu
sourcepub fn builder(api_key: impl Into<Box<str>>) -> OsuBuilder
pub fn builder(api_key: impl Into<Box<str>>) -> OsuBuilder
Create a new builder to build an Osu
struct.
sourcepub fn user(&self, user: impl Into<UserIdentification>) -> GetUser<'_> ⓘ
pub fn user(&self, user: impl Into<UserIdentification>) -> GetUser<'_> ⓘ
Request an optional User
.
sourcepub fn beatmap(&self) -> GetBeatmap<'_> ⓘ
pub fn beatmap(&self) -> GetBeatmap<'_> ⓘ
Request an optional Beatmap
.
sourcepub fn beatmaps(&self) -> GetBeatmaps<'_> ⓘ
pub fn beatmaps(&self) -> GetBeatmaps<'_> ⓘ
Request a vec of Beatmap
s.
sourcepub fn osu_match(&self, match_id: u32) -> GetMatch<'_> ⓘ
pub fn osu_match(&self, match_id: u32) -> GetMatch<'_> ⓘ
Request the Match
with the given match_id
.
sourcepub fn score(&self, map_id: u32) -> GetScore<'_> ⓘ
pub fn score(&self, map_id: u32) -> GetScore<'_> ⓘ
Request an optional Score
on the given map_id
.
sourcepub fn scores(&self, map_id: u32) -> GetScores<'_> ⓘ
pub fn scores(&self, map_id: u32) -> GetScores<'_> ⓘ
Request a vec of Score
s on the given map_id
.
sourcepub fn top_scores(&self, user: impl Into<UserIdentification>) -> GetUserBest<'_> ⓘ
pub fn top_scores(&self, user: impl Into<UserIdentification>) -> GetUserBest<'_> ⓘ
Request a vec of Score
s namely the top scores of the given user.
sourcepub fn recent_scores(
&self,
user: impl Into<UserIdentification>
) -> GetUserRecent<'_> ⓘ
pub fn recent_scores( &self, user: impl Into<UserIdentification> ) -> GetUserRecent<'_> ⓘ
Request a vec of Score
s namely the most recent scores of the given user.
Auto Trait Implementations§
impl !RefUnwindSafe for Osu
impl Send for Osu
impl Sync for Osu
impl Unpin for Osu
impl !UnwindSafe for Osu
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