#[non_exhaustive]pub struct Metadata {
pub icc: Option<Vec<u8>>,
pub exif: Option<Vec<u8>>,
pub xmp: Option<Vec<u8>>,
pub gamma: Option<f32>,
}Expand description
Embedded metadata of a picture, each as the raw bytes a consumer hands to its own parser.
icc— the ICC profile of an ICCcolr(rICC/prof).exif— the Exif payload from the TIFF header on (the HEIF A.2.1exif_tiff_header_offsetword and any bytes before the TIFF header are stripped on decode and re-written on encode).xmp— the XMP packet (application/rdf+xmlmimeitem).gamma— AVIF carries no gamma value; alwaysNoneon decode, ignored on encode.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.icc: Option<Vec<u8>>§exif: Option<Vec<u8>>§xmp: Option<Vec<u8>>§gamma: Option<f32>Implementations§
Trait Implementations§
impl StructuralPartialEq for Metadata
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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