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

type Redacted[src]

The redacted form of the event’s content.

Required methods

fn redact(self, version: &RoomVersionId) -> Self::Redacted[src]

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 prefered to use Redact::redact on the outer event.

Implementors

impl RedactContent for AnyMessageEventContent[src]

fn redact(self, version: &RoomVersionId) -> AnyRedactedMessageEventContent[src]

Redacts Self given a RoomVersionId.

type Redacted = AnyRedactedMessageEventContent

impl RedactContent for AnyStateEventContent[src]

fn redact(self, version: &RoomVersionId) -> AnyRedactedStateEventContent[src]

Redacts Self given a RoomVersionId.

type Redacted = AnyRedactedStateEventContent

impl RedactContent for AnswerEventContent[src]

impl RedactContent for CandidatesEventContent[src]

impl RedactContent for HangupEventContent[src]

impl RedactContent for InviteEventContent[src]

impl RedactContent for CustomEventContent[src]

impl RedactContent for RoomEventContent[src]

impl RedactContent for ServerEventContent[src]

impl RedactContent for UserEventContent[src]

impl RedactContent for AliasesEventContent[src]

impl RedactContent for AvatarEventContent[src]

impl RedactContent for CanonicalAliasEventContent[src]

impl RedactContent for CreateEventContent[src]

impl RedactContent for EncryptedEventContent[src]

impl RedactContent for EncryptionEventContent[src]

impl RedactContent for GuestAccessEventContent[src]

impl RedactContent for HistoryVisibilityEventContent[src]

impl RedactContent for JoinRulesEventContent[src]

impl RedactContent for MemberEventContent[src]

impl RedactContent for FeedbackEventContent[src]

impl RedactContent for MessageEventContent[src]

impl RedactContent for NameEventContent[src]

impl RedactContent for PinnedEventsEventContent[src]

impl RedactContent for PowerLevelsEventContent[src]

impl RedactContent for RedactionEventContent[src]

impl RedactContent for ServerAclEventContent[src]

impl RedactContent for ThirdPartyInviteEventContent[src]

impl RedactContent for TombstoneEventContent[src]

impl RedactContent for TopicEventContent[src]

impl RedactContent for StickerEventContent[src]