pub struct InsightsData {Show 18 fields
pub total_photos: i64,
pub date_range_start: Option<String>,
pub date_range_end: Option<String>,
pub people_count: i64,
pub album_count: i64,
pub country_count: i64,
pub city_count: i64,
pub photos_with_gps: i64,
pub hero_photo_id: Option<i64>,
pub hero_thumbnail_path: Option<String>,
pub heatmap: HashMap<String, i64>,
pub heatmap_year: i32,
pub monthly_counts: [i64; 12],
pub top_people: Vec<PersonStat>,
pub top_locations: Vec<LocationStat>,
pub top_countries: Vec<CountryStat>,
pub top_cameras: Vec<CameraStat>,
pub available_years: Vec<i32>,
}Expand description
All data needed by the Insights dashboard view. Boxed in the message because it is large.
Fields§
§total_photos: i64§date_range_start: Option<String>§date_range_end: Option<String>§people_count: i64§album_count: i64§country_count: i64§city_count: i64§photos_with_gps: i64How many photos in scope have GPS coordinates. Lets the view tell “no GPS data yet” apart from “GPS data but no geocoder result”.
hero_photo_id: Option<i64>§hero_thumbnail_path: Option<String>§heatmap: HashMap<String, i64>Day-level photo counts for the heatmap: “YYYY-MM-DD” -> count.
heatmap_year: i32The year the heatmap covers.
monthly_counts: [i64; 12]Monthly photo counts (index 0 = January, 11 = December).
top_people: Vec<PersonStat>§top_locations: Vec<LocationStat>§top_countries: Vec<CountryStat>§top_cameras: Vec<CameraStat>§available_years: Vec<i32>Distinct years present in the library (descending).
Trait Implementations§
Source§impl Clone for InsightsData
impl Clone for InsightsData
Source§fn clone(&self) -> InsightsData
fn clone(&self) -> InsightsData
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 InsightsData
impl RefUnwindSafe for InsightsData
impl Send for InsightsData
impl Sync for InsightsData
impl Unpin for InsightsData
impl UnsafeUnpin for InsightsData
impl UnwindSafe for InsightsData
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