federation-api: Support MSC3618

This commit is contained in:
Jonathan de Jong 2022-01-17 12:08:24 +01:00 committed by GitHub
parent 7eb83f6b7a
commit 3b32577276
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,6 +48,8 @@ ruma_api! {
#[derive(Default)]
response: {
/// Map of event IDs and response for each PDU given in the request.
// https://github.com/matrix-org/matrix-doc/pull/3618 makes returning `pdus` optional.
#[cfg_attr(feature = "unstable-pre-spec", serde(default))]
#[serde(with = "crate::serde::pdu_process_response")]
pub pdus: BTreeMap<Box<EventId>, Result<(), String>>,
}