ruma_events

Trait 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 MemberHintsEventContent

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