pub struct GetResponseBodyReturns {
pub body: String,
pub base64Encoded: 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.
base64Encoded: boolTrue, if content was sent as base64.
Trait Implementations§
Source§impl Clone for GetResponseBodyReturns
impl Clone for GetResponseBodyReturns
Source§fn clone(&self) -> GetResponseBodyReturns
fn clone(&self) -> GetResponseBodyReturns
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 GetResponseBodyReturns
impl Debug for GetResponseBodyReturns
Source§impl Default for GetResponseBodyReturns
impl Default for GetResponseBodyReturns
Source§fn default() -> GetResponseBodyReturns
fn default() -> GetResponseBodyReturns
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetResponseBodyReturns
impl<'de> Deserialize<'de> for GetResponseBodyReturns
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
Auto Trait Implementations§
impl Freeze for GetResponseBodyReturns
impl RefUnwindSafe for GetResponseBodyReturns
impl Send for GetResponseBodyReturns
impl Sync for GetResponseBodyReturns
impl Unpin for GetResponseBodyReturns
impl UnsafeUnpin for GetResponseBodyReturns
impl UnwindSafe for GetResponseBodyReturns
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