pub struct ChartItem {
pub level: String,
pub md5: Option<String>,
pub sha256: Option<String>,
pub title: Option<String>,
pub subtitle: Option<String>,
pub artist: Option<String>,
pub subartist: Option<String>,
pub url: Option<String>,
pub url_diff: Option<String>,
pub extra: Value,
}Expand description
谱面数据项。
描述单个 BMS 文件的相关元数据与资源链接。为空字符串的可选字段在反序列化时会
自动转换为 None,以提升数据质量。
Fields§
§level: String难度等级,如 “0”
md5: Option<String>文件的MD5哈希值
sha256: Option<String>文件的SHA256哈希值
title: Option<String>歌曲标题
subtitle: Option<String>歌曲副标题
artist: Option<String>艺术家名称
subartist: Option<String>歌曲副艺术家
url: Option<String>文件下载链接
url_diff: Option<String>差分文件下载链接(可选)
extra: ValueAvailable on crate feature
serde only.额外数据
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChartItem
Available on crate feature serde only.
impl<'de> Deserialize<'de> for ChartItem
Available on crate feature
serde only.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 ChartItem
impl StructuralPartialEq for ChartItem
Auto Trait Implementations§
impl Freeze for ChartItem
impl RefUnwindSafe for ChartItem
impl Send for ChartItem
impl Sync for ChartItem
impl Unpin for ChartItem
impl UnwindSafe for ChartItem
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.