pub struct CustomResponse {
pub status: Option<u16>,
pub body: Option<String>,
}Expand description
A response a custom function hands back.
status is the response’s status code when it carries one (the
reference’s response_status ... else "unknown" metadata arm); body
is the response body when the function authors one (the reference’s
_SimpleResponse), the family default rendering otherwise.
Fields§
§status: Option<u16>The response’s status code, None for a response without one.
body: Option<String>The response body, None for the family default shape.
Trait Implementations§
Source§impl Clone for CustomResponse
impl Clone for CustomResponse
Source§impl Debug for CustomResponse
impl Debug for CustomResponse
impl Eq for CustomResponse
Source§impl PartialEq for CustomResponse
impl PartialEq for CustomResponse
impl StructuralPartialEq for CustomResponse
Auto Trait Implementations§
impl Freeze for CustomResponse
impl RefUnwindSafe for CustomResponse
impl Send for CustomResponse
impl Sync for CustomResponse
impl Unpin for CustomResponse
impl UnsafeUnpin for CustomResponse
impl UnwindSafe for CustomResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.