pub struct FetchResult {
pub final_url: Url,
pub status: u16,
pub chain: Vec<Hop>,
pub headers: HeaderMap,
pub content_type: Option<String>,
pub x_robots_tag: Option<String>,
pub response_ms: u32,
pub size_bytes: u64,
pub body: Option<Bytes>,
pub truncated: bool,
}Fields§
§final_url: Url§status: u16§chain: Vec<Hop>§headers: HeaderMap§content_type: Option<String>§x_robots_tag: Option<String>§response_ms: u32Time from sending the final request to receiving its headers.
size_bytes: u64§body: Option<Bytes>None when the body wasn’t read (not HTML for fetch).
truncated: boolTrait Implementations§
Source§impl Clone for FetchResult
impl Clone for FetchResult
Auto Trait Implementations§
impl !Freeze for FetchResult
impl RefUnwindSafe for FetchResult
impl Send for FetchResult
impl Sync for FetchResult
impl Unpin for FetchResult
impl UnsafeUnpin for FetchResult
impl UnwindSafe for FetchResult
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