pub struct ScrapeOptions {
pub timeout: u32,
pub wait_time: u32,
pub include_tags: Option<Vec<String>>,
pub exclude_tags: Option<Vec<String>>,
pub only_main_content: bool,
pub format: Format,
pub viewport: Option<Viewport>,
pub user_agent: Option<String>,
pub headers: Option<HashMap<String, String>>,
}Fields§
§timeout: u32§wait_time: u32§only_main_content: bool§format: Format§viewport: Option<Viewport>§user_agent: Option<String>§headers: Option<HashMap<String, String>>Implementations§
Source§impl ScrapeOptions
impl ScrapeOptions
pub fn new() -> Self
pub fn with_format(self, format: Format) -> Self
pub fn with_viewport(self, width: u32, height: u32) -> Self
pub fn with_user_agent(self, user_agent: String) -> Self
pub fn with_headers(self, headers: HashMap<String, String>) -> Self
Trait Implementations§
Source§impl Clone for ScrapeOptions
impl Clone for ScrapeOptions
Source§fn clone(&self) -> ScrapeOptions
fn clone(&self) -> ScrapeOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScrapeOptions
impl Debug for ScrapeOptions
Source§impl Default for ScrapeOptions
impl Default for ScrapeOptions
Source§impl PartialEq for ScrapeOptions
impl PartialEq for ScrapeOptions
Source§impl Serialize for ScrapeOptions
impl Serialize for ScrapeOptions
impl StructuralPartialEq for ScrapeOptions
Auto Trait Implementations§
impl Freeze for ScrapeOptions
impl RefUnwindSafe for ScrapeOptions
impl Send for ScrapeOptions
impl Sync for ScrapeOptions
impl Unpin for ScrapeOptions
impl UnwindSafe for ScrapeOptions
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