pub struct UndocumentedAxum<T>(pub T);Expand description
General-purpose wrapper for types that implement axum’s traits and should be used with this crate, but without modifying the API description.
This type implements FromRequest, FromRequestParts and IntoResponse for Ts that
implement the corresponding trait in axum.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<S, T> FromRequest<S> for UndocumentedAxum<T>
impl<S, T> FromRequest<S> for UndocumentedAxum<T>
Source§impl<S, T> FromRequestParts<S> for UndocumentedAxum<T>
impl<S, T> FromRequestParts<S> for UndocumentedAxum<T>
Source§impl<T: IntoResponse> IntoResponse for UndocumentedAxum<T>
impl<T: IntoResponse> IntoResponse for UndocumentedAxum<T>
Source§fn openapi(_: &mut Registry) -> Responses
fn openapi(_: &mut Registry) -> Responses
Describes the responses generated via the
into_response function.Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Converts this value into an axum response.
Auto Trait Implementations§
impl<T> Freeze for UndocumentedAxum<T>where
T: Freeze,
impl<T> RefUnwindSafe for UndocumentedAxum<T>where
T: RefUnwindSafe,
impl<T> Send for UndocumentedAxum<T>where
T: Send,
impl<T> Sync for UndocumentedAxum<T>where
T: Sync,
impl<T> Unpin for UndocumentedAxum<T>where
T: Unpin,
impl<T> UnsafeUnpin for UndocumentedAxum<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UndocumentedAxum<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