api: allow constructing MatrixErrorBody::NotJson
This commit is contained in:
parent
7a8ca45bbe
commit
0286bcfa2f
@ -28,6 +28,8 @@ Improvements:
|
|||||||
- Constructing a Matrix URI for an event with a room alias is deprecated,
|
- Constructing a Matrix URI for an event with a room alias is deprecated,
|
||||||
according to MSC4132 / Matrix 1.11
|
according to MSC4132 / Matrix 1.11
|
||||||
- Implement `Eq` and `PartialEq` for `Metadata`
|
- Implement `Eq` and `PartialEq` for `Metadata`
|
||||||
|
- Allow constructing `api::error::MatrixErrorBody::NotJson` outside of this
|
||||||
|
crate.
|
||||||
|
|
||||||
# 0.13.0
|
# 0.13.0
|
||||||
|
|
||||||
|
@ -70,7 +70,6 @@ pub enum MatrixErrorBody {
|
|||||||
Json(JsonValue),
|
Json(JsonValue),
|
||||||
|
|
||||||
/// A response body that is not valid JSON.
|
/// A response body that is not valid JSON.
|
||||||
#[non_exhaustive]
|
|
||||||
NotJson {
|
NotJson {
|
||||||
/// The raw bytes of the response body.
|
/// The raw bytes of the response body.
|
||||||
bytes: Bytes,
|
bytes: Bytes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user