pub struct CaptureProfile {
pub full_page: bool,
pub omit_background: bool,
pub clip: Option<ClipViewport>,
pub html_cleaning: HtmlCleaningProfile,
pub html_max_bytes: usize,
pub attempt_note: Option<String>,
}Expand description
Capture profile for screenshots and HTML.
Fields§
§full_page: boolCapture full page screenshot.
omit_background: boolOmit background in screenshot.
clip: Option<ClipViewport>Clip viewport for screenshot.
html_cleaning: HtmlCleaningProfileHTML cleaning profile.
html_max_bytes: usizeMaximum HTML bytes to capture.
attempt_note: Option<String>Note about this capture attempt.
Implementations§
Source§impl CaptureProfile
impl CaptureProfile
Sourcepub fn for_extraction() -> Self
pub fn for_extraction() -> Self
Create a profile for extraction (aggressive cleaning).
Sourcepub fn for_action() -> Self
pub fn for_action() -> Self
Create a profile for actions (preserve interactivity).
Sourcepub fn with_max_bytes(self, bytes: usize) -> Self
pub fn with_max_bytes(self, bytes: usize) -> Self
Set HTML max bytes.
Trait Implementations§
Source§impl Clone for CaptureProfile
impl Clone for CaptureProfile
Source§fn clone(&self) -> CaptureProfile
fn clone(&self) -> CaptureProfile
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 Debug for CaptureProfile
impl Debug for CaptureProfile
Source§impl Default for CaptureProfile
impl Default for CaptureProfile
Source§impl<'de> Deserialize<'de> for CaptureProfile
impl<'de> Deserialize<'de> for CaptureProfile
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
Source§impl PartialEq for CaptureProfile
impl PartialEq for CaptureProfile
Source§impl Serialize for CaptureProfile
impl Serialize for CaptureProfile
impl StructuralPartialEq for CaptureProfile
Auto Trait Implementations§
impl Freeze for CaptureProfile
impl RefUnwindSafe for CaptureProfile
impl Send for CaptureProfile
impl Sync for CaptureProfile
impl Unpin for CaptureProfile
impl UnwindSafe for CaptureProfile
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