[][src]Trait audiotags::AudioTagsIo

pub trait AudioTagsIo {
    fn title(&self) -> Option<&str>;
fn set_title(&mut self, title: &str);
fn remove_title(&mut self);
fn artist(&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(&self) -> Option<&str>;
fn set_album_artist(&mut self, v: &str);
fn remove_album_artist(&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<u16>;
fn set_track_number(&mut self, track_number: u16);
fn remove_track_number(&mut self);
fn total_tracks(&self) -> Option<u16>;
fn set_total_tracks(&mut self, total_track: u16);
fn remove_total_tracks(&mut self);
fn disc_number(&self) -> Option<u16>;
fn set_disc_number(&mut self, disc_number: u16);
fn remove_disc_number(&mut self);
fn total_discs(&self) -> Option<u16>;
fn set_total_discs(&mut self, total_discs: u16);
fn remove_total_discs(&mut self);
fn write_to(&mut self, file: &mut File) -> Result<(), Box<dyn Error>>;
fn write_to_path(&mut self, path: &str) -> Result<(), Box<dyn Error>>; fn album(&self) -> Option<Album> { ... }
fn set_album(&mut self, album: Album) { ... }
fn remove_album(&mut self) { ... }
fn track(&self) -> (Option<u16>, Option<u16>) { ... }
fn set_track(&mut self, track: (u16, u16)) { ... }
fn remove_track(&mut self) { ... }
fn disc(&self) -> (Option<u16>, Option<u16>) { ... }
fn set_disc(&mut self, disc: (u16, u16)) { ... }
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.

Required methods

fn title(&self) -> Option<&str>

fn set_title(&mut self, title: &str)

fn remove_title(&mut self)

fn artist(&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(&self) -> Option<&str>

fn set_album_artist(&mut self, v: &str)

fn remove_album_artist(&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<u16>

fn set_track_number(&mut self, track_number: u16)

fn remove_track_number(&mut self)

fn total_tracks(&self) -> Option<u16>

fn set_total_tracks(&mut self, total_track: u16)

fn remove_total_tracks(&mut self)

fn disc_number(&self) -> Option<u16>

fn set_disc_number(&mut self, disc_number: u16)

fn remove_disc_number(&mut self)

fn total_discs(&self) -> Option<u16>

fn set_total_discs(&mut self, total_discs: u16)

fn remove_total_discs(&mut self)

fn write_to(&mut self, file: &mut File) -> Result<(), Box<dyn Error>>

fn write_to_path(&mut self, path: &str) -> Result<(), Box<dyn Error>>

Loading content...

Provided methods

fn album(&self) -> Option<Album>

fn set_album(&mut self, album: Album)

fn remove_album(&mut self)

fn track(&self) -> (Option<u16>, Option<u16>)

fn set_track(&mut self, track: (u16, u16))

fn remove_track(&mut self)

fn disc(&self) -> (Option<u16>, Option<u16>)

fn set_disc(&mut self, disc: (u16, u16))

fn remove_disc(&mut self)

Loading content...

Implementors

Loading content...