pub struct DocumentRepo<'a> { /* private fields */ }Implementations§
Source§impl<'a> DocumentRepo<'a>
impl<'a> DocumentRepo<'a>
pub fn new(conn: &'a Connection) -> Self
pub fn get_non_photo_documents( &self, limit: i64, offset: i64, ) -> SqliteResult<Vec<Photo>>
pub fn get_documents_by_category( &self, category: &str, limit: i64, offset: i64, ) -> SqliteResult<Vec<Photo>>
pub fn get_documents_by_categories( &self, categories: &[String], limit: i64, offset: i64, ) -> SqliteResult<Vec<Photo>>
pub fn search_documents_fts( &self, query: &str, limit: i64, offset: i64, ) -> SqliteResult<Vec<Photo>>
pub fn update_content_category( &self, photo_id: i64, category: &str, ) -> SqliteResult<usize>
pub fn update_ocr_metadata( &self, photo_id: i64, text: Option<&str>, confidence: Option<f32>, processed: bool, ) -> SqliteResult<()>
pub fn get_unprocessed_for_document_analysis( &self, limit: i64, ) -> SqliteResult<Vec<(i64, String, i32)>>
Auto Trait Implementations§
impl<'a> Freeze for DocumentRepo<'a>
impl<'a> !RefUnwindSafe for DocumentRepo<'a>
impl<'a> !Send for DocumentRepo<'a>
impl<'a> !Sync for DocumentRepo<'a>
impl<'a> Unpin for DocumentRepo<'a>
impl<'a> UnsafeUnpin for DocumentRepo<'a>
impl<'a> !UnwindSafe for DocumentRepo<'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