client-api: Reorder send_message_event Request fields

So path params are in the order they occur in the path.
This commit is contained in:
Jonas Platte 2021-06-15 09:56:43 +02:00
parent 8f6a7aeedc
commit ed7f673d0e
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -20,6 +20,10 @@ ruma_api! {
#[ruma_api(path)] #[ruma_api(path)]
pub room_id: &'a RoomId, 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. /// The transaction ID for this event.
/// ///
/// Clients should generate an ID unique across requests with the /// Clients should generate an ID unique across requests with the
@ -28,10 +32,6 @@ ruma_api! {
#[ruma_api(path)] #[ruma_api(path)]
pub txn_id: &'a str, pub txn_id: &'a str,
/// The type of event to send.
#[ruma_api(path)]
pub event_type: &'a str,
/// The event content to send. /// The event content to send.
#[ruma_api(body)] #[ruma_api(body)]
pub body: Raw<AnyMessageEventContent>, pub body: Raw<AnyMessageEventContent>,