pub struct ImATeapot<T = ()>(pub T);Expand description
418 I’m a teapot
Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for ImATeapot<T>
Source§impl<T, S> From<ImATeapot<T>> for ApiResponse<S>
impl<T, S> From<ImATeapot<T>> for ApiResponse<S>
Source§impl<T> StatusProvider for ImATeapot<T>
impl<T> StatusProvider for ImATeapot<T>
Source§const STATUS_CODE: StatusCode = StatusCode::IM_A_TEAPOT
const STATUS_CODE: StatusCode = StatusCode::IM_A_TEAPOT
The status code associated with type.
type WithInner<R> = ImATeapot<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 ImATeapot<T>where
T: Freeze,
impl<T> RefUnwindSafe for ImATeapot<T>where
T: RefUnwindSafe,
impl<T> Send for ImATeapot<T>where
T: Send,
impl<T> Sync for ImATeapot<T>where
T: Sync,
impl<T> Unpin for ImATeapot<T>where
T: Unpin,
impl<T> UnsafeUnpin for ImATeapot<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ImATeapot<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