Borrow strings and identifiers in send_message_event

This commit is contained in:
Jonas Platte 2020-08-08 14:28:07 +02:00
parent 582cc9fe2a
commit 2e683b2fd4
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -18,7 +18,7 @@ ruma_api! {
request: {
/// The room to send the event to.
#[ruma_api(path)]
pub room_id: RoomId,
pub room_id: &'a RoomId,
/// The type of event to send.
#[ruma_api(path)]
@ -30,7 +30,7 @@ ruma_api! {
/// same access token; it will be used by the server to ensure
/// idempotency of requests.
#[ruma_api(path)]
pub txn_id: String,
pub txn_id: &'a str,
/// The event's content. The type for this field will be updated in a
/// future release, until then you can create a value using
@ -41,7 +41,7 @@ ruma_api! {
response: {
/// A unique identifier for the event.
pub event_id: EventId,
pub event_id: &'a EventId,
}
error: crate::Error