pub struct ReadabilityOptions {
pub debug: Option<bool>,
pub max_elems_to_parse: Option<usize>,
pub nb_top_candidates: Option<usize>,
pub char_threshold: Option<usize>,
pub classes_to_preserve: Option<Vec<String>>,
pub keep_classes: Option<bool>,
pub disable_jsonld: Option<bool>,
pub link_density_modifier: Option<f32>,
}
Fields§
§debug: Option<bool>
§max_elems_to_parse: Option<usize>
§nb_top_candidates: Option<usize>
§char_threshold: Option<usize>
§classes_to_preserve: Option<Vec<String>>
§keep_classes: Option<bool>
§disable_jsonld: Option<bool>
§link_density_modifier: Option<f32>
Implementations§
Source§impl ReadabilityOptions
impl ReadabilityOptions
pub fn new() -> Self
pub fn debug(self, val: bool) -> Self
pub fn max_elems_to_parse(self, val: usize) -> Self
pub fn nb_top_candidates(self, val: usize) -> Self
pub fn char_threshold(self, val: usize) -> Self
pub fn classes_to_preserve(self, val: Vec<String>) -> Self
pub fn keep_classes(self, val: bool) -> Self
pub fn disable_jsonld(self, val: bool) -> Self
pub fn link_density_modifier(self, val: f32) -> Self
Trait Implementations§
Source§impl Clone for ReadabilityOptions
impl Clone for ReadabilityOptions
Source§fn clone(&self) -> ReadabilityOptions
fn clone(&self) -> ReadabilityOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ReadabilityOptions
impl Debug for ReadabilityOptions
Source§impl Default for ReadabilityOptions
impl Default for ReadabilityOptions
Source§fn default() -> ReadabilityOptions
fn default() -> ReadabilityOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadabilityOptions
impl RefUnwindSafe for ReadabilityOptions
impl Send for ReadabilityOptions
impl Sync for ReadabilityOptions
impl Unpin for ReadabilityOptions
impl UnwindSafe for ReadabilityOptions
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