pub struct BrowserTestOptions {
pub url: String,
pub mode: BrowserSmokeMode,
pub chrome_path: Option<PathBuf>,
pub cdp_port: Option<u16>,
pub viewport_width: u32,
pub viewport_height: u32,
pub timeout_ms: u64,
pub screenshot_path: Option<PathBuf>,
}Fields§
§url: String§mode: BrowserSmokeMode§chrome_path: Option<PathBuf>§cdp_port: Option<u16>§viewport_width: u32§viewport_height: u32§timeout_ms: u64§screenshot_path: Option<PathBuf>Implementations§
Source§impl BrowserTestOptions
impl BrowserTestOptions
pub fn new(url: impl Into<String>) -> Self
pub fn fission_canvas(self) -> Self
pub fn screenshot(self, path: impl Into<PathBuf>) -> Self
Trait Implementations§
Source§impl Clone for BrowserTestOptions
impl Clone for BrowserTestOptions
Source§fn clone(&self) -> BrowserTestOptions
fn clone(&self) -> BrowserTestOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BrowserTestOptions
impl RefUnwindSafe for BrowserTestOptions
impl Send for BrowserTestOptions
impl Sync for BrowserTestOptions
impl Unpin for BrowserTestOptions
impl UnsafeUnpin for BrowserTestOptions
impl UnwindSafe for BrowserTestOptions
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