#[non_exhaustive]pub enum ScreenshotType {
Png,
Jpeg,
}Expand description
Screenshot image format
§Example
use playwright_rs::protocol::ScreenshotType;
let screenshot_type = ScreenshotType::Jpeg;Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Png
PNG format (lossless, supports transparency)
Jpeg
JPEG format (lossy compression, smaller file size)
Trait Implementations§
Source§impl Clone for ScreenshotType
impl Clone for ScreenshotType
Source§fn clone(&self) -> ScreenshotType
fn clone(&self) -> ScreenshotType
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 moreimpl Copy for ScreenshotType
Source§impl Debug for ScreenshotType
impl Debug for ScreenshotType
impl Eq for ScreenshotType
Source§impl PartialEq for ScreenshotType
impl PartialEq for ScreenshotType
Source§impl Serialize for ScreenshotType
impl Serialize for ScreenshotType
impl StructuralPartialEq for ScreenshotType
Auto Trait Implementations§
impl Freeze for ScreenshotType
impl RefUnwindSafe for ScreenshotType
impl Send for ScreenshotType
impl Sync for ScreenshotType
impl Unpin for ScreenshotType
impl UnsafeUnpin for ScreenshotType
impl UnwindSafe for ScreenshotType
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