pub struct GetSnapshotBuilder { /* private fields */ }Expand description
Builder for GetSnapshot.
Implementations§
Source§impl GetSnapshotBuilder
impl GetSnapshotBuilder
Sourcepub fn computed_style_whitelist<VALUE: Into<Vec<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn computed_style_whitelist<VALUE: Into<Vec<String>>>( &mut self, value: VALUE, ) -> &mut Self
Whitelist of computed styles to return.
Sourcepub fn include_event_listeners<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn include_event_listeners<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether or not to retrieve details of DOM listeners (default false).
Sourcepub fn include_paint_order<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn include_paint_order<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether to determine and include the paint order index of LayoutTreeNodes (default false).
Sourcepub fn include_user_agent_shadow_tree<VALUE: Into<bool>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn include_user_agent_shadow_tree<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Whether to include UA shadow tree in the snapshot (default false).
Sourcepub fn build(&self) -> Result<GetSnapshot, GetSnapshotBuilderError>
pub fn build(&self) -> Result<GetSnapshot, GetSnapshotBuilderError>
Trait Implementations§
Source§impl Clone for GetSnapshotBuilder
impl Clone for GetSnapshotBuilder
Source§fn clone(&self) -> GetSnapshotBuilder
fn clone(&self) -> GetSnapshotBuilder
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 moreAuto Trait Implementations§
impl Freeze for GetSnapshotBuilder
impl RefUnwindSafe for GetSnapshotBuilder
impl Send for GetSnapshotBuilder
impl Sync for GetSnapshotBuilder
impl Unpin for GetSnapshotBuilder
impl UnsafeUnpin for GetSnapshotBuilder
impl UnwindSafe for GetSnapshotBuilder
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