pub struct ApiError {
pub code: String,
pub feature: Option<String>,
pub message: String,
pub param: Option<String>,
pub request_id: Option<String>,
pub details: Option<Box<ErrorDetails>>,
}Expand description
HTTP error body used by LoonFS APIs.
Fields§
§code: StringThe stable machine-readable error code as a string.
feature: Option<String>The capability feature key for a not_supported error.
message: StringHuman-readable error message.
param: Option<String>The invalid JSON Pointer, parameter name, CLI flag, or CLI argument.
request_id: Option<String>The request correlation ID also sent in the x-request-id response header.
details: Option<Box<ErrorDetails>>The optional machine-readable context for the error code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiError
impl<'de> Deserialize<'de> for ApiError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ApiError
impl StructuralPartialEq for ApiError
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