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.
Utf8(Utf8Error)
Encountered invalid UTF-8.
Json(Error)
JSON deserialization failed.
Query(Error)
Query parameter deserialization failed.
Got an invalid identifier.
Header(HeaderDeserializationError)
Header value deserialization failed.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl !UnwindSafe for DeserializationError