pub struct Undocumented<T>(pub T);Expand description
General-purpose wrapper for things that should not be added to the API description.
This type implements FromRequest, FromRequestParts and IntoResponse for Ts that
implement the respective trait.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<S, T> FromRequest<S> for Undocumented<T>
impl<S, T> FromRequest<S> for Undocumented<T>
Source§impl<S, T> FromRequestParts<S> for Undocumented<T>
impl<S, T> FromRequestParts<S> for Undocumented<T>
Source§impl<T: IntoResponse> IntoResponse for Undocumented<T>
impl<T: IntoResponse> IntoResponse for Undocumented<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 Undocumented<T>where
T: Freeze,
impl<T> RefUnwindSafe for Undocumented<T>where
T: RefUnwindSafe,
impl<T> Send for Undocumented<T>where
T: Send,
impl<T> Sync for Undocumented<T>where
T: Sync,
impl<T> Unpin for Undocumented<T>where
T: Unpin,
impl<T> UnsafeUnpin for Undocumented<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Undocumented<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