pub struct Response<T> {
    pub depth: usize,
    pub request_url: Url,
    pub response_url: Url,
    pub response_status: StatusCode,
    pub response_headers: HeaderMap,
    pub text: String,
    pub state: Option<T>,
}
Expand description

A successful response for an issued request

Fields

depth: usize

The depth of the request that was issued for this

request_url: Url

The url of the request that was issued.

response_url: Url

The url of the response as received

response_status: StatusCode

The status code of the response

response_headers: HeaderMap

The headers of the received response

text: String

The full response text.

state: Option<T>

The attached state of the scraper

Implementations

Returns the parsed Html document

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.