Trait ruma_events::Redact[][src]

pub trait Redact {
    type Redacted;
    fn redact(
        self,
        redaction: SyncRedactionEvent,
        version: &RoomVersionId
    ) -> Self::Redacted; }
Expand description

Trait to define the behavior of redacting an event.

Associated Types

The redacted form of the event.

Required methods

Transforms self into a redacted form (removing most fields) according to the spec.

A small number of events have room-version specific redaction behavior, so a version has to be specified.

Implementors

Redacts self, referencing the given event in unsigned.redacted_because.

Does nothing for events that are already redacted.

Redacts self, referencing the given event in unsigned.redacted_because.

Does nothing for events that are already redacted.