Add missing Clone and Debug impls.

This commit is contained in:
Jimmy Cuadra 2016-10-01 04:04:13 -07:00
parent b992542fae
commit 7c71473854

View File

@ -14,6 +14,7 @@ pub mod register {
pub struct Endpoint; pub struct Endpoint;
/// This API endpoint's query string parameters. /// This API endpoint's query string parameters.
#[derive(Clone, Debug)]
pub struct QueryParams { pub struct QueryParams {
pub kind: Option<RegistrationKind>, pub kind: Option<RegistrationKind>,
} }
@ -57,11 +58,20 @@ pub mod register {
/// POST /_matrix/client/r0/account/password/email/requestToken /// POST /_matrix/client/r0/account/password/email/requestToken
pub mod request_password_change_token { pub mod request_password_change_token {
/// This API endpoint's body parameters.
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct BodyParams {
pub client_secret: String,
pub email: String,
pub id_server: Option<String>,
pub send_attempt: u64,
}
/// Details about this API endpoint. /// Details about this API endpoint.
pub struct Endpoint; pub struct Endpoint;
impl ::Endpoint for Endpoint { impl ::Endpoint for Endpoint {
type BodyParams = (); type BodyParams = BodyParams;
type PathParams = (); type PathParams = ();
type QueryParams = (); type QueryParams = ();
type Response = (); type Response = ();