pub struct Metadata {Show 27 fields
pub codec: String,
pub codec_id: u32,
pub title: String,
pub artist: String,
pub album: String,
pub albumartist: String,
pub composer: String,
pub grouping: String,
pub comment: String,
pub genre: String,
pub year_string: String,
pub track_string: String,
pub disc_string: String,
pub mb_track_id: String,
pub track_number: Option<u32>,
pub disc_number: Option<u32>,
pub year: Option<u32>,
pub duration: Duration,
pub bitrate: u32,
pub sample_rate: u32,
pub filesize: u64,
pub samples: u64,
pub vbr: bool,
pub first_frame_offset: u64,
pub replaygain: ReplayGain,
pub album_art: Option<AlbumArt>,
pub cuesheet: Option<Cuesheet>,
}Expand description
Parsed metadata for one audio file.
Fields§
§codec: StringCodec label, e.g. "MP3", "FLAC", "Ogg", "AAC".
codec_id: u32Rockbox AFMT_* codec index (stable across releases).
title: StringTag strings — empty when the tag is absent.
artist: String§album: String§albumartist: String§composer: String§grouping: String§comment: String§genre: String§year_string: StringRaw year / track / disc strings as found in the tags.
track_string: String§disc_string: String§mb_track_id: StringMusicBrainz track ID — empty when untagged.
track_number: Option<u32>§disc_number: Option<u32>§year: Option<u32>§duration: DurationTrack length.
bitrate: u32Average bitrate in kbit/s.
sample_rate: u32Sample rate in Hz.
filesize: u64Audio payload size in bytes (excluding tag headers).
samples: u64Total PCM frames, when the container declares it (0 otherwise).
vbr: boolWhether the stream is variable bitrate.
first_frame_offset: u64Byte offset of the first audio frame (after leading tags).
replaygain: ReplayGain§album_art: Option<AlbumArt>§cuesheet: Option<Cuesheet>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