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() -> CaptureProfile
pub fn for_extraction() -> CaptureProfile
Create a profile for extraction (aggressive cleaning).
Sourcepub fn for_action() -> CaptureProfile
pub fn for_action() -> CaptureProfile
Create a profile for actions (preserve interactivity).
Sourcepub fn with_max_bytes(self, bytes: usize) -> CaptureProfile
pub fn with_max_bytes(self, bytes: usize) -> CaptureProfile
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§fn default() -> CaptureProfile
fn default() -> CaptureProfile
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CaptureProfile
impl<'de> Deserialize<'de> for CaptureProfile
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CaptureProfile, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CaptureProfile, <__D as Deserializer<'de>>::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
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 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