pub struct MapMetadata {
pub difficulties: MapDifficulties,
pub duration: usize,
pub automapper: Option<String>,
pub characteristics: Vec<MapCharacteristics>,
pub level_author: String,
pub song_author: String,
pub song_name: String,
pub song_sub_name: String,
pub bpm: f32,
}Expand description
Metadata about a given map
Fields§
§difficulties: MapDifficultiesIncluded difficulties
duration: usizeSong duration
automapper: Option<String>Automapper name
If map was not autogenerated, this will be None
characteristics: Vec<MapCharacteristics>Map characteristic groups
Name of the author of the beatmap
Name of the author of the song
song_name: StringName of the map’s song
song_sub_name: StringSubname of the map’s song
bpm: f32Song beats per minute
Trait Implementations§
Source§impl Clone for MapMetadata
impl Clone for MapMetadata
Source§fn clone(&self) -> MapMetadata
fn clone(&self) -> MapMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MapMetadata
impl Debug for MapMetadata
Source§impl<'de> Deserialize<'de> for MapMetadata
impl<'de> Deserialize<'de> for MapMetadata
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 PartialEq for MapMetadata
impl PartialEq for MapMetadata
Source§impl Serialize for MapMetadata
impl Serialize for MapMetadata
impl StructuralPartialEq for MapMetadata
Auto Trait Implementations§
impl Freeze for MapMetadata
impl RefUnwindSafe for MapMetadata
impl Send for MapMetadata
impl Sync for MapMetadata
impl Unpin for MapMetadata
impl UnsafeUnpin for MapMetadata
impl UnwindSafe for MapMetadata
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