pub struct StartTracingOptions {
pub page: Option<Page>,
pub screenshots: Option<bool>,
pub categories: Option<Vec<String>>,
}Expand description
Options for Browser::start_tracing().
See: https://playwright.dev/docs/api/class-browser#browser-start-tracing
Fields§
§page: Option<Page>If specified, tracing captures screenshots for this page.
Pass Some(page) to associate the trace with a specific page.
screenshots: Option<bool>Whether to capture screenshots during tracing. Default false.
categories: Option<Vec<String>>Trace categories to enable. If omitted, uses a default set.
Trait Implementations§
Source§impl Clone for StartTracingOptions
impl Clone for StartTracingOptions
Source§fn clone(&self) -> StartTracingOptions
fn clone(&self) -> StartTracingOptions
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 StartTracingOptions
impl Debug for StartTracingOptions
Source§impl Default for StartTracingOptions
impl Default for StartTracingOptions
Source§fn default() -> StartTracingOptions
fn default() -> StartTracingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for StartTracingOptions
impl !RefUnwindSafe for StartTracingOptions
impl Send for StartTracingOptions
impl Sync for StartTracingOptions
impl Unpin for StartTracingOptions
impl UnsafeUnpin for StartTracingOptions
impl !UnwindSafe for StartTracingOptions
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