Beatmap

Struct Beatmap 

Source
pub struct Beatmap {
Show 53 fields pub artist_ascii: Option<String>, pub artist_unicode: Option<String>, pub title_ascii: Option<String>, pub title_unicode: Option<String>, pub creator: Option<String>, pub difficulty_name: Option<String>, pub audio: Option<String>, pub hash: Option<String>, pub file_name: Option<String>, pub status: RankedStatus, pub hitcircle_count: u16, pub slider_count: u16, pub spinner_count: u16, pub last_modified: DateTime<Utc>, pub approach_rate: f32, pub circle_size: f32, pub hp_drain: f32, pub overall_difficulty: f32, pub slider_velocity: f64, pub std_ratings: StarRatings, pub taiko_ratings: StarRatings, pub ctb_ratings: StarRatings, pub mania_ratings: StarRatings, pub drain_time: u32, pub total_time: u32, pub preview_time: u32, pub timing_points: Vec<TimingPoint>, pub beatmap_id: i32, pub beatmapset_id: i32, pub thread_id: u32, pub std_grade: Grade, pub taiko_grade: Grade, pub ctb_grade: Grade, pub mania_grade: Grade, pub local_beatmap_offset: u16, pub stack_leniency: f32, pub mode: Mode, pub song_source: Option<String>, pub tags: Option<String>, pub online_offset: u16, pub title_font: Option<String>, pub last_played: Option<DateTime<Utc>>, pub is_osz2: bool, pub folder_name: Option<String>, pub last_online_check: DateTime<Utc>, pub ignore_sounds: bool, pub ignore_skin: bool, pub disable_storyboard: bool, pub disable_video: bool, pub visual_override: bool, pub mysterious_short: Option<u16>, pub mysterious_last_modified: u32, pub mania_scroll_speed: u8,
}

Fields§

§artist_ascii: Option<String>

The name of the artist without special characters.

§artist_unicode: Option<String>

The unrestrained artist name.

§title_ascii: Option<String>

The song title without special characters.

§title_unicode: Option<String>

The unrestrained song title.

§creator: Option<String>

The name of the beatmap mapper.

§difficulty_name: Option<String>

The name of this specific difficulty.

§audio: Option<String>

The filename of the song file.

§hash: Option<String>

The MD5 hash of the beatmap.

§file_name: Option<String>

The filename of the .osu file corresponding to this specific difficulty.

§status: RankedStatus§hitcircle_count: u16§slider_count: u16§spinner_count: u16§last_modified: DateTime<Utc>§approach_rate: f32§circle_size: f32§hp_drain: f32§overall_difficulty: f32§slider_velocity: f64§std_ratings: StarRatings§taiko_ratings: StarRatings§ctb_ratings: StarRatings§mania_ratings: StarRatings§drain_time: u32

Drain time in seconds.

§total_time: u32

Total beatmap time in milliseconds.

§preview_time: u32

When should the song start playing when previewed, in milliseconds since the start of the song.

§timing_points: Vec<TimingPoint>§beatmap_id: i32§beatmapset_id: i32§thread_id: u32§std_grade: Grade§taiko_grade: Grade§ctb_grade: Grade§mania_grade: Grade§local_beatmap_offset: u16§stack_leniency: f32§mode: Mode§song_source: Option<String>

Where did the song come from, if anywhere.

§tags: Option<String>

Song tags, separated by whitespace.

§online_offset: u16§title_font: Option<String>§last_played: Option<DateTime<Utc>>

Whether the beatmap has been played, and if it has, when was it last played.

§is_osz2: bool

Whether the beatmap was in osz2 format.

§folder_name: Option<String>

The folder name of the beatmapset within the “Songs” folder.

§last_online_check: DateTime<Utc>

When was the beatmap last checked against the online osu! repository.

§ignore_sounds: bool§ignore_skin: bool§disable_storyboard: bool§disable_video: bool§visual_override: bool§mysterious_short: Option<u16>

Quoting the wiki: “Unknown. Only present if version is less than 20140609”.

§mysterious_last_modified: u32

Who knows.

Perhaps an early attempt at “last modified”, but scrapped once peppy noticed it only had 32 bits.

§mania_scroll_speed: u8

Trait Implementations§

Source§

impl Clone for Beatmap

Source§

fn clone(&self) -> Beatmap

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Beatmap

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Beatmap

Source§

fn eq(&self, other: &Beatmap) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Beatmap

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.