Function ruma::canonical_json::redact_in_place
source · pub fn redact_in_place(
event: &mut BTreeMap<String, CanonicalJsonValue>,
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.