pub struct GetResponseBodyReturnObject {
pub body: String,
pub base_64_encoded: bool,
}Expand description
Causes the body of the response to be received from the server and
returned as a single string. May only be issued for a request that
is paused in the Response stage and is mutually exclusive with
takeResponseBodyForInterceptionAsStream. Calling other methods that
affect the request or disabling fetch domain before body is received
results in an undefined behavior.
Note that the response body is not available for redirects. Requests
paused in the redirect received state may be differentiated by
responseCode and presence of location response header, see
comments to requestPaused for details.
Fields§
§body: StringResponse body.
base_64_encoded: boolTrue, if content was sent as base64.
Trait Implementations§
Source§impl Clone for GetResponseBodyReturnObject
impl Clone for GetResponseBodyReturnObject
Source§fn clone(&self) -> GetResponseBodyReturnObject
fn clone(&self) -> GetResponseBodyReturnObject
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 moreSource§impl Debug for GetResponseBodyReturnObject
impl Debug for GetResponseBodyReturnObject
Source§impl<'de> Deserialize<'de> for GetResponseBodyReturnObject
impl<'de> Deserialize<'de> for GetResponseBodyReturnObject
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 StructuralPartialEq for GetResponseBodyReturnObject
Auto Trait Implementations§
impl Freeze for GetResponseBodyReturnObject
impl RefUnwindSafe for GetResponseBodyReturnObject
impl Send for GetResponseBodyReturnObject
impl Sync for GetResponseBodyReturnObject
impl Unpin for GetResponseBodyReturnObject
impl UnsafeUnpin for GetResponseBodyReturnObject
impl UnwindSafe for GetResponseBodyReturnObject
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