pub struct NotAcceptable<T = ()>(pub T);Expand description
406 Not Acceptable
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Clone> Clone for NotAcceptable<T>
impl<T: Clone> Clone for NotAcceptable<T>
Source§fn clone(&self) -> NotAcceptable<T>
fn clone(&self) -> NotAcceptable<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for NotAcceptable<T>
Source§impl<T: Debug> Debug for NotAcceptable<T>
impl<T: Debug> Debug for NotAcceptable<T>
Source§impl<T, R, S> From<NotAcceptable<R>> for ErrorSet<S, T>
impl<T, R, S> From<NotAcceptable<R>> for ErrorSet<S, T>
Source§fn from(err: NotAcceptable<R>) -> Self
fn from(err: NotAcceptable<R>) -> Self
Converts to this type from the input type.
Source§impl<T> StatusWrapper for NotAcceptable<T>
impl<T> StatusWrapper for NotAcceptable<T>
Source§const STATUS_CODE: StatusCode = StatusCode::NOT_ACCEPTABLE
const STATUS_CODE: StatusCode = StatusCode::NOT_ACCEPTABLE
The status code associated with type.
Source§type Pure = NotAcceptable
type Pure = NotAcceptable
The pure type of this status wrapper, without any inner value.
Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Convert this status wrapper into its inner value.
Auto Trait Implementations§
impl<T> Freeze for NotAcceptable<T>where
T: Freeze,
impl<T> RefUnwindSafe for NotAcceptable<T>where
T: RefUnwindSafe,
impl<T> Send for NotAcceptable<T>where
T: Send,
impl<T> Sync for NotAcceptable<T>where
T: Sync,
impl<T> Unpin for NotAcceptable<T>where
T: Unpin,
impl<T> UnsafeUnpin for NotAcceptable<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for NotAcceptable<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