diff --git a/ruma-client-api/src/r0/config/get_global_account_data.rs b/ruma-client-api/src/r0/config/get_global_account_data.rs index 87fab7f0..195fd08b 100644 --- a/ruma-client-api/src/r0/config/get_global_account_data.rs +++ b/ruma-client-api/src/r0/config/get_global_account_data.rs @@ -1,7 +1,7 @@ //! [GET /_matrix/client/r0/user/{userId}/account_data/{type}](https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-user-userid-account-data-type) use ruma_api::ruma_api; -use ruma_events::AnyBasicEvent; +use ruma_events::AnyBasicEventContent; use ruma_identifiers::UserId; use ruma_serde::Raw; @@ -27,8 +27,10 @@ ruma_api! { response: { /// Account data content for the given type. + /// + /// Use `ruma_events::RawExt` for deserialization. #[ruma_api(body)] - pub account_data: Raw, + pub account_data: Raw, } error: crate::Error @@ -43,7 +45,7 @@ impl<'a> Request<'a> { impl Response { /// Creates a new `Response` with the given account data. - pub fn new(account_data: Raw) -> Self { + pub fn new(account_data: Raw) -> Self { Self { account_data } } } diff --git a/ruma-client-api/src/r0/config/get_room_account_data.rs b/ruma-client-api/src/r0/config/get_room_account_data.rs index 8854a7ee..a1ad77d5 100644 --- a/ruma-client-api/src/r0/config/get_room_account_data.rs +++ b/ruma-client-api/src/r0/config/get_room_account_data.rs @@ -1,7 +1,7 @@ //! [GET /_matrix/client/r0/user/{userId}/rooms/{roomId}/account_data/{type}](https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-user-userid-rooms-roomid-account-data-type) use ruma_api::ruma_api; -use ruma_events::AnyBasicEvent; +use ruma_events::AnyBasicEventContent; use ruma_identifiers::{RoomId, UserId}; use ruma_serde::Raw; @@ -31,8 +31,10 @@ ruma_api! { response: { /// Account data content for the given type. + /// + /// Use `ruma_events::RawExt` for deserialization. #[ruma_api(body)] - pub account_data: Raw, + pub account_data: Raw, } error: crate::Error @@ -47,7 +49,7 @@ impl<'a> Request<'a> { impl Response { /// Creates a new `Response` with the given account data. - pub fn new(account_data: Raw) -> Self { + pub fn new(account_data: Raw) -> Self { Self { account_data } } }