pub struct ScreenshotParams {
pub format: Option<ScreenshotParamsFormat>,
pub quality: Option<i64>,
}
Expand description
Encoding options for a screenshot. ScreenshotParams
Fields§
§format: Option<ScreenshotParamsFormat>
Image compression format (defaults to png).
quality: Option<i64>
Compression quality from range [0..100] (jpeg only).
Implementations§
source§impl ScreenshotParams
impl ScreenshotParams
pub fn builder() -> ScreenshotParamsBuilder
source§impl ScreenshotParams
impl ScreenshotParams
pub const IDENTIFIER: &'static str = "HeadlessExperimental.ScreenshotParams"
Trait Implementations§
source§impl Clone for ScreenshotParams
impl Clone for ScreenshotParams
source§fn clone(&self) -> ScreenshotParams
fn clone(&self) -> ScreenshotParams
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 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<'de> Deserialize<'de> for ScreenshotParams
impl<'de> Deserialize<'de> for ScreenshotParams
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ScreenshotParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ScreenshotParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ScreenshotParams
impl PartialEq for ScreenshotParams
source§fn eq(&self, other: &ScreenshotParams) -> bool
fn eq(&self, other: &ScreenshotParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ScreenshotParams
impl Serialize for ScreenshotParams
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ScreenshotParams
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