client-api: Add language field to search_users request

This commit is contained in:
Jonas Platte 2020-08-21 20:27:25 +02:00
parent d8340db310
commit 4215feb815
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -24,6 +24,14 @@ ruma_api! {
/// Defaults to 10.
#[serde(default = "default_limit", skip_serializing_if = "is_default_limit")]
pub limit: UInt,
/// Language tag to determine the collation to use for the (case-insensitive) search.
///
/// See [MDN] for the syntax.
///
/// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language#Syntax
#[ruma_api(header = ACCEPT_LANGUAGE)]
pub language: Option<String>,
}
response: {