Skip to main content

redact_event_content

Function redact_event_content 

Source
fn redact_event_content(
    event_object: CanonicalJsonObject,
    room_version: &RoomVersionRules,
    redacted_because: &RedactedBecause,
) -> Result<Box<RawValue>, ValidationError>
Expand description

Helper function to perform the common redaction logic.

This is the core redaction implementation used by trait implementations.