pub struct HtmlCompareOptions {
pub ignore_whitespace: bool,
pub ignore_attributes: bool,
pub ignored_attributes: HashSet<String>,
pub ignore_text: bool,
pub ignore_comments: bool,
pub ignore_sibling_order: bool,
}
Expand description
Configuration for HTML comparison
Fields§
§ignore_whitespace: bool
Ignore whitespace differences between elements
ignore_attributes: bool
Ignore all HTML attributes
ignored_attributes: HashSet<String>
Specific attributes to ignore (if ignore_attributes is false)
ignore_text: bool
Ignore text node differences
ignore_comments: bool
Ignore comment nodes
ignore_sibling_order: bool
Ignore order of sibling elements
Trait Implementations§
Source§impl Clone for HtmlCompareOptions
impl Clone for HtmlCompareOptions
Source§fn clone(&self) -> HtmlCompareOptions
fn clone(&self) -> HtmlCompareOptions
Returns a copy 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 HtmlCompareOptions
impl Debug for HtmlCompareOptions
Auto Trait Implementations§
impl Freeze for HtmlCompareOptions
impl RefUnwindSafe for HtmlCompareOptions
impl Send for HtmlCompareOptions
impl Sync for HtmlCompareOptions
impl Unpin for HtmlCompareOptions
impl UnwindSafe for HtmlCompareOptions
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