//! [POST /_matrix/client/r0/keys/signatures/upload](https://13301-24998719-gh.circle-artifacts.com/0/scripts/gen/client_server/unstable.html#post-matrix-client-r0-keys-signatures-upload) use std::collections::BTreeMap; use ruma_api::ruma_api; use ruma_identifiers::UserId; ruma_api! { metadata: { description: "Publishes cross-signing signatures for the user.", method: POST, name: "upload_signatures", path: "/_matrix/client/r0/keys/signatures/upload", rate_limited: false, authentication: AccessToken, } request: { /// Signed keys. #[ruma_api(body)] pub signed_keys: BTreeMap>, } #[derive(Default)] response: {} error: crate::Error } impl Request { /// Creates a new `Request` with the given signed keys. pub fn new(signed_keys: BTreeMap>) -> Self { Self { signed_keys } } } impl Response { /// Creates an empty `Response`. pub fn new() -> Self { Self } }