[][src]Enum id3::Content

pub enum Content {
    Text(String),
    ExtendedText(ExtendedText),
    Link(String),
    ExtendedLink(ExtendedLink),
    Comment(Comment),
    Lyrics(Lyrics),
    Picture(Picture),
    Unknown(Vec<u8>),
}

The decoded contents of a frame.

Variants

Text(String)

A value containing the parsed contents of a text frame.

ExtendedText(ExtendedText)

A value containing the parsed contents of a user defined text frame (TXXX).

Link(String)

A value containing the parsed contents of a web link frame.

ExtendedLink(ExtendedLink)

A value containing the parsed contents of a user defined web link frame (WXXX).

Comment(Comment)

A value containing the parsed contents of a comment frame (COMM).

Lyrics(Lyrics)

A value containing the parsed contents of a lyrics frame (USLT).

Picture(Picture)

A value containing the parsed contents of a picture frame (APIC).

Unknown(Vec<u8>)

A value containing the bytes of a unknown frame.

Methods

impl Content[src]

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

Returns the Text or None if the value is not Text.

pub fn extended_text(&self) -> Option<&ExtendedText>[src]

Returns the ExtendedText or None if the value is not ExtendedText.

Returns the Link or None if the value is not Link.

Returns the ExtendedLink or None if the value is not ExtendedLink.

pub fn comment(&self) -> Option<&Comment>[src]

Returns the Comment or None if the value is not Comment.

pub fn lyrics(&self) -> Option<&Lyrics>[src]

Returns the Lyrics or None if the value is not Lyrics.

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

Returns the Picture or None if the value is not Picture.

pub fn unknown(&self) -> Option<&[u8]>[src]

Returns the Unknown or None if the value is not Unknown.

Trait Implementations

impl Eq for Content[src]

impl Clone for Content[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Content> for Content[src]

impl Hash for Content[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Content[src]

Auto Trait Implementations

impl Send for Content

impl Sync for Content

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]