Require that Endpoint::QueryParams be Deserialize + Serialize.
This commit is contained in:
parent
0fd9fb4889
commit
f88588f392
@ -11,8 +11,8 @@ repository = "https://github.com/ruma/ruma-api"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
serde = "0.8.19"
|
||||
serde = "0.8.21"
|
||||
|
||||
[dev-dependencies]
|
||||
ruma-identifiers = "0.5.0"
|
||||
serde_derive = "0.8.19"
|
||||
ruma-identifiers = "0.6.0"
|
||||
serde_derive = "0.8.21"
|
||||
|
@ -88,7 +88,7 @@ pub trait Endpoint {
|
||||
type PathParams;
|
||||
|
||||
/// Parameters supplied via the URL's query string.
|
||||
type QueryParams;
|
||||
type QueryParams: Deserialize + Serialize;
|
||||
|
||||
/// The body of the response.
|
||||
type Response: Deserialize + Serialize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user