pub struct SqliteCitationRepository { /* private fields */ }Implementations§
Trait Implementations§
Source§impl CitationRepository for SqliteCitationRepository
impl CitationRepository for SqliteCitationRepository
fn save(&self, citation: &Citation) -> Result<(), CoreError>
fn save_many(&self, citations: &[Citation]) -> Result<(), CoreError>
fn get_references(&self, paper_id: &str) -> Result<Vec<Citation>, CoreError>
fn get_citations(&self, paper_id: &str) -> Result<Vec<Citation>, CoreError>
fn exists( &self, source_paper_id: &str, target_paper_id: &str, direction: &str, ) -> Result<bool, CoreError>
fn save_snowball_run(&self, run: &SnowballRun) -> Result<(), CoreError>
fn get_snowball_run( &self, run_id: &str, ) -> Result<Option<SnowballRun>, CoreError>
fn list_snowball_runs(&self, limit: i64) -> Result<Vec<SnowballRun>, CoreError>
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteCitationRepository
impl !UnwindSafe for SqliteCitationRepository
impl Freeze for SqliteCitationRepository
impl Send for SqliteCitationRepository
impl Sync for SqliteCitationRepository
impl Unpin for SqliteCitationRepository
impl UnsafeUnpin for SqliteCitationRepository
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