#[non_exhaustive]pub struct StartJSCoverageOptions {
pub reset_on_navigation: Option<bool>,
pub report_anonymous_scripts: Option<bool>,
}Expand description
Options for Coverage::start_js_coverage.
See: https://playwright.dev/docs/api/class-coverage#coverage-start-js-coverage
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Whether to reset coverage on every navigation.
Defaults to true.
report_anonymous_scripts: Option<bool>Whether to report anonymous scripts generated by the page.
Defaults to false.
Implementations§
Source§impl StartJSCoverageOptions
impl StartJSCoverageOptions
Whether to reset coverage on every navigation. Defaults to true.
Sourcepub fn report_anonymous_scripts(self, report_anonymous_scripts: bool) -> Self
pub fn report_anonymous_scripts(self, report_anonymous_scripts: bool) -> Self
Whether to report anonymous scripts generated by the page. Defaults
to false.
Trait Implementations§
Source§impl Clone for StartJSCoverageOptions
impl Clone for StartJSCoverageOptions
Source§impl Debug for StartJSCoverageOptions
impl Debug for StartJSCoverageOptions
Auto Trait Implementations§
impl Freeze for StartJSCoverageOptions
impl RefUnwindSafe for StartJSCoverageOptions
impl Send for StartJSCoverageOptions
impl Sync for StartJSCoverageOptions
impl Unpin for StartJSCoverageOptions
impl UnsafeUnpin for StartJSCoverageOptions
impl UnwindSafe for StartJSCoverageOptions
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