Trait ruma_events::RedactContent[][src]

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

Trait to define the behavior of redact an event’s content object.

Associated Types

The redacted form of the event’s content.

Required methods

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 version has to be specified.

Where applicable, it is preferred to use Redact::redact on the outer event.

Implementors

Redacts Self given a RoomVersionId.

Redacts Self given a RoomVersionId.

This is supported on crate feature unstable-pre-spec only.
This is supported on crate feature unstable-pre-spec only.
This is supported on crate feature unstable-pre-spec only.
This is supported on crate feature unstable-pre-spec only.
This is supported on crate feature unstable-pre-spec only.