pub struct FulfillOptionsBuilder { /* private fields */ }Expand description
Builder for FulfillOptions
Implementations§
Source§impl FulfillOptionsBuilder
impl FulfillOptionsBuilder
Sourcepub fn body_string(self, body: impl Into<String>) -> Self
pub fn body_string(self, body: impl Into<String>) -> Self
Sets the response body from a string
Sourcepub fn json(self, value: &impl Serialize) -> Result<Self>
pub fn json(self, value: &impl Serialize) -> Result<Self>
Sets the response body from JSON (automatically sets content-type to application/json)
Sourcepub fn content_type(self, content_type: impl Into<String>) -> Self
pub fn content_type(self, content_type: impl Into<String>) -> Self
Sets the Content-Type header
Sourcepub fn build(self) -> FulfillOptions
pub fn build(self) -> FulfillOptions
Builds the FulfillOptions
Trait Implementations§
Source§impl Clone for FulfillOptionsBuilder
impl Clone for FulfillOptionsBuilder
Source§fn clone(&self) -> FulfillOptionsBuilder
fn clone(&self) -> FulfillOptionsBuilder
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 FulfillOptionsBuilder
impl Debug for FulfillOptionsBuilder
Source§impl Default for FulfillOptionsBuilder
impl Default for FulfillOptionsBuilder
Source§fn default() -> FulfillOptionsBuilder
fn default() -> FulfillOptionsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FulfillOptionsBuilder
impl RefUnwindSafe for FulfillOptionsBuilder
impl Send for FulfillOptionsBuilder
impl Sync for FulfillOptionsBuilder
impl Unpin for FulfillOptionsBuilder
impl UnwindSafe for FulfillOptionsBuilder
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