pub struct AuthErrorResponse(pub AuthError);Expand description
Newtype wrapper so we can implement axum’s IntoResponse for
AuthError without violating the orphan rule.
Tuple Fields§
§0: AuthErrorTrait Implementations§
Source§impl From<AuthError> for AuthErrorResponse
impl From<AuthError> for AuthErrorResponse
Source§impl IntoResponse for AuthErrorResponse
impl IntoResponse for AuthErrorResponse
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for AuthErrorResponse
impl RefUnwindSafe for AuthErrorResponse
impl Send for AuthErrorResponse
impl Sync for AuthErrorResponse
impl Unpin for AuthErrorResponse
impl UnsafeUnpin for AuthErrorResponse
impl UnwindSafe for AuthErrorResponse
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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