pub struct ImageMetadata {Show 17 fields
pub date_taken: Option<DateTime<Utc>>,
pub date_taken_source: Option<String>,
pub had_exif_date_field: bool,
pub gps_latitude: Option<f64>,
pub gps_longitude: Option<f64>,
pub camera_make: Option<String>,
pub camera_model: Option<String>,
pub iso: Option<i32>,
pub aperture: Option<String>,
pub shutter_speed: Option<String>,
pub focal_length: Option<String>,
pub lens_model: Option<String>,
pub flash: Option<String>,
pub gps_altitude: Option<f64>,
pub width: Option<u32>,
pub height: Option<u32>,
pub orientation: Option<u16>,
}Expand description
Extracted metadata from an image
Fields§
§date_taken: Option<DateTime<Utc>>§date_taken_source: Option<String>§had_exif_date_field: boolTrue when EXIF date tags exist, even if parsing fails.
gps_latitude: Option<f64>§gps_longitude: Option<f64>§camera_make: Option<String>§camera_model: Option<String>§iso: Option<i32>§aperture: Option<String>§shutter_speed: Option<String>§focal_length: Option<String>§lens_model: Option<String>§flash: Option<String>§gps_altitude: Option<f64>§width: Option<u32>§height: Option<u32>§orientation: Option<u16>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
Source§impl Default for ImageMetadata
impl Default for ImageMetadata
Source§fn default() -> ImageMetadata
fn default() -> ImageMetadata
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().