pub struct PhotoStackRepo<'a> { /* private fields */ }Implementations§
Source§impl<'a> PhotoStackRepo<'a>
impl<'a> PhotoStackRepo<'a>
pub fn new(conn: &'a Connection) -> Self
pub fn sync_stacks(&self, candidates: &[StackCandidate]) -> SqliteResult<()>
pub fn get_stack(&self, stack_id: i64) -> SqliteResult<Option<PhotoStackRecord>>
pub fn get_stack_for_photo( &self, photo_id: i64, ) -> SqliteResult<Option<PhotoStackRecord>>
pub fn get_members( &self, stack_id: i64, ) -> SqliteResult<Vec<PhotoStackMemberRecord>>
pub fn set_cover(&self, stack_id: i64, photo_id: i64) -> SqliteResult<()>
pub fn remove_member(&self, stack_id: i64, photo_id: i64) -> SqliteResult<()>
pub fn unstack(&self, stack_id: i64) -> SqliteResult<()>
pub fn photos_to_trash_except_cover( &self, stack_id: i64, ) -> SqliteResult<Vec<i64>>
pub fn reconcile_after_photos_trashed( &self, photo_ids: &[i64], ) -> SqliteResult<()>
pub fn delete_stack(&self, stack_id: i64) -> SqliteResult<()>
Auto Trait Implementations§
impl<'a> Freeze for PhotoStackRepo<'a>
impl<'a> !RefUnwindSafe for PhotoStackRepo<'a>
impl<'a> !Send for PhotoStackRepo<'a>
impl<'a> !Sync for PhotoStackRepo<'a>
impl<'a> Unpin for PhotoStackRepo<'a>
impl<'a> UnsafeUnpin for PhotoStackRepo<'a>
impl<'a> !UnwindSafe for PhotoStackRepo<'a>
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
§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