Trait lofty::AudioTagEdit [−][src]
pub trait AudioTagEdit {}Show methods
fn title(&self) -> Option<&str>; fn set_title(&mut self, title: &str); fn remove_title(&mut self); fn artist_str(&self) -> Option<&str>; fn set_artist(&mut self, artist: &str); fn remove_artist(&mut self); fn year(&self) -> Option<i32>; fn set_year(&mut self, year: i32); fn remove_year(&mut self); fn album_title(&self) -> Option<&str>; fn set_album_title(&mut self, v: &str); fn remove_album_title(&mut self); fn album_artist_str(&self) -> Option<&str>; fn set_album_artist(&mut self, artist: &str); fn remove_album_artists(&mut self); fn album_cover(&self) -> Option<Picture<'_>>; fn set_album_cover(&mut self, cover: Picture<'_>); fn remove_album_cover(&mut self); fn track_number(&self) -> Option<u32>; fn set_track_number(&mut self, track_number: u32); fn remove_track_number(&mut self); fn total_tracks(&self) -> Option<u32>; fn set_total_tracks(&mut self, total_track: u32); fn remove_total_tracks(&mut self); fn disc_number(&self) -> Option<u32>; fn set_disc_number(&mut self, disc_number: u32); fn remove_disc_number(&mut self); fn total_discs(&self) -> Option<u32>; fn set_total_discs(&mut self, total_discs: u32); fn remove_total_discs(&mut self); fn artists_vec(&self) -> Option<Vec<&str>> { ... } fn album(&self) -> Album<'_> { ... } fn album_artists_vec(&self) -> Option<Vec<&str>> { ... } fn track(&self) -> (Option<u32>, Option<u32>) { ... } fn set_track(&mut self, track: u32) { ... } fn remove_track(&mut self) { ... } fn disc(&self) -> (Option<u32>, Option<u32>) { ... } fn set_disc(&mut self, disc: u32) { ... } fn remove_disc(&mut self) { ... }
Implementors of this trait are able to read and write audio metadata.
Constructor methods e.g. from_file
should be implemented separately.