pub struct Response {
pub final_url: IndexUrl,
pub redirects: Vec<IndexUrl>,
pub mime_type: Option<String>,
pub body: String,
}Expand description
Fetch response.
Fields§
§final_url: IndexUrlFinal URL after redirects.
redirects: Vec<IndexUrl>Redirect hops observed before the final URL.
mime_type: Option<String>MIME type when known.
body: StringResponse body as UTF-8 text for the initial prototype.
Trait Implementations§
impl Eq for Response
impl StructuralPartialEq for Response
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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