Trait ruma_events::RedactContent

source ·
pub trait RedactContent {
    type Redacted;

    // Required method
    fn redact(self, version: &RoomVersionId) -> Self::Redacted;
}
Expand description

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

Required Associated Types§

source

type Redacted

The redacted form of the event’s content.

Required Methods§

source

fn redact(self, version: &RoomVersionId) -> 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 version has to be specified.

Implementors§

source§

impl RedactContent for CallMemberEventContent

source§

impl RedactContent for UnstablePollStartEventContent

source§

impl RedactContent for BeaconEventContent

source§

impl RedactContent for BeaconInfoEventContent

source§

impl RedactContent for CallAnswerEventContent

source§

impl RedactContent for CallCandidatesEventContent

source§

impl RedactContent for CallHangupEventContent

source§

impl RedactContent for CallInviteEventContent

source§

impl RedactContent for CallNegotiateEventContent

source§

impl RedactContent for CallNotifyEventContent

source§

impl RedactContent for CallRejectEventContent

source§

impl RedactContent for CallSdpStreamMetadataChangedEventContent

source§

impl RedactContent for CallSelectAnswerEventContent

source§

impl RedactContent for KeyVerificationAcceptEventContent

source§

impl RedactContent for KeyVerificationCancelEventContent

source§

impl RedactContent for KeyVerificationDoneEventContent

source§

impl RedactContent for KeyVerificationKeyEventContent

source§

impl RedactContent for KeyVerificationMacEventContent

source§

impl RedactContent for KeyVerificationReadyEventContent

source§

impl RedactContent for KeyVerificationStartEventContent

source§

impl RedactContent for LocationEventContent

source§

impl RedactContent for MessageEventContent

source§

impl RedactContent for PolicyRuleRoomEventContent

source§

impl RedactContent for PolicyRuleServerEventContent

source§

impl RedactContent for PolicyRuleUserEventContent

source§

impl RedactContent for PollEndEventContent

source§

impl RedactContent for PollResponseEventContent

source§

impl RedactContent for PollStartEventContent

source§

impl RedactContent for UnstablePollEndEventContent

source§

impl RedactContent for UnstablePollResponseEventContent

source§

impl RedactContent for ReactionEventContent

source§

impl RedactContent for RoomAliasesEventContent

source§

impl RedactContent for RoomAvatarEventContent

source§

impl RedactContent for RoomCanonicalAliasEventContent

source§

impl RedactContent for RoomCreateEventContent

source§

impl RedactContent for RoomEncryptedEventContent

source§

impl RedactContent for RoomEncryptionEventContent

source§

impl RedactContent for RoomGuestAccessEventContent

source§

impl RedactContent for RoomHistoryVisibilityEventContent

source§

impl RedactContent for RoomJoinRulesEventContent

source§

impl RedactContent for RoomMemberEventContent

source§

impl RedactContent for RoomMessageEventContent

source§

impl RedactContent for RoomNameEventContent

source§

impl RedactContent for RoomPinnedEventsEventContent

source§

impl RedactContent for RoomPowerLevelsEventContent

source§

impl RedactContent for RoomRedactionEventContent

source§

impl RedactContent for RoomServerAclEventContent

source§

impl RedactContent for RoomThirdPartyInviteEventContent

source§

impl RedactContent for RoomTombstoneEventContent

source§

impl RedactContent for RoomTopicEventContent

source§

impl RedactContent for SpaceChildEventContent

source§

impl RedactContent for SpaceParentEventContent

source§

impl RedactContent for StickerEventContent