pub struct ImageMetadata {
pub taken: Option<DateTime>,
pub camera_make: Option<String>,
pub camera_model: Option<String>,
pub lens_model: Option<String>,
pub exposure_time: Option<f64>,
pub f_number: Option<f64>,
pub iso: Option<u32>,
pub focal_length: Option<f64>,
pub equivalent_focal_length: Option<f64>,
pub exposure_bias: Option<f64>,
pub flash_fired: Option<bool>,
pub location: Option<Location>,
}Expand description
What an image’s file says of how it was taken: EXIF’s fields a photo app shows. A field is
None where the file says nothing.
Fields§
§taken: Option<DateTime>When it was taken, as the camera’s clock read it: EXIF’s DateTimeOriginal, with its
OffsetTimeOriginal.
camera_make: Option<String>The camera’s maker, as the camera names itself: EXIF’s Make.
camera_model: Option<String>The camera’s model, as the camera names itself: EXIF’s Model.
lens_model: Option<String>The lens, as the camera names it: EXIF’s LensModel.
exposure_time: Option<f64>How long the shutter was open, in seconds: EXIF’s ExposureTime.
f_number: Option<f64>The aperture, as an f-number: EXIF’s FNumber.
iso: Option<u32>The sensor’s sensitivity, as an ISO speed: EXIF’s PhotographicSensitivity.
focal_length: Option<f64>The lens’s focal length, in millimetres: EXIF’s FocalLength.
equivalent_focal_length: Option<f64>The focal length on a 35 mm film camera with the same view, in millimetres: EXIF’s
FocalLengthIn35mmFilm.
exposure_bias: Option<f64>How far the exposure was set from the camera’s metering, in stops: EXIF’s
ExposureBiasValue.
flash_fired: Option<bool>Whether the flash fired: EXIF’s Flash.
location: Option<Location>Where it was taken: EXIF’s GPS position.