pub struct SongData {
pub id: String,
pub name: String,
pub album_id: String,
pub source_url: Option<String>,
pub lyric_url: Option<String>,
pub mv_url: Option<String>,
pub mv_cover_url: Option<String>,
pub artists: Vec<String>,
}Expand description
歌曲数据
包含歌曲的完整信息,包括音频文件URL、歌词URL等。
Fields§
§id: String歌曲唯一标识符(cid)
name: String歌曲名称
album_id: String所属专辑cid
source_url: Option<String>音频文件URL
lyric_url: Option<String>歌词文件URL
mv_url: Option<String>MV视频URL
mv_cover_url: Option<String>MV封面URL
artists: Vec<String>艺术家列表
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SongData
impl<'de> Deserialize<'de> for SongData
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 SongData
impl StructuralPartialEq for SongData
Auto Trait Implementations§
impl Freeze for SongData
impl RefUnwindSafe for SongData
impl Send for SongData
impl Sync for SongData
impl Unpin for SongData
impl UnwindSafe for SongData
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.