pub struct PhotoInsert {Show 30 fields
pub relative_path: String,
pub file_name: String,
pub file_hash: String,
pub file_size: i64,
pub file_mtime: Option<i64>,
pub date_taken: Option<String>,
pub date_taken_source: Option<String>,
pub gps_latitude: Option<f64>,
pub gps_longitude: Option<f64>,
pub location_city: Option<String>,
pub location_country: Option<String>,
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<i32>,
pub height: Option<i32>,
pub orientation: i32,
pub media_type: MediaType,
pub duration_ms: Option<i64>,
pub video_codec: Option<String>,
pub audio_codec: Option<String>,
pub frame_rate: Option<f32>,
pub bitrate: Option<i64>,
pub has_audio: bool,
}Expand description
A discovered file ready for database insertion
Fields§
§relative_path: String§file_name: String§file_hash: String§file_size: i64§file_mtime: Option<i64>§date_taken: Option<String>§date_taken_source: Option<String>§gps_latitude: Option<f64>§gps_longitude: Option<f64>§location_city: Option<String>§location_country: Option<String>§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<i32>§height: Option<i32>§orientation: i32§media_type: MediaType§duration_ms: Option<i64>§video_codec: Option<String>§audio_codec: Option<String>§frame_rate: Option<f32>§bitrate: Option<i64>§has_audio: boolTrait Implementations§
Source§impl Clone for PhotoInsert
impl Clone for PhotoInsert
Source§fn clone(&self) -> PhotoInsert
fn clone(&self) -> PhotoInsert
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 moreAuto Trait Implementations§
impl Freeze for PhotoInsert
impl RefUnwindSafe for PhotoInsert
impl Send for PhotoInsert
impl Sync for PhotoInsert
impl Unpin for PhotoInsert
impl UnsafeUnpin for PhotoInsert
impl UnwindSafe for PhotoInsert
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