#[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
sourceimpl Clone for FrameValue
impl Clone for FrameValue
sourcefn clone(&self) -> FrameValue
fn clone(&self) -> FrameValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FrameValue
impl Debug for FrameValue
sourceimpl From<ItemValue> for FrameValue
impl From<ItemValue> for FrameValue
sourceimpl Hash for FrameValue
impl Hash for FrameValue
sourceimpl<'a> Into<FrameValue> for &'a ItemValue
impl<'a> Into<FrameValue> for &'a ItemValue
sourcefn into(self) -> FrameValue
fn into(self) -> FrameValue
Converts this type into the (usually inferred) input type.
sourceimpl PartialEq<FrameValue> for FrameValue
impl PartialEq<FrameValue> for FrameValue
sourcefn eq(&self, other: &FrameValue) -> bool
fn eq(&self, other: &FrameValue) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &FrameValue) -> bool
fn ne(&self, other: &FrameValue) -> bool
This method tests for !=.
impl Eq for FrameValue
impl StructuralEq for FrameValue
impl StructuralPartialEq for FrameValue
Auto Trait Implementations
impl RefUnwindSafe for FrameValue
impl Send for FrameValue
impl Sync for FrameValue
impl Unpin for FrameValue
impl UnwindSafe for FrameValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more