osynic_osuapi 0.1.10

High performance, well-structured, extensible Rust osu! API client. Supports both WASM and native environments.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::error::Result;
use crate::v2::model::beatmapset::structs::beatmapset::Beatmapset;
use crate::v2::model::search::dtos::params::BeatmapsetsSearchParams;
use crate::v2::model::search::dtos::response::BeatmapsetsSearchResponse;

pub trait IBeatmapsets {
    fn search(
        &self,
        params: BeatmapsetsSearchParams,
    ) -> impl std::future::Future<Output = Result<BeatmapsetsSearchResponse>>;
    // fn lookup(&self) -> impl std::future::Future<Output = Result<()>>;
    fn get_beatmapset(
        &self,
        beatmapset_id: u32,
    ) -> impl std::future::Future<Output = Result<Beatmapset>>;
    fn download(&self, beatmapset_id: u32) -> impl std::future::Future<Output = Result<()>>;
    // {"authentication":"basic"}
}