pub struct Id3v2Tag { /* private fields */ }

Implementations§

source§

impl Id3v2Tag

source

pub fn new() -> Self

source

pub fn read_from_path(path: impl AsRef<Path>) -> Result<Self>

Trait Implementations§

source§

impl AudioTagConfig for Id3v2Tag

source§

fn config(&self) -> &Config

source§

fn set_config(&mut self, config: Config)

source§

impl AudioTagEdit for Id3v2Tag

source§

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

source§

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

source§

fn remove_title(&mut self)

source§

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

source§

fn set_artist(&mut self, artist: &str)

source§

fn remove_artist(&mut self)

source§

fn date(&self) -> Option<Timestamp>

source§

fn set_date(&mut self, timestamp: Timestamp)

source§

fn remove_date(&mut self)

source§

fn year(&self) -> Option<i32>

source§

fn set_year(&mut self, year: i32)

source§

fn remove_year(&mut self)

source§

fn duration(&self) -> Option<f64>

source§

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

source§

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

source§

fn remove_album_title(&mut self)

source§

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

source§

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

source§

fn remove_album_artist(&mut self)

source§

fn album_cover(&self) -> Option<Picture<'_>>

source§

fn set_album_cover(&mut self, cover: Picture<'_>)

source§

fn remove_album_cover(&mut self)

source§

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

source§

fn set_composer(&mut self, composer: String)

source§

fn remove_composer(&mut self)

source§

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

source§

fn set_track_number(&mut self, track: u16)

source§

fn remove_track_number(&mut self)

source§

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

source§

fn set_total_tracks(&mut self, total_track: u16)

source§

fn remove_total_tracks(&mut self)

source§

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

source§

fn set_disc_number(&mut self, disc_number: u16)

source§

fn remove_disc_number(&mut self)

source§

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

source§

fn set_total_discs(&mut self, total_discs: u16)

source§

fn remove_total_discs(&mut self)

source§

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

source§

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

source§

fn remove_genre(&mut self)

source§

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

source§

fn set_comment(&mut self, comment: String)

source§

fn remove_comment(&mut self)

source§

fn artists(&self) -> Option<Vec<&str>>

source§

fn add_artist(&mut self, artist: &str)

source§

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

source§

fn set_album(&mut self, album: Album<'_>)

source§

fn remove_album(&mut self)

source§

fn album_artists(&self) -> Option<Vec<&str>>

source§

fn add_album_artist(&mut self, artist: &str)

source§

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

source§

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

source§

fn remove_track(&mut self)

source§

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

source§

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

source§

fn remove_disc(&mut self)

source§

impl AudioTagWrite for Id3v2Tag

source§

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

source§

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

source§

impl Default for Id3v2Tag

source§

fn default() -> Id3v2Tag

Returns the “default value” for a type. Read more
source§

impl<'a> From<&'a Id3v2Tag> for AnyTag<'a>

source§

fn from(inp: &'a Id3v2Tag) -> Self

Converts to this type from the input type.
source§

impl<'a> From<AnyTag<'a>> for Id3v2Tag

source§

fn from(inp: AnyTag<'a>) -> Self

Converts to this type from the input type.
source§

impl From<Box<dyn AudioTag + Send + Sync>> for Id3v2Tag

source§

fn from(inp: Box<dyn AudioTag + Send + Sync>) -> Self

Converts to this type from the input type.
source§

impl From<Id3v2Tag> for Id3v2InnerTag

source§

fn from(inp: Id3v2Tag) -> Self

Converts to this type from the input type.
source§

impl From<Tag> for Id3v2Tag

source§

fn from(inp: Id3v2InnerTag) -> Self

Converts to this type from the input type.
source§

impl ToAny for Id3v2Tag

source§

fn to_any(&self) -> &dyn Any

source§

fn to_any_mut(&mut self) -> &mut dyn Any

source§

impl ToAnyTag for Id3v2Tag

source§

fn to_anytag(&self) -> AnyTag<'_>

source§

fn to_dyn_tag(&self, tag_type: TagType) -> Box<dyn AudioTag>

Convert the tag type, which can be lossy.
source§

impl AudioTag for Id3v2Tag

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.