pub struct ScreenshotParams {
pub cdp_params: CaptureScreenshotParams,
pub full_page: Option<bool>,
pub omit_background: Option<bool>,
}
Expand description
Page screenshot parameters with extra options.
Fields§
§cdp_params: CaptureScreenshotParams
Chrome DevTools Protocol screenshot options.
full_page: Option<bool>
Take full page screenshot.
omit_background: Option<bool>
Make the background transparent (png only).
Implementations§
Source§impl ScreenshotParams
impl ScreenshotParams
pub fn builder() -> ScreenshotParamsBuilder
Trait Implementations§
Source§impl Debug for ScreenshotParams
impl Debug for ScreenshotParams
Source§impl Default for ScreenshotParams
impl Default for ScreenshotParams
Source§fn default() -> ScreenshotParams
fn default() -> ScreenshotParams
Returns the “default value” for a type. Read more
Source§impl From<CaptureScreenshotParams> for ScreenshotParams
impl From<CaptureScreenshotParams> for ScreenshotParams
Source§fn from(cdp_params: CaptureScreenshotParams) -> Self
fn from(cdp_params: CaptureScreenshotParams) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScreenshotParams
impl RefUnwindSafe for ScreenshotParams
impl Send for ScreenshotParams
impl Sync for ScreenshotParams
impl Unpin for ScreenshotParams
impl UnwindSafe for ScreenshotParams
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> 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