Enum lambda_http::ext::request::PayloadError
source · pub enum PayloadError {
Json(Error),
WwwFormUrlEncoded(SerdeError),
}
Expand description
Request payload deserialization errors
Returned by RequestPayloadExt::payload()
Variants§
Json(Error)
Returned when application/json
bodies fail to deserialize a payload
WwwFormUrlEncoded(SerdeError)
Returned when application/x-www-form-urlencoded
bodies fail to deserialize a payload
Trait Implementations§
source§impl Debug for PayloadError
impl Debug for PayloadError
source§impl Display for PayloadError
impl Display for PayloadError
source§impl Error for PayloadError
impl Error for PayloadError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()