pub struct ScreenshotAssertionOptionsBuilder { /* private fields */ }Expand description
Builder for ScreenshotAssertionOptions
Implementations§
Source§impl ScreenshotAssertionOptionsBuilder
impl ScreenshotAssertionOptionsBuilder
Sourcepub fn max_diff_pixels(self, pixels: u32) -> Self
pub fn max_diff_pixels(self, pixels: u32) -> Self
Maximum number of different pixels allowed
Sourcepub fn max_diff_pixel_ratio(self, ratio: f64) -> Self
pub fn max_diff_pixel_ratio(self, ratio: f64) -> Self
Maximum ratio of different pixels (0.0 to 1.0)
Sourcepub fn animations(self, animations: Animations) -> Self
pub fn animations(self, animations: Animations) -> Self
Disable CSS animations and transitions before capturing
Sourcepub fn update_snapshots(self, update: bool) -> Self
pub fn update_snapshots(self, update: bool) -> Self
Force update baseline even if it exists
Sourcepub fn build(self) -> ScreenshotAssertionOptions
pub fn build(self) -> ScreenshotAssertionOptions
Build the ScreenshotAssertionOptions
Trait Implementations§
Source§impl Clone for ScreenshotAssertionOptionsBuilder
impl Clone for ScreenshotAssertionOptionsBuilder
Source§fn clone(&self) -> ScreenshotAssertionOptionsBuilder
fn clone(&self) -> ScreenshotAssertionOptionsBuilder
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 Default for ScreenshotAssertionOptionsBuilder
impl Default for ScreenshotAssertionOptionsBuilder
Source§fn default() -> ScreenshotAssertionOptionsBuilder
fn default() -> ScreenshotAssertionOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScreenshotAssertionOptionsBuilder
impl !RefUnwindSafe for ScreenshotAssertionOptionsBuilder
impl Send for ScreenshotAssertionOptionsBuilder
impl Sync for ScreenshotAssertionOptionsBuilder
impl Unpin for ScreenshotAssertionOptionsBuilder
impl UnsafeUnpin for ScreenshotAssertionOptionsBuilder
impl !UnwindSafe for ScreenshotAssertionOptionsBuilder
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