Enum id3::Content[][src]

pub enum Content {
    Text(String),
    ExtendedText(ExtendedText),
    Link(String),
    ExtendedLink(ExtendedLink),
    Comment(Comment),
    Lyrics(Lyrics),
    SynchronisedLyrics(SynchronisedLyrics),
    Picture(Picture),
    EncapsulatedObject(EncapsulatedObject),
    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).

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

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).

SynchronisedLyrics(SynchronisedLyrics)

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

Picture(Picture)

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

EncapsulatedObject(EncapsulatedObject)

A value containing the parsed contents of a general encapsulated object frame (GEOB).

Unknown(Vec<u8>)

A value containing the bytes of a unknown frame.

Implementations

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 encapsulated_object(&self) -> Option<&EncapsulatedObject>[src]

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

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 synchronised_lyrics(&self) -> Option<&SynchronisedLyrics>[src]

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

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 Clone for Content[src]

impl Debug for Content[src]

impl Display for Content[src]

impl Eq for Content[src]

impl Hash for Content[src]

impl PartialEq<Content> for Content[src]

impl StructuralEq for Content[src]

impl StructuralPartialEq for Content[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.