Enum ruma_api::error::DeserializationError [−][src]
#[non_exhaustive]
pub enum DeserializationError {
Utf8(Utf8Error),
Json(Error),
Query(Error),
Ident(Error),
Header(HeaderDeserializationError),
}Expand description
An error when converting a http request / response to one of ruma’s endpoint-specific request / response types.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Encountered invalid UTF-8.
Tuple Fields of Utf8
0: Utf8ErrorJSON deserialization failed.
Tuple Fields of Json
0: ErrorQuery parameter deserialization failed.
Tuple Fields of Query
0: ErrorGot an invalid identifier.
Header value deserialization failed.
Tuple Fields of Header
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.