matrix_sdk_test/test_json/
search_users.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use once_cell::sync::Lazy;
use serde_json::{json, Value as JsonValue};

pub static SEARCH_USERS_REQUEST: Lazy<JsonValue> = Lazy::new(|| {
    json!({
        "search_term": "test",
        "limit": 50
    })
});

pub static SEARCH_USERS_RESPONSE: Lazy<JsonValue> = Lazy::new(|| {
    json!({
        "limited": false,
        "results": [
            {
                "user_id": "@test:example.me",
                "display_name": "Test",
                "avatar_url": "mxc://example.me/someid"
            }
        ]
    })
});