pub struct Beatmap {Show 28 fields
pub ar: f32,
pub bpm: f32,
pub checksum: Option<String>,
pub convert: bool,
pub count_circles: u32,
pub count_sliders: u32,
pub count_spinners: u32,
pub creator_id: u32,
pub cs: f32,
pub deleted_at: Option<OffsetDateTime>,
pub fail_times: Option<FailTimes>,
pub hp: f32,
pub is_scoreable: bool,
pub last_updated: OffsetDateTime,
pub map_id: u32,
pub mapset: Option<Beatmapset>,
pub mapset_id: u32,
pub max_combo: Option<u32>,
pub mode: GameMode,
pub od: f32,
pub passcount: u32,
pub playcount: u32,
pub seconds_drain: u32,
pub seconds_total: u32,
pub stars: f32,
pub status: RankStatus,
pub url: String,
pub version: String,
}
Fields§
§ar: f32
§bpm: f32
§checksum: Option<String>
§convert: bool
§count_circles: u32
§count_sliders: u32
§count_spinners: u32
§creator_id: u32
§cs: f32
§deleted_at: Option<OffsetDateTime>
§fail_times: Option<FailTimes>
§hp: f32
§is_scoreable: bool
§last_updated: OffsetDateTime
§map_id: u32
§mapset: Option<Beatmapset>
§mapset_id: u32
§max_combo: Option<u32>
§mode: GameMode
§od: f32
§passcount: u32
§playcount: u32
§seconds_drain: u32
§seconds_total: u32
§stars: f32
§status: RankStatus
§url: String
Full URL, i.e. https://osu.ppy.sh/beatmaps/{map_id}
version: String
Implementations§
source§impl Beatmap
impl Beatmap
sourcepub fn count_objects(&self) -> u32
pub fn count_objects(&self) -> u32
Return the amount of hit objects in this map.
sourcepub fn difficulty_attributes<'o>(
&self,
osu: &'o Osu
) -> GetBeatmapDifficultyAttributes<'o> ⓘ
pub fn difficulty_attributes<'o>( &self, osu: &'o Osu ) -> GetBeatmapDifficultyAttributes<'o> ⓘ
Request the BeatmapDifficultyAttributes
for this map.
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
source§impl From<Beatmap> for BeatmapCompact
impl From<Beatmap> for BeatmapCompact
source§impl PartialEq<Beatmap> for Beatmap
impl PartialEq<Beatmap> for Beatmap
impl Eq for Beatmap
Auto Trait Implementations§
impl RefUnwindSafe for Beatmap
impl Send for Beatmap
impl Sync for Beatmap
impl Unpin 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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.