pub struct FullTextSearch { /* private fields */ }Implementations§
Source§impl FullTextSearch
impl FullTextSearch
pub fn new(enabled: bool) -> Self
pub fn enabled(&self) -> bool
pub fn init(&self, conn: &Connection) -> Result<(), Error>
pub fn index_task( &self, conn: &Connection, board_id: &BoardId, task_id: &TaskId, title: &str, description: &str, tags: &[String], ) -> Result<(), Error>
pub fn remove_task( &self, conn: &Connection, board_id: &BoardId, task_id: &TaskId, ) -> Result<(), Error>
pub fn search( &self, conn: &Connection, query: &str, ) -> Result<Vec<SearchResult>, Error>
pub fn search_in_board( &self, conn: &Connection, board_id: &BoardId, query: &str, ) -> Result<Vec<SearchResult>, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FullTextSearch
impl RefUnwindSafe for FullTextSearch
impl Send for FullTextSearch
impl Sync for FullTextSearch
impl Unpin for FullTextSearch
impl UnsafeUnpin for FullTextSearch
impl UnwindSafe for FullTextSearch
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