pub struct LyricsData {
pub id: u64,
pub name: String,
pub track_name: String,
pub artist_name: String,
pub album_name: Option<String>,
pub duration: Option<f64>,
pub instrumental: bool,
pub plain_lyrics: Option<String>,
pub synced_lyrics: Option<String>,
}
Fields§
§id: u64
lyrics id in LRCLib database
name: String
maybe deprecated fallback of track_name
track_name: String
Title of the track
artist_name: String
Track’s artist name
album_name: Option<String>
Track’s album name
duration: Option<f64>
duration in seconds
instrumental: bool
instrumental means both plain_lyrics and synced_lyrics are empty.
plain_lyrics: Option<String>
plain lyrics without timestamp
synced_lyrics: Option<String>
synced lyrics as standard LRC
Trait Implementations§
Source§impl Debug for LyricsData
impl Debug for LyricsData
Source§impl Default for LyricsData
impl Default for LyricsData
Source§fn default() -> LyricsData
fn default() -> LyricsData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LyricsData
impl<'de> Deserialize<'de> for LyricsData
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
Auto Trait Implementations§
impl Freeze for LyricsData
impl RefUnwindSafe for LyricsData
impl Send for LyricsData
impl Sync for LyricsData
impl Unpin for LyricsData
impl UnwindSafe for LyricsData
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