From ed7f673d0e95651b9a1f768fed9cb9e1f1bb2eb9 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Tue, 15 Jun 2021 09:56:43 +0200 Subject: [PATCH] client-api: Reorder send_message_event Request fields So path params are in the order they occur in the path. --- .../ruma-client-api/src/r0/message/send_message_event.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/ruma-client-api/src/r0/message/send_message_event.rs b/crates/ruma-client-api/src/r0/message/send_message_event.rs index e53261f6..809c5a2b 100644 --- a/crates/ruma-client-api/src/r0/message/send_message_event.rs +++ b/crates/ruma-client-api/src/r0/message/send_message_event.rs @@ -20,6 +20,10 @@ ruma_api! { #[ruma_api(path)] pub room_id: &'a RoomId, + /// The type of event to send. + #[ruma_api(path)] + pub event_type: &'a str, + /// The transaction ID for this event. /// /// Clients should generate an ID unique across requests with the @@ -28,10 +32,6 @@ ruma_api! { #[ruma_api(path)] pub txn_id: &'a str, - /// The type of event to send. - #[ruma_api(path)] - pub event_type: &'a str, - /// The event content to send. #[ruma_api(body)] pub body: Raw,