ruma_common::canonical_json

Function redact_content_in_place

Source
pub fn redact_content_in_place(
    object: &mut CanonicalJsonObject,
    version: &RoomVersionId,
    event_type: impl AsRef<str>,
) -> Result<(), RedactionError>
Expand description

Redacts event content using the rules specified in the Matrix client-server specification.

Edits the object in-place.