Struct id3::frame::EncapsulatedObject
source · pub struct EncapsulatedObject {
pub mime_type: String,
pub filename: String,
pub description: String,
pub data: Vec<u8>,
}
Expand description
The parsed contents of an general encapsulated object frame.
EncapsulatedObject
stores its own encoding, rather than using the same encoding as rest of the tag, because some apps (ex. Serato) tend to write multiple GEOB tags with different encodings.
Fields§
§mime_type: String
§filename: String
§description: String
§data: Vec<u8>
Trait Implementations§
source§impl Clone for EncapsulatedObject
impl Clone for EncapsulatedObject
source§fn clone(&self) -> EncapsulatedObject
fn clone(&self) -> EncapsulatedObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EncapsulatedObject
impl Debug for EncapsulatedObject
source§impl Display for EncapsulatedObject
impl Display for EncapsulatedObject
source§impl From<EncapsulatedObject> for Frame
impl From<EncapsulatedObject> for Frame
source§fn from(c: EncapsulatedObject) -> Self
fn from(c: EncapsulatedObject) -> Self
Converts to this type from the input type.
source§impl Hash for EncapsulatedObject
impl Hash for EncapsulatedObject
source§impl Ord for EncapsulatedObject
impl Ord for EncapsulatedObject
source§fn cmp(&self, other: &EncapsulatedObject) -> Ordering
fn cmp(&self, other: &EncapsulatedObject) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for EncapsulatedObject
impl PartialEq for EncapsulatedObject
source§fn eq(&self, other: &EncapsulatedObject) -> bool
fn eq(&self, other: &EncapsulatedObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EncapsulatedObject
impl PartialOrd for EncapsulatedObject
source§fn partial_cmp(&self, other: &EncapsulatedObject) -> Option<Ordering>
fn partial_cmp(&self, other: &EncapsulatedObject) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for EncapsulatedObject
impl StructuralPartialEq for EncapsulatedObject
Auto Trait Implementations§
impl RefUnwindSafe for EncapsulatedObject
impl Send for EncapsulatedObject
impl Sync for EncapsulatedObject
impl Unpin for EncapsulatedObject
impl UnwindSafe for EncapsulatedObject
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more