Enum id3::frame::Content [−][src]
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).
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).
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
.
pub fn link(&self) -> Option<&str>
[src]
Returns the Link
or None if the value is not Link
.
pub fn extended_link(&self) -> Option<&ExtendedLink>
[src]
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Content> for Content
[src]
impl StructuralEq for Content
[src]
impl StructuralPartialEq for Content
[src]
Auto Trait Implementations
impl RefUnwindSafe for Content
[src]
impl Send for Content
[src]
impl Sync for Content
[src]
impl Unpin for Content
[src]
impl UnwindSafe for Content
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,