pub struct Conflict<T = ()>(pub T);Expand description
409 Conflict
Tuple Fields§
§0: TTrait Implementations§
impl<T: Copy> Copy for Conflict<T>
Source§impl<T, S> From<Conflict<T>> for ApiResponse<S>
impl<T, S> From<Conflict<T>> for ApiResponse<S>
Source§impl<T> StatusProvider for Conflict<T>
impl<T> StatusProvider for Conflict<T>
Source§const STATUS_CODE: StatusCode = StatusCode::CONFLICT
const STATUS_CODE: StatusCode = StatusCode::CONFLICT
The status code of this wrapper.
Source§type WithInner<R> = Conflict<R>
type WithInner<R> = Conflict<R>
The same status code with a different body type, for example
NotFound<T> for
NotFound<String>.Source§fn into_inner(self) -> Self::Inner
fn into_inner(self) -> Self::Inner
Returns the wrapped body.
Source§fn into_set<E>(self) -> ApiResponse<E>
fn into_set<E>(self) -> ApiResponse<E>
Converts into an
ApiResponse whose set contains this status code. This is the
same as calling into().Auto Trait Implementations§
impl<T> Freeze for Conflict<T>where
T: Freeze,
impl<T> RefUnwindSafe for Conflict<T>where
T: RefUnwindSafe,
impl<T> Send for Conflict<T>where
T: Send,
impl<T> Sync for Conflict<T>where
T: Sync,
impl<T> Unpin for Conflict<T>where
T: Unpin,
impl<T> UnsafeUnpin for Conflict<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Conflict<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