pub struct FulfillRequest { /* private fields */ }Expand description
Provides response to the request.
Implementations§
Source§impl FulfillRequest
impl FulfillRequest
pub fn new( request_id: impl Into<RequestId>, response_code: impl Into<i64>, ) -> Self
pub fn with_response_headers( self, response_headers: impl Into<Vec<HeaderEntry>>, ) -> Self
pub fn with_binary_response_headers( self, binary_response_headers: impl Into<String>, ) -> Self
pub fn with_body(self, body: impl Into<String>) -> Self
pub fn with_response_phrase(self, response_phrase: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for FulfillRequest
impl Clone for FulfillRequest
Source§fn clone(&self) -> FulfillRequest
fn clone(&self) -> FulfillRequest
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 Command for FulfillRequest
impl Command for FulfillRequest
Source§impl Debug for FulfillRequest
impl Debug for FulfillRequest
Auto Trait Implementations§
impl Freeze for FulfillRequest
impl RefUnwindSafe for FulfillRequest
impl Send for FulfillRequest
impl Sync for FulfillRequest
impl Unpin for FulfillRequest
impl UnwindSafe for FulfillRequest
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