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 front_cover(&self) -> Option<Picture>;
fn set_front_cover(&mut self, cover: Picture);
fn remove_front_cover(&mut self);
fn back_cover(&self) -> Option<Picture>;
fn set_back_cover(&mut self, cover: Picture);
fn remove_back_cover(&mut self);
fn pictures(&self) -> Option<Cow<'static, [Picture]>>;
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 date(&self) -> Option<String> { ... }
fn set_date(&mut self, date: &str) { ... }
fn remove_date(&mut self) { ... }
fn album(&self) -> Album<'_> { ... }
fn album_artists_vec(&self) -> Option<Vec<&str>> { ... }
fn album_covers(&self) -> (Option<Picture>, Option<Picture>) { ... }
fn remove_album_covers(&mut self) { ... }
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 remove_disc(&mut self) { ... }
}
Expand description

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>[src]

Returns the track title

fn set_title(&mut self, title: &str)[src]

Sets the track title

fn remove_title(&mut self)[src]

Removes the track title

fn artist_str(&self) -> Option<&str>[src]

Returns the artist(s) as a string

fn set_artist(&mut self, artist: &str)[src]

Sets the artist string

fn remove_artist(&mut self)[src]

Removes the artist string

fn year(&self) -> Option<i32>[src]

Returns the track year

fn set_year(&mut self, year: i32)[src]

Sets the track year

fn remove_year(&mut self)[src]

Removes the track year

fn album_title(&self) -> Option<&str>[src]

Returns the album title

fn set_album_title(&mut self, v: &str)[src]

Sets the album title

fn remove_album_title(&mut self)[src]

Removes the album title

fn album_artist_str(&self) -> Option<&str>[src]

Returns the album artist string

fn set_album_artist(&mut self, artist: &str)[src]

Sets the album artist string

fn remove_album_artists(&mut self)[src]

Removes the album artist string

fn front_cover(&self) -> Option<Picture>[src]

Returns the front cover

fn set_front_cover(&mut self, cover: Picture)[src]

Sets the front cover

fn remove_front_cover(&mut self)[src]

Removes the front cover

fn back_cover(&self) -> Option<Picture>[src]

Returns the front cover

fn set_back_cover(&mut self, cover: Picture)[src]

Sets the front cover

fn remove_back_cover(&mut self)[src]

Removes the front cover

fn pictures(&self) -> Option<Cow<'static, [Picture]>>[src]

Returns an Iterator over all pictures stored in the track

fn track_number(&self) -> Option<u32>[src]

Returns the track number

fn set_track_number(&mut self, track_number: u32)[src]

Sets the track number

fn remove_track_number(&mut self)[src]

Removes the track number

fn total_tracks(&self) -> Option<u32>[src]

Returns the total tracks

fn set_total_tracks(&mut self, total_track: u32)[src]

Sets the total tracks

fn remove_total_tracks(&mut self)[src]

Removes the total tracks

fn disc_number(&self) -> Option<u32>[src]

Returns the disc number

fn set_disc_number(&mut self, disc_number: u32)[src]

Sets the disc number

fn remove_disc_number(&mut self)[src]

Removes the disc number

fn total_discs(&self) -> Option<u32>[src]

Returns the total discs

fn set_total_discs(&mut self, total_discs: u32)[src]

Sets the total discs

fn remove_total_discs(&mut self)[src]

Removes the total discs

Provided methods

fn artists_vec(&self) -> Option<Vec<&str>>[src]

Splits the artist string into a Vec

fn date(&self) -> Option<String>[src]

Returns the track date

fn set_date(&mut self, date: &str)[src]

Sets the track date

fn remove_date(&mut self)[src]

Removes the track date

fn album(&self) -> Album<'_>[src]

Returns the track’s Album

fn album_artists_vec(&self) -> Option<Vec<&str>>[src]

Splits the artist string into a Vec

fn album_covers(&self) -> (Option<Picture>, Option<Picture>)[src]

Returns the front and back album covers

fn remove_album_covers(&mut self)[src]

Removes both album covers

fn track(&self) -> (Option<u32>, Option<u32>)[src]

Returns the track number and total tracks

fn set_track(&mut self, track: u32)[src]

Sets the track number

fn remove_track(&mut self)[src]

Removes the track number and total tracks

fn disc(&self) -> (Option<u32>, Option<u32>)[src]

Returns the disc number and total discs

fn remove_disc(&mut self)[src]

Removes the disc number and total discs

Implementors