federation-api: Fix missing Raw<> for Pdu, Edu

This commit is contained in:
Jonas Platte 2020-09-21 23:07:22 +02:00
parent 7aec43c323
commit 2bd533c085
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -3,6 +3,7 @@
use std::{collections::BTreeMap, time::SystemTime};
use ruma_api::ruma_api;
use ruma_common::Raw;
use ruma_events::pdu::Pdu;
use ruma_identifiers::{EventId, ServerName};
use serde::{Deserialize, Serialize};
@ -34,13 +35,13 @@ ruma_api! {
/// List of persistent updates to rooms.
///
/// Must not be more than 50 items.
pub pdus: &'a [Pdu],
pub pdus: &'a [Raw<Pdu>],
/// List of ephemeral messages.
///
/// Must not be more than 100 items.
#[serde(default, skip_serializing_if = "<[_]>::is_empty")]
pub edus: &'a [Edu],
pub edus: &'a [Raw<Edu>],
}
#[derive(Default)]