Struct webpage::WebpageOptions[][src]

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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.