Borrow strings and identifiers in send_state_event_*

This commit is contained in:
Jonas Platte 2020-08-08 14:36:31 +02:00
parent 2e683b2fd4
commit 349027f87d
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
2 changed files with 5 additions and 5 deletions

View File

@ -18,7 +18,7 @@ ruma_api! {
request: {
/// The room to set the state in.
#[ruma_api(path)]
pub room_id: RoomId,
pub room_id: &'a RoomId,
/// The type of event to send.
#[ruma_api(path)]
@ -33,7 +33,7 @@ ruma_api! {
response: {
/// A unique identifier for the event.
pub event_id: EventId,
pub event_id: &'a EventId,
}
error: crate::Error

View File

@ -18,7 +18,7 @@ ruma_api! {
request: {
/// The room to set the state in.
#[ruma_api(path)]
pub room_id: RoomId,
pub room_id: &'a RoomId,
/// The type of event to send.
#[ruma_api(path)]
@ -26,7 +26,7 @@ ruma_api! {
/// The state_key for the state to send. Defaults to the empty string.
#[ruma_api(path)]
pub state_key: String,
pub state_key: &'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
@ -37,7 +37,7 @@ ruma_api! {
response: {
/// A unique identifier for the event.
pub event_id: EventId,
pub event_id: &'a EventId,
}
error: crate::Error