Struct tools_interface::completer::Completer
source · pub struct Completer { /* private fields */ }Implementations§
source§impl Completer
impl Completer
sourcepub fn new(wiki_from: &str, wiki_to: &str) -> Completer
pub fn new(wiki_from: &str, wiki_to: &str) -> Completer
Finds articles on a wikipedia (wiki_from) that are missing on another (wiki_to).
Note: These are language codes for Wikipedia (eg “de”, “en”).
This tool olny seems to work on Wikipedia.
sourcepub fn filter(self, filter: CompleterFilter) -> Self
pub fn filter(self, filter: CompleterFilter) -> Self
Adds a filter to the completer.
sourcepub fn ignore_cache(self) -> Self
pub fn ignore_cache(self) -> Self
Tells Completer to ignore the cache.
sourcepub fn run_blocking(&mut self) -> Result<(), ToolsError>
pub fn run_blocking(&mut self) -> Result<(), ToolsError>
Run the query in a blocking manner.
sourcepub async fn run(&mut self) -> Result<(), ToolsError>
pub async fn run(&mut self) -> Result<(), ToolsError>
Run the query asynchronously.
Trait Implementations§
source§impl PartialEq for Completer
impl PartialEq for Completer
impl StructuralPartialEq for Completer
Auto Trait Implementations§
impl Freeze for Completer
impl RefUnwindSafe for Completer
impl Send for Completer
impl Sync for Completer
impl Unpin for Completer
impl UnwindSafe for Completer
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