Struct ruma_client_api::r0::config::set_room_account_data::Request
source · pub struct Request {
pub data: Value,
pub event_type: String,
pub room_id: RoomId,
pub user_id: UserId,
}Expand description
Data for a request to this API endpoint.
Fields§
§data: ValueArbitrary JSON to store as config data.
event_type: StringThe event type of the account_data to set.
Custom types should be namespaced to avoid clashes.
room_id: RoomIdThe ID of the room to set account_data on.
user_id: UserIdThe ID of the user to set account_data for.
The access token must be authorized to make requests for this user ID.