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>
Available on crate feature
canonical-json
only.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.