pub struct PhotoLite {Show 16 fields
pub id: i64,
pub date_taken: Option<DateTime<Utc>>,
pub thumbnail_path: Option<String>,
pub width: Option<i32>,
pub height: Option<i32>,
pub orientation: i32,
pub is_trashed: bool,
pub is_favorite: bool,
pub gps_latitude: Option<f64>,
pub gps_longitude: Option<f64>,
pub media_type: MediaType,
pub duration_ms: Option<i64>,
pub stack_id: Option<i64>,
pub stack_kind: Option<String>,
pub stack_member_count: Option<i64>,
pub stack_cover_photo_id: Option<i64>,
}Expand description
Cursor-based pagination methods used by the Tauri command surface.
A short descriptor for a photo that’s enough to render a grid cell or a map pin, without paying the cost of a full Photo materialisation.
Cursor-paginated reads use (date_taken DESC, id DESC) with explicit
IS NULL ordering so a stable cursor can be carried across pages.
Fields§
§id: i64§date_taken: Option<DateTime<Utc>>§thumbnail_path: Option<String>§width: Option<i32>§height: Option<i32>§orientation: i32§is_trashed: bool§is_favorite: bool§gps_latitude: Option<f64>§gps_longitude: Option<f64>§media_type: MediaType§duration_ms: Option<i64>§stack_id: Option<i64>§stack_kind: Option<String>§stack_member_count: Option<i64>§stack_cover_photo_id: Option<i64>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PhotoLite
impl RefUnwindSafe for PhotoLite
impl Send for PhotoLite
impl Sync for PhotoLite
impl Unpin for PhotoLite
impl UnsafeUnpin for PhotoLite
impl UnwindSafe for PhotoLite
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