pub struct CaptureScreenshotCommand { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Expand description
Capture page screenshot.
Implementations§
Source§impl CaptureScreenshotCommand
impl CaptureScreenshotCommand
pub fn builder() -> CaptureScreenshotCommandBuilder
Sourcepub fn format(&self) -> Option<&CaptureScreenshotCommandFormat>
pub fn format(&self) -> Option<&CaptureScreenshotCommandFormat>
Image compression format (defaults to png).
Sourcepub fn from_surface(&self) -> Option<&bool>
Available on crate feature experimental only.
pub fn from_surface(&self) -> Option<&bool>
experimental only.Capture the screenshot from the surface, rather than the view. Defaults to true.
Sourcepub fn capture_beyond_viewport(&self) -> Option<&bool>
Available on crate feature experimental only.
pub fn capture_beyond_viewport(&self) -> Option<&bool>
experimental only.Capture the screenshot beyond the viewport. Defaults to false.
Trait Implementations§
Source§impl Clone for CaptureScreenshotCommand
impl Clone for CaptureScreenshotCommand
Source§fn clone(&self) -> CaptureScreenshotCommand
fn clone(&self) -> CaptureScreenshotCommand
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 Command for CaptureScreenshotCommand
impl Command for CaptureScreenshotCommand
Source§impl Debug for CaptureScreenshotCommand
impl Debug for CaptureScreenshotCommand
Source§impl<'de> Deserialize<'de> for CaptureScreenshotCommand
impl<'de> Deserialize<'de> for CaptureScreenshotCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CaptureScreenshotCommand
impl RefUnwindSafe for CaptureScreenshotCommand
impl Send for CaptureScreenshotCommand
impl Sync for CaptureScreenshotCommand
impl Unpin for CaptureScreenshotCommand
impl UnwindSafe for CaptureScreenshotCommand
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