pub struct ScoreItem {
pub level: String,
pub id: Option<u64>,
pub md5: Option<String>,
pub sha256: Option<String>,
pub title: Option<String>,
pub artist: Option<String>,
pub url: Option<String>,
pub url_diff: Option<String>,
}Expand description
分数数据项
表示一个BMS文件的分数数据,包含文件信息和下载链接。 所有字段都是可选的,因为不同的BMS表格可能有不同的字段。
Fields§
§level: String难度等级,如 “0”
id: Option<u64>唯一标识符
md5: Option<String>文件的MD5哈希值
sha256: Option<String>文件的SHA256哈希值
title: Option<String>歌曲标题
artist: Option<String>艺术家名称
url: Option<String>文件下载链接
url_diff: Option<String>差分文件下载链接(可选)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScoreItem
impl<'de> Deserialize<'de> for ScoreItem
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
impl Eq for ScoreItem
impl StructuralPartialEq for ScoreItem
Auto Trait Implementations§
impl Freeze for ScoreItem
impl RefUnwindSafe for ScoreItem
impl Send for ScoreItem
impl Sync for ScoreItem
impl Unpin for ScoreItem
impl UnwindSafe for ScoreItem
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.