Enum id3::Content
[−]
[src]
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]
fn text(&self) -> Option<&str>
[src]
Returns the Text
or None if the value is not Text
.
fn extended_text(&self) -> Option<&ExtendedText>
[src]
Returns the ExtendedText
or None if the value is not ExtendedText
.
fn link(&self) -> Option<&str>
[src]
Returns the Link
or None if the value is not Link
.
fn extended_link(&self) -> Option<&ExtendedLink>
[src]
Returns the ExtendedLink
or None if the value is not ExtendedLink
.
fn comment(&self) -> Option<&Comment>
[src]
Returns the Comment
or None if the value is not Comment
.
fn lyrics(&self) -> Option<&Lyrics>
[src]
Returns the Lyrics
or None if the value is not Lyrics
.
fn picture(&self) -> Option<&Picture>
[src]
Returns the Picture
or None if the value is not Picture
.
fn unknown(&self) -> Option<&[u8]>
[src]
Returns the Unknown
or None if the value is not Unknown
.
Trait Implementations
impl Clone for Content
[src]
fn clone(&self) -> Content
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Content
[src]
impl PartialEq for Content
[src]
fn eq(&self, __arg_0: &Content) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Content) -> bool
[src]
This method tests for !=
.