pub struct Metadata {
pub title: String,
pub title_unicode: String,
pub artist: String,
pub artist_unicode: String,
pub creator: String,
pub version: String,
pub source: String,
pub tags: Vec<String>,
pub beatmap_id: i32,
pub beatmap_set_id: i32,
}Fields§
§title: String§title_unicode: String§artist: String§artist_unicode: String§creator: String§version: String§source: String§beatmap_id: i32§beatmap_set_id: i32Implementations§
Source§impl Metadata
impl Metadata
pub fn new( title: String, title_unicode: String, artist: String, artist_unicode: String, creator: String, version: String, source: String, tags: Vec<String>, beatmap_id: i32, beatmap_set_id: i32, ) -> Self
pub fn display_title(&self) -> &str
pub fn display_artist(&self) -> &str
pub fn add_tag(&mut self, tag: String)
pub fn remove_tag(&mut self, tag: &str)
pub fn has_tag(&self, tag: &str) -> bool
pub fn is_submitted(&self) -> bool
pub fn has_unicode(&self) -> bool
pub fn to_osu_format(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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