Import serde_json::Value as JsonValue
This commit is contained in:
parent
6bbb42303b
commit
a361bf9a8c
@ -6,6 +6,7 @@ use std::collections::BTreeMap;
|
|||||||
|
|
||||||
use ruma_api::ruma_api;
|
use ruma_api::ruma_api;
|
||||||
use ruma_identifiers::UserId;
|
use ruma_identifiers::UserId;
|
||||||
|
use serde_json::Value as JsonValue;
|
||||||
|
|
||||||
ruma_api! {
|
ruma_api! {
|
||||||
metadata: {
|
metadata: {
|
||||||
@ -20,7 +21,7 @@ ruma_api! {
|
|||||||
request: {
|
request: {
|
||||||
/// Signed keys.
|
/// Signed keys.
|
||||||
#[ruma_api(body)]
|
#[ruma_api(body)]
|
||||||
pub signed_keys: BTreeMap<UserId, BTreeMap<String, serde_json::Value>>,
|
pub signed_keys: BTreeMap<UserId, BTreeMap<String, JsonValue>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
@ -31,7 +32,7 @@ ruma_api! {
|
|||||||
|
|
||||||
impl Request {
|
impl Request {
|
||||||
/// Creates a new `Request` with the given signed keys.
|
/// Creates a new `Request` with the given signed keys.
|
||||||
pub fn new(signed_keys: BTreeMap<UserId, BTreeMap<String, serde_json::Value>>) -> Self {
|
pub fn new(signed_keys: BTreeMap<UserId, BTreeMap<String, JsonValue>>) -> Self {
|
||||||
Self { signed_keys }
|
Self { signed_keys }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user