[−][src]Struct rosu::Osu
The main osu client. Cheap to clone.
Implementations
impl Osu
[src]
pub fn new(api_key: impl Into<String>) -> Self
[src]
Create a new Osu
client.
pub fn builder(api_key: impl Into<String>) -> OsuBuilder
[src]
Create a new builder to build an Osu
struct.
pub fn user(&self, user: impl Into<UserIdentification>) -> GetUser<'_>ⓘ
[src]
Request an optional User
.
pub fn beatmap(&self) -> GetBeatmap<'_>ⓘNotable traits for GetBeatmap<'_>
impl Future for GetBeatmap<'_> type Output = OsuResult<Option<Beatmap>>;
[src]
Notable traits for GetBeatmap<'_>
impl Future for GetBeatmap<'_> type Output = OsuResult<Option<Beatmap>>;
Request an optional Beatmap
.
pub fn beatmaps(&self) -> GetBeatmaps<'_>ⓘNotable traits for GetBeatmaps<'_>
impl Future for GetBeatmaps<'_> type Output = OsuResult<Vec<Beatmap>>;
[src]
Notable traits for GetBeatmaps<'_>
impl Future for GetBeatmaps<'_> type Output = OsuResult<Vec<Beatmap>>;
Request a vec of Beatmap
s.
pub fn osu_match(&self, match_id: u32) -> GetMatch<'_>ⓘ
[src]
Request the Match
with the given match_id
.
pub fn score(&self, map_id: u32) -> GetScore<'_>ⓘ
[src]
Request an optional Score
on the given map_id
.
pub fn scores(&self, map_id: u32) -> GetScores<'_>ⓘ
[src]
Request a vec of Score
s on the given map_id
.
pub fn top_scores(&self, user: impl Into<UserIdentification>) -> GetUserBest<'_>ⓘNotable traits for GetUserBest<'_>
impl Future for GetUserBest<'_> type Output = OsuResult<Vec<Score>>;
[src]
Notable traits for GetUserBest<'_>
impl Future for GetUserBest<'_> type Output = OsuResult<Vec<Score>>;
Request a vec of Score
s namely the top scores of the given user.
pub fn recent_scores(
&self,
user: impl Into<UserIdentification>
) -> GetUserRecent<'_>ⓘNotable traits for GetUserRecent<'_>
impl Future for GetUserRecent<'_> type Output = OsuResult<Vec<Score>>;
[src]
&self,
user: impl Into<UserIdentification>
) -> GetUserRecent<'_>ⓘ
Notable traits for GetUserRecent<'_>
impl Future for GetUserRecent<'_> type Output = OsuResult<Vec<Score>>;
Request a vec of Score
s namely the most recent scores of the given user.
Auto Trait Implementations
impl !RefUnwindSafe for Osu
[src]
impl Send for Osu
[src]
impl Sync for Osu
[src]
impl Unpin for Osu
[src]
impl !UnwindSafe for Osu
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,