pub enum RequestMiddlewareResponse {
HttpRequest(HttpRequest),
HttpResponse(HttpResponse),
}
Expand description
A response from pre-request middleware
Variants§
Trait Implementations§
Source§impl Clone for RequestMiddlewareResponse
impl Clone for RequestMiddlewareResponse
Source§fn clone(&self) -> RequestMiddlewareResponse
fn clone(&self) -> RequestMiddlewareResponse
Returns a copy 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 RequestMiddlewareResponse
impl Debug for RequestMiddlewareResponse
Source§impl<'de> Deserialize<'de> for RequestMiddlewareResponse
impl<'de> Deserialize<'de> for RequestMiddlewareResponse
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
impl StructuralPartialEq for RequestMiddlewareResponse
Auto Trait Implementations§
impl Freeze for RequestMiddlewareResponse
impl RefUnwindSafe for RequestMiddlewareResponse
impl Send for RequestMiddlewareResponse
impl Sync for RequestMiddlewareResponse
impl Unpin for RequestMiddlewareResponse
impl UnwindSafe for RequestMiddlewareResponse
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