pub struct AlbumRecord {
pub id: i64,
pub name: String,
pub cover_photo_id: Option<i64>,
pub cover_auto_picked: bool,
pub photo_count: i64,
pub date_range_start: Option<String>,
pub date_range_end: Option<String>,
pub created_at: String,
pub updated_at: String,
pub created_by: String,
pub cover_thumbnail_path: Option<String>,
}Expand description
Album record for list views (cover + summary info)
Fields§
§id: i64§name: String§cover_photo_id: Option<i64>§cover_auto_picked: bool§photo_count: i64§date_range_start: Option<String>Earliest date_taken among album photos (ISO string or None)
date_range_end: Option<String>Latest date_taken among album photos (ISO string or None)
created_at: String§updated_at: String§created_by: String§cover_thumbnail_path: Option<String>Resolved absolute thumbnail path for the cover photo (set during loading, not from DB)
Trait Implementations§
Source§impl Clone for AlbumRecord
impl Clone for AlbumRecord
Source§fn clone(&self) -> AlbumRecord
fn clone(&self) -> AlbumRecord
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 AlbumRecord
impl RefUnwindSafe for AlbumRecord
impl Send for AlbumRecord
impl Sync for AlbumRecord
impl Unpin for AlbumRecord
impl UnsafeUnpin for AlbumRecord
impl UnwindSafe for AlbumRecord
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