pub struct ImageMetadata {
pub format: OutputFormat,
pub width: u32,
pub height: u32,
pub bytes: u64,
pub sha256: String,
}Expand description
Verified metadata for encoded image bytes.
Fields§
§format: OutputFormatDetected encoded format.
width: u32Decoded width in pixels.
height: u32Decoded height in pixels.
bytes: u64Encoded byte length.
sha256: StringLowercase hexadecimal SHA-256 digest.
Trait Implementations§
Source§impl Clone for ImageMetadata
impl Clone for ImageMetadata
Source§fn clone(&self) -> ImageMetadata
fn clone(&self) -> ImageMetadata
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 ImageMetadata
impl Debug for ImageMetadata
impl Eq for ImageMetadata
Source§impl PartialEq for ImageMetadata
impl PartialEq for ImageMetadata
impl StructuralPartialEq for ImageMetadata
Auto Trait Implementations§
impl Freeze for ImageMetadata
impl RefUnwindSafe for ImageMetadata
impl Send for ImageMetadata
impl Sync for ImageMetadata
impl Unpin for ImageMetadata
impl UnsafeUnpin for ImageMetadata
impl UnwindSafe for ImageMetadata
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