From d140eff32452b10ba38793dcfa40cd74ed7a0d75 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Mon, 11 Nov 2019 22:55:37 +0100 Subject: [PATCH] Fix wrong parameter type in get_message_events --- src/r0/sync/get_message_events.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r0/sync/get_message_events.rs b/src/r0/sync/get_message_events.rs index 56c542c2..7944c6c3 100644 --- a/src/r0/sync/get_message_events.rs +++ b/src/r0/sync/get_message_events.rs @@ -25,6 +25,7 @@ ruma_api! { /// This token can be obtained from a /// prev_batch token returned for each room by the sync API, or from a start or end token /// returned by a previous request to this endpoint. + #[ruma_api(query)] pub from: String, /// The token to stop returning events at. /// @@ -32,13 +33,16 @@ ruma_api! { /// token returned for each room by the sync endpoint, or from a start or end token returned /// by a previous request to this endpoint. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub to: Option, /// The direction to return events from. + #[ruma_api(query)] pub dir: Direction, /// The maximum number of events to return. /// /// Default: 10. #[serde(skip_serializing_if = "Option::is_none")] + #[ruma_api(query)] pub limit: Option, }