pub struct FetchResponse {
pub status: i32,
pub body: String,
pub body_encoding: String,
pub headers: HashMap<String, String>,
}Expand description
Response from an HTTP request.
Fields§
§status: i32HTTP status code (e.g., 200, 404, 500).
body: StringResponse body as a string (may be base64-encoded for binary content).
body_encoding: StringBody encoding: “utf8” for text, “base64” for binary content.
headers: HashMap<String, String>Response headers.
Implementations§
Trait Implementations§
Source§impl Clone for FetchResponse
impl Clone for FetchResponse
Source§fn clone(&self) -> FetchResponse
fn clone(&self) -> FetchResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 FetchResponse
impl RefUnwindSafe for FetchResponse
impl Send for FetchResponse
impl Sync for FetchResponse
impl Unpin for FetchResponse
impl UnsafeUnpin for FetchResponse
impl UnwindSafe for FetchResponse
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