#[non_exhaustive]pub struct ApiExifMetadata {Show 16 fields
pub image_width: u32,
pub image_height: u32,
pub camera_make: String,
pub camera_model: String,
pub lens_model: String,
pub date_time_original: String,
pub offset_time_original: String,
pub orientation: u32,
pub exposure_time: String,
pub aperture_value: f64,
pub iso_speed: u32,
pub focal_length: String,
pub megapixels: f64,
pub artist: String,
pub copyright: String,
pub gps_metadata: Option<ApiExifGpsMetadata>,
}Available on crate feature
dbx_riviera only.Expand description
Image EXIF metadata. Mirrors the useful subset of the internal riviera.ExifMetadata message.
Fields are best-effort and may be empty.
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.image_width: u32§image_height: u32§camera_make: String§camera_model: String§lens_model: String§date_time_original: StringCapture time in the EXIF-provided format (local time of the camera).
offset_time_original: StringTimezone offset for date_time_original, e.g. “+09:00”.
orientation: u32EXIF orientation value (1-8). See the EXIF spec; 1 is the normal upright orientation.
exposure_time: Stringfraction in string form, e.g. “1/250”
aperture_value: f64§iso_speed: u32§focal_length: Stringe.g. “26.0 mm”
megapixels: f64§artist: String§copyright: String§gps_metadata: Option<ApiExifGpsMetadata>Implementations§
Source§impl ApiExifMetadata
impl ApiExifMetadata
pub fn with_image_width(self, value: u32) -> Self
pub fn with_image_height(self, value: u32) -> Self
pub fn with_camera_make(self, value: String) -> Self
pub fn with_camera_model(self, value: String) -> Self
pub fn with_lens_model(self, value: String) -> Self
pub fn with_date_time_original(self, value: String) -> Self
pub fn with_offset_time_original(self, value: String) -> Self
pub fn with_orientation(self, value: u32) -> Self
pub fn with_exposure_time(self, value: String) -> Self
pub fn with_aperture_value(self, value: f64) -> Self
pub fn with_iso_speed(self, value: u32) -> Self
pub fn with_focal_length(self, value: String) -> Self
pub fn with_megapixels(self, value: f64) -> Self
pub fn with_artist(self, value: String) -> Self
pub fn with_copyright(self, value: String) -> Self
pub fn with_gps_metadata(self, value: ApiExifGpsMetadata) -> Self
Trait Implementations§
Source§impl Clone for ApiExifMetadata
impl Clone for ApiExifMetadata
Source§fn clone(&self) -> ApiExifMetadata
fn clone(&self) -> ApiExifMetadata
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 ApiExifMetadata
impl Debug for ApiExifMetadata
Source§impl Default for ApiExifMetadata
impl Default for ApiExifMetadata
Source§fn default() -> ApiExifMetadata
fn default() -> ApiExifMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiExifMetadata
impl<'de> Deserialize<'de> for ApiExifMetadata
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ApiExifMetadata
impl PartialEq for ApiExifMetadata
Source§impl Serialize for ApiExifMetadata
impl Serialize for ApiExifMetadata
impl StructuralPartialEq for ApiExifMetadata
Auto Trait Implementations§
impl Freeze for ApiExifMetadata
impl RefUnwindSafe for ApiExifMetadata
impl Send for ApiExifMetadata
impl Sync for ApiExifMetadata
impl Unpin for ApiExifMetadata
impl UnsafeUnpin for ApiExifMetadata
impl UnwindSafe for ApiExifMetadata
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