pub struct WebpMetadataOwned {
pub icc: Option<Vec<u8>>,
pub exif: Option<Vec<u8>>,
pub xmp: Option<Vec<u8>>,
}Expand description
Owned file-level metadata — the registry-side counterpart of the borrowed
WebpMetadata.
Carries owned Vec<u8> payloads so it can be stored on an encoder /
codec-parameters struct without borrowing the caller’s buffers. Convert
to the borrowed form for an encode call with Self::as_borrowed.
Fields§
§icc: Option<Vec<u8>>§2.7.1.4 ICCP ICC color-profile payload to embed, if any.
exif: Option<Vec<u8>>§2.7.1.5 EXIF Exif payload to embed, if any.
xmp: Option<Vec<u8>>§2.7.1.5 XMP XMP payload to embed, if any.
Implementations§
Source§impl WebpMetadataOwned
impl WebpMetadataOwned
Sourcepub fn as_borrowed(&self) -> WebpMetadata<'_>
pub fn as_borrowed(&self) -> WebpMetadata<'_>
Borrow this owned metadata as a WebpMetadata for an encode call.
Trait Implementations§
Source§impl Clone for WebpMetadataOwned
impl Clone for WebpMetadataOwned
Source§fn clone(&self) -> WebpMetadataOwned
fn clone(&self) -> WebpMetadataOwned
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WebpMetadataOwned
impl Debug for WebpMetadataOwned
Source§impl Default for WebpMetadataOwned
impl Default for WebpMetadataOwned
Source§fn default() -> WebpMetadataOwned
fn default() -> WebpMetadataOwned
Returns the “default value” for a type. Read more
impl Eq for WebpMetadataOwned
Source§impl From<WebpMetadataOwned> for WebpFileMetadata
impl From<WebpMetadataOwned> for WebpFileMetadata
Source§fn from(m: WebpMetadataOwned) -> Self
fn from(m: WebpMetadataOwned) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WebpMetadataOwned
impl PartialEq for WebpMetadataOwned
Source§fn eq(&self, other: &WebpMetadataOwned) -> bool
fn eq(&self, other: &WebpMetadataOwned) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebpMetadataOwned
Auto Trait Implementations§
impl Freeze for WebpMetadataOwned
impl RefUnwindSafe for WebpMetadataOwned
impl Send for WebpMetadataOwned
impl Sync for WebpMetadataOwned
impl Unpin for WebpMetadataOwned
impl UnsafeUnpin for WebpMetadataOwned
impl UnwindSafe for WebpMetadataOwned
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