pub struct TrackMetadata {
pub album: Option<String>,
pub album_artist: Option<String>,
pub album_artists: Option<Vec<String>>,
pub artist: Option<String>,
pub artists: Option<Vec<String>>,
pub title: Option<String>,
pub duration: Option<Duration>,
pub genre: Option<String>,
pub cover: Option<Picture>,
pub lyric_frames: Option<Vec<Lyrics>>,
pub file_times: Option<FileTimes>,
pub file_type: Option<FileType>,
}Expand description
For ID3v2 tags consult https://exiftool.org/TagNames/ID3.html#v2_4.
For common-usage consult https://kodi.wiki/view/Music_tagging#Tags_Kodi_reads.
For common TXX tags consult https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html#artists.
Fields§
§album: Option<String>ID3v2 tag TALB or equivalent
album_artist: Option<String>ID3v2 tag TPE2 or equivalent
album_artists: Option<Vec<String>>ID3v2 tag TXX:ALBUMARTISTS https://kodi.wiki/view/Music_tagging#Tags_Kodi_reads
artist: Option<String>ID3v2 tag TPE1 or equivalent
artists: Option<Vec<String>>ID3v2 tag TXX:ARTISTS https://picard-docs.musicbrainz.org/en/appendices/tag_mapping.html
title: Option<String>ID3v2 tag TIT2 or equivalent
duration: Option<Duration>Total duration, this may or may not come from a tag
genre: Option<String>ID3v2 tag TCON or equivalent
cover: Option<Picture>ID3v2 tag APIC or equivalent
lyric_frames: Option<Vec<Lyrics>>ID3v2 tags USLT or equivalent
file_times: Option<FileTimes>§file_type: Option<FileType>Trait Implementations§
Source§impl Clone for TrackMetadata
impl Clone for TrackMetadata
Source§fn clone(&self) -> TrackMetadata
fn clone(&self) -> TrackMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackMetadata
impl Debug for TrackMetadata
Source§impl Default for TrackMetadata
impl Default for TrackMetadata
Source§fn default() -> TrackMetadata
fn default() -> TrackMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for TrackMetadata
impl PartialEq for TrackMetadata
impl StructuralPartialEq for TrackMetadata
Auto Trait Implementations§
impl Freeze for TrackMetadata
impl RefUnwindSafe for TrackMetadata
impl Send for TrackMetadata
impl Sync for TrackMetadata
impl Unpin for TrackMetadata
impl UnwindSafe for TrackMetadata
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().