pub struct OcpiErrorResponse { /* private fields */ }Available on crate feature
server only.Expand description
The HTTP response an OcpiError becomes.
The mapping is OcpiError::http_status, which encodes the whole of §status_codes: only five
situations get an HTTP error, and everything that reached the OCPI layer is a 200 OK with a
four-digit code in the body.
Implementations§
Trait Implementations§
Source§impl Debug for OcpiErrorResponse
impl Debug for OcpiErrorResponse
Source§impl From<OcpiError> for OcpiErrorResponse
impl From<OcpiError> for OcpiErrorResponse
Source§impl IntoResponse for OcpiErrorResponse
impl IntoResponse for OcpiErrorResponse
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for OcpiErrorResponse
impl RefUnwindSafe for OcpiErrorResponse
impl Send for OcpiErrorResponse
impl Sync for OcpiErrorResponse
impl Unpin for OcpiErrorResponse
impl UnsafeUnpin for OcpiErrorResponse
impl UnwindSafe for OcpiErrorResponse
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