pub enum JsonBodyOutcome<T> {
Params(T),
Response(Response),
}Expand description
Outcome of extracting an optional JSON body: either the parsed (or defaulted) value, or a response to return immediately because extraction failed for a reason other than “no body was sent”.
Variants§
Auto Trait Implementations§
impl<T> Freeze for JsonBodyOutcome<T>where
T: Freeze,
impl<T> !RefUnwindSafe for JsonBodyOutcome<T>
impl<T> Send for JsonBodyOutcome<T>where
T: Send,
impl<T> !Sync for JsonBodyOutcome<T>
impl<T> Unpin for JsonBodyOutcome<T>where
T: Unpin,
impl<T> UnsafeUnpin for JsonBodyOutcome<T>where
T: UnsafeUnpin,
impl<T> !UnwindSafe for JsonBodyOutcome<T>
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