pub struct FulfillRequestParams {
pub request_id: RequestId,
pub response_code: i64,
pub response_headers: Option<Vec<HeaderEntry>>,
pub binary_response_headers: Option<Binary>,
pub body: Option<Binary>,
pub response_phrase: Option<String>,
}Expand description
Provides response to the request. fulfillRequest
Fields§
§request_id: RequestIdAn id the client received in requestPaused event.
response_code: i64An HTTP response code.
response_headers: Option<Vec<HeaderEntry>>Response headers.
binary_response_headers: Option<Binary>Alternative way of specifying response headers as a \0-separated series of name: value pairs. Prefer the above method unless you need to represent some non-UTF8 values that can’t be transmitted over the protocol as text.
body: Option<Binary>A response body. If absent, original response body will be used if the request is intercepted at the response stage and empty body will be used if the request is intercepted at the request stage.
response_phrase: Option<String>A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
Implementations§
Trait Implementations§
Source§impl Clone for FulfillRequestParams
impl Clone for FulfillRequestParams
Source§fn clone(&self) -> FulfillRequestParams
fn clone(&self) -> FulfillRequestParams
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 FulfillRequestParams
impl Debug for FulfillRequestParams
Source§impl<'de> Deserialize<'de> for FulfillRequestParams
impl<'de> Deserialize<'de> for FulfillRequestParams
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
Source§impl PartialEq for FulfillRequestParams
impl PartialEq for FulfillRequestParams
Source§impl Serialize for FulfillRequestParams
impl Serialize for FulfillRequestParams
impl StructuralPartialEq for FulfillRequestParams
Auto Trait Implementations§
impl Freeze for FulfillRequestParams
impl RefUnwindSafe for FulfillRequestParams
impl Send for FulfillRequestParams
impl Sync for FulfillRequestParams
impl Unpin for FulfillRequestParams
impl UnsafeUnpin for FulfillRequestParams
impl UnwindSafe for FulfillRequestParams
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