pub struct BrowserFetchResponse {
pub url: String,
pub status: u16,
pub status_text: String,
pub ok: bool,
pub headers: HashMap<String, String>,
pub body: String,
pub truncated: bool,
}Expand description
Browser fetch response.
Fields§
§url: StringFinal response URL.
status: u16HTTP status code.
status_text: StringHTTP status text.
ok: boolWhether the status is in the 2xx range.
headers: HashMap<String, String>Response headers.
body: StringResponse body text, possibly truncated.
truncated: boolWhether the body was truncated to max_body_chars.
Trait Implementations§
Source§impl Clone for BrowserFetchResponse
impl Clone for BrowserFetchResponse
Source§impl Debug for BrowserFetchResponse
impl Debug for BrowserFetchResponse
Source§impl<'de> Deserialize<'de> for BrowserFetchResponse
impl<'de> Deserialize<'de> for BrowserFetchResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BrowserFetchResponse
Source§impl PartialEq for BrowserFetchResponse
impl PartialEq for BrowserFetchResponse
Source§impl Serialize for BrowserFetchResponse
impl Serialize for BrowserFetchResponse
impl StructuralPartialEq for BrowserFetchResponse
Auto Trait Implementations§
impl Freeze for BrowserFetchResponse
impl RefUnwindSafe for BrowserFetchResponse
impl Send for BrowserFetchResponse
impl Sync for BrowserFetchResponse
impl Unpin for BrowserFetchResponse
impl UnsafeUnpin for BrowserFetchResponse
impl UnwindSafe for BrowserFetchResponse
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