Trait osu_pi::BeatmapMethods
source · pub trait BeatmapMethods {
fn get_beatmap_by_id(
&self,
map_id: &str,
m: Modes,
limit: i32
) -> Result<Vec<BeatmapConstructor>, ()>;
fn get_beatmap_by_set(
&self,
set_id: &str,
m: Modes,
limit: i32
) -> Result<Vec<BeatmapConstructor>, ()>;
fn get_beatmap_by_user(
&self,
user: &str,
m: Modes,
limit: i32
) -> Result<Vec<BeatmapConstructor>, ()>;
fn get_beatmap_by_hash(
&self,
hash: &str,
m: Modes,
limit: i32
) -> Result<Vec<BeatmapConstructor>, ()>;
}