From 38daf33b477111bfce5f6e2d716388ccd0e32721 Mon Sep 17 00:00:00 2001 From: Devin Ragotzy Date: Sat, 26 Sep 2020 21:39:05 -0400 Subject: [PATCH] Add Raw wrapper to get_room_state endpoint --- ruma-federation-api/src/event/get_room_state/v1.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ruma-federation-api/src/event/get_room_state/v1.rs b/ruma-federation-api/src/event/get_room_state/v1.rs index 1374b8b6..48944ced 100644 --- a/ruma-federation-api/src/event/get_room_state/v1.rs +++ b/ruma-federation-api/src/event/get_room_state/v1.rs @@ -1,6 +1,7 @@ //! [GET /_matrix/federation/v1/state/{roomId}](https://matrix.org/docs/spec/server_server/r0.1.4#get-matrix-federation-v1-state-roomid) use ruma_api::ruma_api; +use ruma_common::Raw; use ruma_events::pdu::Pdu; use ruma_identifiers::{EventId, RoomId}; @@ -27,10 +28,10 @@ ruma_api! { response: { /// The full set of authorization events that make up the state of the /// room, and their authorization events, recursively. - pub auth_chain: Vec, + pub auth_chain: Vec>, /// The fully resolved state of the room at the given event. - pub pdus: Vec, + pub pdus: Vec>, } } @@ -43,7 +44,7 @@ impl<'a> Request<'a> { impl Response { /// Creates a new `Response` with the given auth chain and room state. - pub fn new(auth_chain: Vec, pdus: Vec) -> Self { + pub fn new(auth_chain: Vec>, pdus: Vec>) -> Self { Self { auth_chain, pdus } } }