events: Improve RawExt documentation

This commit is contained in:
Jonas Platte 2021-05-15 15:27:42 +02:00
parent 89b169faf3
commit 67deaeb0fc
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -282,7 +282,7 @@ pub trait RedactContent {
fn redact(self, version: &RoomVersionId) -> Self::Redacted;
}
/// Extension trait for Raw<EventContent>
/// Extension trait for [`Raw<_>`][ruma_serde::Raw].
pub trait RawExt<T: EventContent> {
/// Try to deserialize the JSON as an event's content.
fn deserialize_content(&self, event_type: &str) -> serde_json::Result<T>;