Require that Endpoint::QueryParams be Deserialize + Serialize.

This commit is contained in:
Jimmy Cuadra 2017-01-07 05:17:57 -08:00
parent 0fd9fb4889
commit f88588f392
2 changed files with 4 additions and 4 deletions

View File

@ -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"

View File

@ -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;