pub struct Metadata {
pub title: Option<String>,
pub artist: Option<String>,
pub album: Option<String>,
pub entries: Vec<(String, String)>,
}Expand description
Stream and container metadata.
Contains textual metadata such as title, artist, and custom key-value pairs.
Fields§
§title: Option<String>Stream or container title.
artist: Option<String>Artist or author.
album: Option<String>Album name (for audio).
entries: Vec<(String, String)>Additional metadata entries.
Implementations§
Source§impl Metadata
impl Metadata
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Sets the title.
Sourcepub fn with_artist(self, artist: impl Into<String>) -> Self
pub fn with_artist(self, artist: impl Into<String>) -> Self
Sets the artist.
Sourcepub fn with_album(self, album: impl Into<String>) -> Self
pub fn with_album(self, album: impl Into<String>) -> Self
Sets the album.
Sourcepub fn with_entry(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn with_entry( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a custom metadata entry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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