matrix_sdk_test/test_json/
search_users.rs1use std::sync::LazyLock;
2
3use serde_json::{Value as JsonValue, json};
4
5pub static SEARCH_USERS_REQUEST: LazyLock<JsonValue> = LazyLock::new(|| {
6 json!({
7 "search_term": "test",
8 "limit": 50
9 })
10});
11
12pub static SEARCH_USERS_RESPONSE: LazyLock<JsonValue> = LazyLock::new(|| {
13 json!({
14 "limited": false,
15 "results": [
16 {
17 "user_id": "@test:example.me",
18 "display_name": "Test",
19 "avatar_url": "mxc://example.me/someid"
20 }
21 ]
22 })
23});