pub struct LxRejection { /* private fields */ }Expand description
Our own axum::extract::rejection type with an IntoResponse impl
which conforms to Lexe’s API. Contains the source rejection’s error text.
Implementations§
Source§impl LxRejection
impl LxRejection
pub fn from_ed25519(error: Error) -> Self
pub fn from_bearer_auth(error: Error) -> Self
pub fn proxy(error: impl Display) -> Self
Trait Implementations§
Source§impl From<BytesRejection> for LxRejection
impl From<BytesRejection> for LxRejection
Source§fn from(bytes_rejection: BytesRejection) -> Self
fn from(bytes_rejection: BytesRejection) -> Self
Converts to this type from the input type.
Source§impl From<JsonRejection> for LxRejection
impl From<JsonRejection> for LxRejection
Source§fn from(json_rejection: JsonRejection) -> Self
fn from(json_rejection: JsonRejection) -> Self
Converts to this type from the input type.
Source§impl From<PathRejection> for LxRejection
impl From<PathRejection> for LxRejection
Source§fn from(path_rejection: PathRejection) -> Self
fn from(path_rejection: PathRejection) -> Self
Converts to this type from the input type.
Source§impl From<QueryRejection> for LxRejection
impl From<QueryRejection> for LxRejection
Source§fn from(query_rejection: QueryRejection) -> Self
fn from(query_rejection: QueryRejection) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for LxRejection
impl IntoResponse for LxRejection
Source§fn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Create a response.
Auto Trait Implementations§
impl Freeze for LxRejection
impl RefUnwindSafe for LxRejection
impl Send for LxRejection
impl Sync for LxRejection
impl Unpin for LxRejection
impl UnsafeUnpin for LxRejection
impl UnwindSafe for LxRejection
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