pub struct BookmarkManager { /* private fields */ }Expand description
Main bookmark manager API
Implementations§
Source§impl BookmarkManager
impl BookmarkManager
Sourcepub fn with_export_dir(self, dir: PathBuf) -> Self
pub fn with_export_dir(self, dir: PathBuf) -> Self
Set the default export directory
Sourcepub fn export_bookmarks(
&self,
browser: &str,
) -> Result<Vec<Bookmark>, Box<dyn Error>>
pub fn export_bookmarks( &self, browser: &str, ) -> Result<Vec<Bookmark>, Box<dyn Error>>
Export bookmarks from a browser (reads live from browser databases)
Sourcepub fn search(&self, query: &str) -> Result<Vec<Bookmark>, Box<dyn Error>>
pub fn search(&self, query: &str) -> Result<Vec<Bookmark>, Box<dyn Error>>
Search bookmarks by query
Sourcepub fn graph_from_bookmarks(
&self,
bookmarks: &[Bookmark],
) -> Result<KnowledgeGraph, Box<dyn Error>>
pub fn graph_from_bookmarks( &self, bookmarks: &[Bookmark], ) -> Result<KnowledgeGraph, Box<dyn Error>>
Generate knowledge graph from bookmarks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BookmarkManager
impl RefUnwindSafe for BookmarkManager
impl Send for BookmarkManager
impl Sync for BookmarkManager
impl Unpin for BookmarkManager
impl UnwindSafe for BookmarkManager
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