BeatmapMethods

Trait BeatmapMethods 

Source
pub trait BeatmapMethods {
    // Required methods
    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>, ()>;
}

Required Methods§

Source

fn get_beatmap_by_id( &self, map_id: &str, m: Modes, limit: i32, ) -> Result<Vec<BeatmapConstructor>, ()>

Source

fn get_beatmap_by_set( &self, set_id: &str, m: Modes, limit: i32, ) -> Result<Vec<BeatmapConstructor>, ()>

Source

fn get_beatmap_by_user( &self, user: &str, m: Modes, limit: i32, ) -> Result<Vec<BeatmapConstructor>, ()>

Source

fn get_beatmap_by_hash( &self, hash: &str, m: Modes, limit: i32, ) -> Result<Vec<BeatmapConstructor>, ()>

Implementors§