pub struct ApiError {
pub api_version: String,
pub kind: String,
pub status: String,
pub message: String,
pub reason: String,
pub code: u16,
}Expand description
API error response
Fields§
§api_version: StringAPI version of the error envelope.
kind: StringResource kind (always "Status" for errors).
status: StringStatus string (e.g. "Failure").
message: StringHuman-readable error message.
reason: StringMachine-readable reason (e.g. "NotFound").
code: u16HTTP status code.
Trait Implementations§
Source§impl IntoResponse for ApiError
impl IntoResponse for ApiError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl Freeze for ApiError
impl RefUnwindSafe for ApiError
impl Send for ApiError
impl Sync for ApiError
impl Unpin for ApiError
impl UnsafeUnpin for ApiError
impl UnwindSafe for ApiError
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