Struct audiotags::anytag::AnyTag

source ·
pub struct AnyTag<'a> {
Show 16 fields pub config: Config, pub title: Option<&'a str>, pub artists: Option<Vec<&'a str>>, pub date: Option<Timestamp>, pub year: Option<i32>, pub duration: Option<f64>, pub album_title: Option<&'a str>, pub album_artists: Option<Vec<&'a str>>, pub album_cover: Option<Picture<'a>>, pub track_number: Option<u16>, pub total_tracks: Option<u16>, pub disc_number: Option<u16>, pub total_discs: Option<u16>, pub genre: Option<&'a str>, pub composer: Option<&'a str>, pub comment: Option<&'a str>,
}

Fields§

§config: Config§title: Option<&'a str>§artists: Option<Vec<&'a str>>§date: Option<Timestamp>§year: Option<i32>§duration: Option<f64>§album_title: Option<&'a str>§album_artists: Option<Vec<&'a str>>§album_cover: Option<Picture<'a>>§track_number: Option<u16>§total_tracks: Option<u16>§disc_number: Option<u16>§total_discs: Option<u16>§genre: Option<&'a str>§composer: Option<&'a str>§comment: Option<&'a str>

Implementations§

source§

impl<'a> AnyTag<'a>

source

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

source

pub fn set_title(&mut self, title: &'a str)

source

pub fn artists(&self) -> Option<&[&str]>

source

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

source

pub fn set_date(&mut self, date: Timestamp)

source

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

source

pub fn set_year(&mut self, year: i32)

source

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

source

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

source

pub fn album_artists(&self) -> Option<&[&str]>

source

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

source

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

source

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

source

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

source

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

source

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

source

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

source§

impl AnyTag<'_>

Trait Implementations§

source§

impl AudioTagConfig for AnyTag<'_>

source§

fn config(&self) -> &Config

source§

fn set_config(&mut self, config: Config)

source§

impl<'a> Default for AnyTag<'a>

source§

fn default() -> AnyTag<'a>

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

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

source§

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

Converts to this type from the input type.
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<&'a Mp4Tag> for AnyTag<'a>

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(inp: AnyTag<'a>) -> 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<'a> From<AnyTag<'a>> for Mp4Tag

source§

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

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for AnyTag<'a>

§

impl<'a> Send for AnyTag<'a>

§

impl<'a> Sync for AnyTag<'a>

§

impl<'a> Unpin for AnyTag<'a>

§

impl<'a> UnwindSafe for AnyTag<'a>

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.