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 duplicate 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§impl PartialOrd for EncapsulatedObject
impl PartialOrd for EncapsulatedObject
impl Eq for EncapsulatedObject
impl StructuralPartialEq for EncapsulatedObject
Auto Trait Implementations§
impl Freeze for EncapsulatedObject
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