pub struct SoupConfig {
pub max_depth: usize,
pub strict_mode: bool,
pub preserve_whitespace: bool,
pub include_comments: bool,
}Expand description
Configuration options for HTML parsing.
§Examples
use scrape_core::SoupConfig;
let config = SoupConfig::builder().max_depth(256).strict_mode(false).build();Fields§
§max_depth: usizeMaximum nesting depth for DOM tree.
strict_mode: boolEnable strict parsing mode (fail on malformed HTML).
preserve_whitespace: boolWhether to preserve whitespace-only text nodes.
include_comments: boolWhether to include comment nodes.
Implementations§
Source§impl SoupConfig
impl SoupConfig
Trait Implementations§
Source§impl Clone for SoupConfig
impl Clone for SoupConfig
Source§fn clone(&self) -> SoupConfig
fn clone(&self) -> SoupConfig
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 SoupConfig
impl Debug for SoupConfig
Auto Trait Implementations§
impl Freeze for SoupConfig
impl RefUnwindSafe for SoupConfig
impl Send for SoupConfig
impl Sync for SoupConfig
impl Unpin for SoupConfig
impl UnwindSafe for SoupConfig
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