events: Improve RawExt documentation
This commit is contained in:
parent
89b169faf3
commit
67deaeb0fc
@ -282,7 +282,7 @@ pub trait RedactContent {
|
|||||||
fn redact(self, version: &RoomVersionId) -> Self::Redacted;
|
fn redact(self, version: &RoomVersionId) -> Self::Redacted;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Extension trait for Raw<EventContent>
|
/// Extension trait for [`Raw<_>`][ruma_serde::Raw].
|
||||||
pub trait RawExt<T: EventContent> {
|
pub trait RawExt<T: EventContent> {
|
||||||
/// Try to deserialize the JSON as an event's content.
|
/// Try to deserialize the JSON as an event's content.
|
||||||
fn deserialize_content(&self, event_type: &str) -> serde_json::Result<T>;
|
fn deserialize_content(&self, event_type: &str) -> serde_json::Result<T>;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user