Struct mailjet_rs::Error
source · pub struct Error {
pub status_code: StatusCode,
pub message: String,
}
Fields§
§status_code: StatusCode
§message: String
Implementations§
source§impl Error
impl Error
sourcepub async fn from_api_response(status_code: StatusCode, body: Body) -> Self
pub async fn from_api_response(status_code: StatusCode, body: Body) -> Self
Creates an Error
instance from the API response