pub struct APIError {
pub code: String,
pub message: String,
pub path: Option<String>,
}Expand description
APIError represents a single error returned in an API error response.
Fields§
§code: StringThe error code
message: StringThe human-readable error message
path: Option<String>An optional path to where the error occured
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
Auto Trait Implementations§
impl Freeze for APIError
impl RefUnwindSafe for APIError
impl Send for APIError
impl Sync for APIError
impl Unpin 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