Function redact_content_in_place

Source
pub fn redact_content_in_place(
    content: &mut CanonicalJsonObject,
    rules: &RedactionRules,
    event_type: impl AsRef<str>,
) -> Result<(), RedactionError>
Available on crate feature canonical-json only.
Expand description

Redacts the given event content using the given redaction rules for the version of the current room.

Edits the content in-place.