Implement serialization for QueryParams.
This commit is contained in:
parent
8100c542ff
commit
28598352aa
@ -11,10 +11,10 @@ repository = "https://github.com/ruma/ruma-client-api"
|
||||
version = "0.1.0"
|
||||
|
||||
[dependencies]
|
||||
ruma-api = "0.1.0"
|
||||
ruma-events = "0.2.0"
|
||||
ruma-api = "0.2.0"
|
||||
ruma-events = "0.3.0"
|
||||
ruma-identifiers = "0.6.0"
|
||||
ruma-signatures = "0.1.0"
|
||||
serde = "0.8.19"
|
||||
serde_derive = "0.8.19"
|
||||
serde = "0.8.21"
|
||||
serde_derive = "0.8.21"
|
||||
serde_json = "0.8.4"
|
||||
|
@ -2,7 +2,6 @@
|
||||
//! endpoint in the [Matrix](https://matrix.org/) client API specification. These types can be
|
||||
//! shared by client and server code.
|
||||
|
||||
#![feature(proc_macro)]
|
||||
#![deny(missing_debug_implementations)]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
|
@ -82,7 +82,7 @@ pub mod get_content_thumbnail {
|
||||
pub struct Endpoint;
|
||||
|
||||
/// The desired resizing method.
|
||||
#[derive(Clone, Copy, Debug)]
|
||||
#[derive(Clone, Copy, Debug, Deserialize, Serialize)]
|
||||
pub enum Method {
|
||||
/// Crop the original to produce the requested image dimensions.
|
||||
Crop,
|
||||
@ -100,7 +100,7 @@ pub mod get_content_thumbnail {
|
||||
}
|
||||
|
||||
/// This API endpoint's query string parameters.
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct QueryParams {
|
||||
/// The *desired* height of the thumbnail. The actual thumbnail may not match the size
|
||||
/// specified.
|
||||
|
@ -141,7 +141,7 @@ pub mod search_events {
|
||||
}
|
||||
|
||||
/// This API endpoint's query string parameters.
|
||||
#[derive(Clone, Debug)]
|
||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||
pub struct QueryParams {
|
||||
/// The point to return events from.
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user