pub struct RenderOptions {
pub timeout: Duration,
pub wait_for_network_idle: bool,
pub network_idle_timeout_ms: u64,
pub wait_for_selector: Option<String>,
pub execute_script: Option<String>,
pub capture_screenshot: bool,
pub viewport_width: u32,
pub viewport_height: u32,
pub user_agent: Option<String>,
pub block_resources: Vec<ResourceType>,
pub extra_headers: Vec<(String, String)>,
}Expand description
Browser render options
Fields§
§timeout: DurationTimeout for page load
wait_for_network_idle: boolWait for network idle
network_idle_timeout_ms: u64Network idle timeout (ms with no requests)
wait_for_selector: Option<String>Wait for a specific selector
execute_script: Option<String>Execute JavaScript before extraction
capture_screenshot: boolCapture screenshot
viewport_width: u32Viewport width
viewport_height: u32Viewport height
user_agent: Option<String>User agent override
block_resources: Vec<ResourceType>Block resource types
extra_headers: Vec<(String, String)>Extra HTTP headers
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
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 RenderOptions
impl Debug for RenderOptions
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnwindSafe for RenderOptions
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