Struct webpage::WebpageOptions
source · pub struct WebpageOptions {
pub allow_insecure: bool,
pub follow_location: bool,
pub max_redirections: u32,
pub timeout: Duration,
pub useragent: String,
}
Expand description
Configuration options
Fields§
§allow_insecure: bool
Allow fetching over invalid and/or self signed HTTPS connections [false]
follow_location: bool
Follow HTTP redirects [true]
max_redirections: u32
Max number of redirects to follow [5]
timeout: Duration
Timeout for the HTTP request [10 secs]
useragent: String
User agent string used for the request [webpage-rs - https://crates.io/crates/webpage]
Trait Implementations§
source§impl Debug for WebpageOptions
impl Debug for WebpageOptions
Auto Trait Implementations§
impl RefUnwindSafe for WebpageOptions
impl Send for WebpageOptions
impl Sync for WebpageOptions
impl Unpin for WebpageOptions
impl UnwindSafe for WebpageOptions
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