ruma_common::canonical_json

Function redact_in_place

Source
pub fn redact_in_place(
    event: &mut CanonicalJsonObject,
    version: &RoomVersionId,
    redacted_because: Option<RedactedBecause>,
) -> Result<(), RedactionError>
Expand description

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

Functionally equivalent to redact, only this’ll redact the event in-place.