pub struct Page {
pub url: String,
pub final_url: String,
pub status: u16,
pub content_type: Option<String>,
pub body: String,
pub elapsed_ms: u64,
pub rendered: bool,
}Expand description
A fetched document.
Fields§
§url: StringURL as requested.
final_url: StringURL after redirects.
status: u16HTTP status.
content_type: Option<String>Content-Type header, if any.
body: StringDecoded body.
elapsed_ms: u64Wall time for the fetch, in milliseconds.
rendered: boolWhether the headless fallback produced this body.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Page
impl Freeze for Page
impl Move for Page
impl RefUnwindSafe for Page
impl Send for Page
impl Sync for Page
impl Unpin for Page
impl UnsafeUnpin for Page
impl UnwindSafe for Page
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more