pub struct CaptureSnapshotParamsBuilder { /* private fields */ }
Implementations§
Source§impl CaptureSnapshotParamsBuilder
impl CaptureSnapshotParamsBuilder
pub fn computed_style( self, computed_style: impl Into<String>, ) -> CaptureSnapshotParamsBuilder
pub fn computed_styles<I, S>( self, computed_styles: I, ) -> CaptureSnapshotParamsBuilder
pub fn include_paint_order( self, include_paint_order: impl Into<bool>, ) -> CaptureSnapshotParamsBuilder
pub fn include_dom_rects( self, include_dom_rects: impl Into<bool>, ) -> CaptureSnapshotParamsBuilder
pub fn include_blended_background_colors( self, include_blended_background_colors: impl Into<bool>, ) -> CaptureSnapshotParamsBuilder
pub fn include_text_color_opacities( self, include_text_color_opacities: impl Into<bool>, ) -> CaptureSnapshotParamsBuilder
pub fn build(self) -> Result<CaptureSnapshotParams, String>
Trait Implementations§
Source§impl Clone for CaptureSnapshotParamsBuilder
impl Clone for CaptureSnapshotParamsBuilder
Source§fn clone(&self) -> CaptureSnapshotParamsBuilder
fn clone(&self) -> CaptureSnapshotParamsBuilder
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 Default for CaptureSnapshotParamsBuilder
impl Default for CaptureSnapshotParamsBuilder
Source§fn default() -> CaptureSnapshotParamsBuilder
fn default() -> CaptureSnapshotParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CaptureSnapshotParamsBuilder
impl RefUnwindSafe for CaptureSnapshotParamsBuilder
impl Send for CaptureSnapshotParamsBuilder
impl Sync for CaptureSnapshotParamsBuilder
impl Unpin for CaptureSnapshotParamsBuilder
impl UnwindSafe for CaptureSnapshotParamsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more