pub struct ConfigBuilder { /* private fields */ }Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn min_word_count(self, min_word_count: usize) -> Self
pub fn max_word_count(self, max_word_count: usize) -> Self
pub fn min_sentence_count(self, min_sentence_count: usize) -> Self
pub fn min_title_len(self, min_title_len: usize) -> Self
pub fn max_title_len(self, max_title_len: usize) -> Self
pub fn min_text_len(self, min_text_len: usize) -> Self
pub fn max_text_len(self, max_text_len: usize) -> Self
pub fn min_keywords(self, min_keywords: usize) -> Self
pub fn max_keywords(self, max_keywords: usize) -> Self
pub fn max_doc_cache(self, max_doc_cache: usize) -> Self
pub fn http_success_only(self, keep_article_html: bool) -> Self
pub fn user_agent<T: ToString>(self, user_agent: T) -> Self
pub fn request_timeout(self, request_timeout: Duration) -> Self
pub fn build(self) -> Config
Sourcepub fn with_restrictions() -> Self
pub fn with_restrictions() -> Self
Pre sets some restrictions regarding the article content: * Word Count >= 300 * Sentences >= 7 * Text Length >= 100_000
Trait Implementations§
Source§impl Debug for ConfigBuilder
impl Debug for ConfigBuilder
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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