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: String
The error code
message: String
The 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