Struct warg_server::api::v1::Json
source · pub struct Json<T>(pub T);Expand description
An extractor that wraps the JSON extractor of Axum.
This extractor returns an API error on rejection.
Tuple Fields§
§0: TTrait Implementations§
source§impl<B, S, T> FromRequest<S, B> for Json<T>where
Json<T>: FromRequest<S, B>,
Error: From<<Json<T> as FromRequest<S, B>>::Rejection>,
B: Send + 'static,
S: Send + Sync,
impl<B, S, T> FromRequest<S, B> for Json<T>where Json<T>: FromRequest<S, B>, Error: From<<Json<T> as FromRequest<S, B>>::Rejection>, B: Send + 'static, S: Send + Sync,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Json<T>where T: RefUnwindSafe,
impl<T> Send for Json<T>where T: Send,
impl<T> Sync for Json<T>where T: Sync,
impl<T> Unpin for Json<T>where T: Unpin,
impl<T> UnwindSafe for Json<T>where T: UnwindSafe,
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