pub struct Beatmap {Show 37 fields
pub approval_status: ApprovalStatus,
pub submit_date: OffsetDateTime,
pub approved_date: Option<OffsetDateTime>,
pub last_update: OffsetDateTime,
pub artist: String,
pub title: String,
pub version: String,
pub beatmap_id: u32,
pub beatmapset_id: u32,
pub bpm: f32,
pub creator: String,
pub creator_id: u32,
pub stars: f32,
pub stars_aim: Option<f32>,
pub stars_speed: Option<f32>,
pub diff_cs: f32,
pub diff_od: f32,
pub diff_ar: f32,
pub diff_hp: f32,
pub seconds_drain: u32,
pub seconds_total: u32,
pub source: String,
pub genre: Genre,
pub language: Language,
pub mode: GameMode,
pub tags: String,
pub favourite_count: u32,
pub rating: f32,
pub playcount: u32,
pub passcount: u32,
pub count_circle: u32,
pub count_slider: u32,
pub count_spinner: u32,
pub max_combo: Option<u32>,
pub download_unavailable: bool,
pub audio_unavailable: bool,
pub file_md5: Option<String>,
}Expand description
Beatmap struct retrieved from the /api/get_beatmaps endpoint.
Fields§
§approval_status: ApprovalStatus§submit_date: OffsetDateTime§approved_date: Option<OffsetDateTime>§last_update: OffsetDateTime§artist: String§title: String§version: String§beatmap_id: u32§beatmapset_id: u32§bpm: f32§creator: String§creator_id: u32§stars: f32§stars_aim: Option<f32>§stars_speed: Option<f32>§diff_cs: f32§diff_od: f32§diff_ar: f32§diff_hp: f32§seconds_drain: u32§seconds_total: u32§source: String§genre: Genre§language: Language§mode: GameMode§favourite_count: u32§rating: f32§playcount: u32§passcount: u32§count_circle: u32§count_slider: u32§count_spinner: u32§max_combo: Option<u32>§file_md5: Option<String>Implementations§
Source§impl Beatmap
impl Beatmap
Sourcepub fn get_creator<'o>(&self, osu: &'o Osu) -> GetUser<'o> ⓘ
pub fn get_creator<'o>(&self, osu: &'o Osu) -> GetUser<'o> ⓘ
Retrieve the creator of the beatmap from the API.
Be sure to specify GameMode if necessary, defaults to Osu.
Sourcepub fn get_global_leaderboard<'o>(&self, osu: &'o Osu) -> GetScores<'o> ⓘ
pub fn get_global_leaderboard<'o>(&self, osu: &'o Osu) -> GetScores<'o> ⓘ
Retrieve the global top scores of the beatmap from the API. Amount ranges from 1 to 100, defaults to 50.
Sourcepub fn count_objects(&self) -> u32
pub fn count_objects(&self) -> u32
Count all circles, sliders, and spinners of the beatmap
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Beatmap
impl<'de> Deserialize<'de> for Beatmap
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Beatmap
Auto Trait Implementations§
impl Freeze for Beatmap
impl RefUnwindSafe for Beatmap
impl Send for Beatmap
impl Sync for Beatmap
impl Unpin for Beatmap
impl UnsafeUnpin for Beatmap
impl UnwindSafe for Beatmap
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.