pub struct Metadata {
pub timestamp: Option<i64>,
pub title: Option<String>,
pub artist: Option<String>,
pub album_artist: Option<String>,
pub album: Option<String>,
pub artwork_url: Option<String>,
pub year: Option<i32>,
pub track: Option<u32>,
pub progress: Option<Progress>,
}Expand description
The metadata object of ServerState.
Fields§
§timestamp: Option<i64>Server clock time in microseconds at which this metadata becomes valid.
title: Option<String>Track title.
artist: Option<String>Track artist.
album_artist: Option<String>Album artist.
album: Option<String>Album title.
artwork_url: Option<String>URL of the artwork image.
year: Option<i32>Release year.
track: Option<u32>Track number within its album.
progress: Option<Progress>Playback progress; absent clears the known position.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Metadata
impl<'de> Deserialize<'de> for Metadata
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 Metadata
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Forget for Metadata
impl Freeze for Metadata
impl Move for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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