Struct rosu_v2::model::beatmap::BeatmapsetCompact
source · pub struct BeatmapsetCompact {Show 18 fields
pub artist: String,
pub artist_unicode: Option<String>,
pub covers: BeatmapsetCovers,
pub creator_name: Username,
pub creator_id: u32,
pub favourite_count: u32,
pub genre: Option<Genre>,
pub hype: Option<BeatmapsetHype>,
pub language: Option<Language>,
pub mapset_id: u32,
pub nsfw: bool,
pub playcount: u32,
pub preview_url: String,
pub source: String,
pub status: RankStatus,
pub title: String,
pub title_unicode: Option<String>,
pub video: bool,
}
Expand description
Represents a beatmapset.
Fields§
§artist: String
§artist_unicode: Option<String>
§covers: BeatmapsetCovers
§creator_name: Username
§creator_id: u32
§favourite_count: u32
§genre: Option<Genre>
§hype: Option<BeatmapsetHype>
§language: Option<Language>
§mapset_id: u32
§nsfw: bool
§playcount: u32
§preview_url: String
Full URL, i.e. b.ppy.sh/preview/{mapset_id}.mp3
source: String
§status: RankStatus
§title: String
§title_unicode: Option<String>
§video: bool
Implementations§
source§impl BeatmapsetCompact
impl BeatmapsetCompact
pub fn get_creator<'o>(&self, osu: &'o Osu) -> GetUser<'o> ⓘ
Trait Implementations§
source§impl Clone for BeatmapsetCompact
impl Clone for BeatmapsetCompact
source§fn clone(&self) -> BeatmapsetCompact
fn clone(&self) -> BeatmapsetCompact
Returns a copy of the value. Read more
1.0.0 · 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 BeatmapsetCompact
impl Debug for BeatmapsetCompact
source§impl<'de> Deserialize<'de> for BeatmapsetCompact
impl<'de> Deserialize<'de> for BeatmapsetCompact
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<Beatmapset> for BeatmapsetCompact
impl From<Beatmapset> for BeatmapsetCompact
source§fn from(mapset: Beatmapset) -> Self
fn from(mapset: Beatmapset) -> Self
Converts to this type from the input type.
source§impl PartialEq<BeatmapsetCompact> for BeatmapsetCompact
impl PartialEq<BeatmapsetCompact> for BeatmapsetCompact
source§fn eq(&self, other: &BeatmapsetCompact) -> bool
fn eq(&self, other: &BeatmapsetCompact) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BeatmapsetCompact
impl StructuralEq for BeatmapsetCompact
impl StructuralPartialEq for BeatmapsetCompact
Auto Trait Implementations§
impl RefUnwindSafe for BeatmapsetCompact
impl Send for BeatmapsetCompact
impl Sync for BeatmapsetCompact
impl Unpin for BeatmapsetCompact
impl UnwindSafe for BeatmapsetCompact
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.