pub struct RenderChecker { /* private fields */ }Expand description
Render checker
Implementations§
Source§impl RenderChecker
impl RenderChecker
Sourcepub fn with_script_threshold(self, threshold: usize) -> Self
pub fn with_script_threshold(self, threshold: usize) -> Self
Configure the script threshold
Sourcepub fn with_min_content(self, min_length: usize) -> Self
pub fn with_min_content(self, min_length: usize) -> Self
Configure the minimum content
Sourcepub fn with_required_selectors(self, selectors: Vec<String>) -> Self
pub fn with_required_selectors(self, selectors: Vec<String>) -> Self
Configure the required selectors
Sourcepub fn check(&self, html: &str) -> RenderDecision
pub fn check(&self, html: &str) -> RenderDecision
Check if JS rendering is necessary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RenderChecker
impl RefUnwindSafe for RenderChecker
impl Send for RenderChecker
impl Sync for RenderChecker
impl Unpin for RenderChecker
impl UnwindSafe for RenderChecker
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