Struct spider::utils::PageResponse
source · pub struct PageResponse {
pub content: Option<Bytes>,
pub status_code: StatusCode,
pub final_url: Option<String>,
pub error_for_status: Option<Result<Response, Error>>,
}
Expand description
The response of a web page.
Fields§
§content: Option<Bytes>
The page response resource.
status_code: StatusCode
The status code of the request.
final_url: Option<String>
The final url destination after any redirects.
error_for_status: Option<Result<Response, Error>>
The message of the response error if any.
Trait Implementations§
source§impl Debug for PageResponse
impl Debug for PageResponse
source§impl Default for PageResponse
impl Default for PageResponse
source§fn default() -> PageResponse
fn default() -> PageResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PageResponse
impl !RefUnwindSafe for PageResponse
impl Send for PageResponse
impl Sync for PageResponse
impl Unpin for PageResponse
impl !UnwindSafe for PageResponse
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