pub struct FetchedPage {
pub body: String,
pub final_url: String,
pub content_type: Option<String>,
pub undecodable_charset: Option<String>,
}Expand description
Outcome of an HTTP fetch: the body, the URL we actually landed on after
following redirects, and the response’s Content-Type (if any).
Fields§
§body: String§final_url: String§content_type: Option<String>§undecodable_charset: Option<String>Set when the page declared a charset this build cannot decode, so the body was read as UTF-8 and may be garbled.
Trait Implementations§
Source§impl Clone for FetchedPage
impl Clone for FetchedPage
Source§fn clone(&self) -> FetchedPage
fn clone(&self) -> FetchedPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FetchedPage
impl RefUnwindSafe for FetchedPage
impl Send for FetchedPage
impl Sync for FetchedPage
impl Unpin for FetchedPage
impl UnsafeUnpin for FetchedPage
impl UnwindSafe for FetchedPage
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