pub struct TrackMetadata {
pub source_path: PathBuf,
pub artist: Option<String>,
pub album: Option<String>,
pub album_artist: Option<String>,
pub disc: Option<String>,
pub track: Option<String>,
pub title: Option<String>,
}Expand description
Metadata fields used by the organization planner.
Every field except TrackMetadata::source_path is optional because tags are often
incomplete in real music libraries. Planning code falls back to Other for missing
artist or album values.
Fields§
§source_path: PathBufOriginal audio file path.
artist: Option<String>Track artist, usually the performer of one song.
album: Option<String>Album title.
album_artist: Option<String>Album artist, preferred for folder grouping when available.
disc: Option<String>Disc number as read from tags.
track: Option<String>Track number as read from tags.
title: Option<String>Track title.
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 (const: unstable) · 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 PartialEq for TrackMetadata
impl PartialEq for TrackMetadata
Source§fn eq(&self, other: &TrackMetadata) -> bool
fn eq(&self, other: &TrackMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq 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 UnsafeUnpin 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