Enum lofty::id3::v2::FrameValue   
source · #[non_exhaustive]
pub enum FrameValue {
    Comment(LanguageFrame),
    UnSyncText(LanguageFrame),
    Text {
        encoding: TextEncoding,
        value: String,
    },
    UserText(EncodedTextFrame),
    URL(String),
    UserURL(EncodedTextFrame),
    Picture {
        encoding: TextEncoding,
        picture: Picture,
    },
    Popularimeter(Popularimeter),
    Binary(Vec<u8>),
}Expand description
The value of an ID3v2 frame
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Comment(LanguageFrame)
Represents a “COMM” frame
Due to the amount of information needed, it is contained in a separate struct, LanguageFrame
UnSyncText(LanguageFrame)
Represents a “USLT” frame
Due to the amount of information needed, it is contained in a separate struct, LanguageFrame
Text
Represents a “T…” (excluding TXXX) frame
NOTE: Text frame descriptions must be unique
UserText(EncodedTextFrame)
Represents a “TXXX” frame
Due to the amount of information needed, it is contained in a separate struct, EncodedTextFrame
URL(String)
Represents a “W…” (excluding WXXX) frame
NOTE: URL frame descriptions must be unique
No encoding needs to be provided as all URLs are TextEncoding::Latin1
UserURL(EncodedTextFrame)
Represents a “WXXX” frame
Due to the amount of information needed, it is contained in a separate struct, EncodedTextFrame
Picture
Represents an “APIC” or “PIC” frame
Popularimeter(Popularimeter)
Represents a “POPM” frame
Binary(Vec<u8>)
Binary data
NOTES:
- This is used for “GEOB” and “SYLT” frames, see
GeneralEncapsulatedObject::parseandSynchronizedText::parserespectively
- This is used for all frames with an ID of FrameID::Outdated
- This is used for unknown frames
Trait Implementations§
source§impl Clone for FrameValue
 
impl Clone for FrameValue
source§fn clone(&self) -> FrameValue
 
fn clone(&self) -> FrameValue
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for FrameValue
 
impl Debug for FrameValue
source§impl From<ItemValue> for FrameValue
 
impl From<ItemValue> for FrameValue
source§impl Hash for FrameValue
 
impl Hash for FrameValue
source§impl<'a> Into<FrameValue> for &'a ItemValue
 
impl<'a> Into<FrameValue> for &'a ItemValue
source§fn into(self) -> FrameValue
 
fn into(self) -> FrameValue
source§impl PartialEq<FrameValue> for FrameValue
 
impl PartialEq<FrameValue> for FrameValue
source§fn eq(&self, other: &FrameValue) -> bool
 
fn eq(&self, other: &FrameValue) -> bool
self and other values to be equal, and is used
by ==.