pub struct FulfillRequestParamsBuilder<'a> { /* private fields */ }Implementations§
Source§impl<'a> FulfillRequestParamsBuilder<'a>
impl<'a> FulfillRequestParamsBuilder<'a>
Sourcepub fn responseHeaders(self, responseHeaders: Vec<HeaderEntry<'a>>) -> Self
pub fn responseHeaders(self, responseHeaders: Vec<HeaderEntry<'a>>) -> Self
Response headers.
Sourcepub fn binaryResponseHeaders(
self,
binaryResponseHeaders: impl Into<Cow<'a, str>>,
) -> Self
pub fn binaryResponseHeaders( self, binaryResponseHeaders: impl Into<Cow<'a, str>>, ) -> Self
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. (Encoded as a base64 string when passed over JSON)
Sourcepub fn body(self, body: impl Into<Cow<'a, str>>) -> Self
pub fn body(self, body: impl Into<Cow<'a, str>>) -> Self
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. (Encoded as a base64 string when passed over JSON)
Sourcepub fn responsePhrase(self, responsePhrase: impl Into<Cow<'a, str>>) -> Self
pub fn responsePhrase(self, responsePhrase: impl Into<Cow<'a, str>>) -> Self
A textual representation of responseCode. If absent, a standard phrase matching responseCode is used.
pub fn build(self) -> FulfillRequestParams<'a>
Auto Trait Implementations§
impl<'a> Freeze for FulfillRequestParamsBuilder<'a>
impl<'a> RefUnwindSafe for FulfillRequestParamsBuilder<'a>
impl<'a> Send for FulfillRequestParamsBuilder<'a>
impl<'a> Sync for FulfillRequestParamsBuilder<'a>
impl<'a> Unpin for FulfillRequestParamsBuilder<'a>
impl<'a> UnsafeUnpin for FulfillRequestParamsBuilder<'a>
impl<'a> UnwindSafe for FulfillRequestParamsBuilder<'a>
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