pub trait RedactContent {
    type Redacted;
    // Required method
    fn redact(self, rules: &RedactionRules) -> Self::Redacted;
}Available on crate feature 
events only.Expand description
Trait to define the behavior of redact an event’s content object.
Required Associated Types§
Required Methods§
Sourcefn redact(self, rules: &RedactionRules) -> Self::Redacted
 
fn redact(self, rules: &RedactionRules) -> Self::Redacted
Transform self into a redacted form (removing most or all fields) according to the spec.
A small number of events have room-version specific redaction behavior, so a
RedactionRules has to be specified.