pub struct Memory {
pub id: MemoryId,
pub kind: MemoryKind,
pub title: String,
pub photo_ids: Vec<i64>,
pub hero_photo_id: i64,
pub hero_thumbnail_path: Option<String>,
pub score: f32,
pub year: i32,
pub has_faces: bool,
pub favorites: usize,
pub named_person: bool,
pub hide_key: String,
}Fields§
§id: MemoryId§kind: MemoryKind§title: String§photo_ids: Vec<i64>§hero_photo_id: i64§hero_thumbnail_path: Option<String>Relative thumbnail path for the chosen hero (set during hero selection). None if the hero photo hasn’t had a thumbnail generated yet.
score: f32§year: i32§has_faces: bool§favorites: usizeFavourites among the photos shown.
named_person: boolSomeone the user has named appears in it.
hide_key: StringWhat hiding this memory blocks: a day, month, year, person or place.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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> ⓘ
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