pub struct NotFound<T = ()>(pub T);Expand description
404 Not Found
Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for NotFound<T>
Source§impl<T, S> From<NotFound<T>> for ApiResponse<S>
impl<T, S> From<NotFound<T>> for ApiResponse<S>
Source§impl<T> StatusProvider for NotFound<T>
impl<T> StatusProvider for NotFound<T>
Source§const STATUS_CODE: StatusCode = StatusCode::NOT_FOUND
const STATUS_CODE: StatusCode = StatusCode::NOT_FOUND
The status code associated with type.
type WithInner<R> = NotFound<R>
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Convert this status wrapper into its inner value.
Source§fn into_set<E>(self) -> ApiResponse<E>
fn into_set<E>(self) -> ApiResponse<E>
Convert this status wrapper into an [
ApiErrorSet] with the
given inner value type. (into can be used as well)Auto Trait Implementations§
impl<T> Freeze for NotFound<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotFound<T>where
T: RefUnwindSafe,
impl<T> Send for NotFound<T>where
T: Send,
impl<T> Sync for NotFound<T>where
T: Sync,
impl<T> Unpin for NotFound<T>where
T: Unpin,
impl<T> UnsafeUnpin for NotFound<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NotFound<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