Trait ruma_common::events::RedactContent
source · [−]pub trait RedactContent {
type Redacted;
fn redact(self, version: &RoomVersionId) -> Self::Redacted;
}
Available on crate feature
events
only.Expand description
Trait to define the behavior of redact an event’s content object.
Required Associated Types
Required Methods
sourcefn redact(self, version: &RoomVersionId) -> Self::Redacted
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.
Where applicable, it is preferred to use Redact::redact
on the outer event.
Implementors
sourceimpl RedactContent for AudioEventContent
Available on crate feature unstable-msc3246
only.
impl RedactContent for AudioEventContent
Available on crate feature
unstable-msc3246
only.sourceimpl RedactContent for CallNegotiateEventContent
Available on crate feature unstable-msc2746
only.
impl RedactContent for CallNegotiateEventContent
Available on crate feature
unstable-msc2746
only.sourceimpl RedactContent for CallRejectEventContent
Available on crate feature unstable-msc2746
only.
impl RedactContent for CallRejectEventContent
Available on crate feature
unstable-msc2746
only.sourceimpl RedactContent for CallSelectAnswerEventContent
Available on crate feature unstable-msc2746
only.
impl RedactContent for CallSelectAnswerEventContent
Available on crate feature
unstable-msc2746
only.sourceimpl RedactContent for EmoteEventContent
Available on crate feature unstable-msc1767
only.
impl RedactContent for EmoteEventContent
Available on crate feature
unstable-msc1767
only.sourceimpl RedactContent for FileEventContent
Available on crate feature unstable-msc3551
only.
impl RedactContent for FileEventContent
Available on crate feature
unstable-msc3551
only.type Redacted = RedactedFileEventContent
sourceimpl RedactContent for ImageEventContent
Available on crate feature unstable-msc3552
only.
impl RedactContent for ImageEventContent
Available on crate feature
unstable-msc3552
only.sourceimpl RedactContent for LocationEventContent
Available on crate feature unstable-msc3488
only.
impl RedactContent for LocationEventContent
Available on crate feature
unstable-msc3488
only.sourceimpl RedactContent for MessageEventContent
Available on crate feature unstable-msc1767
only.
impl RedactContent for MessageEventContent
Available on crate feature
unstable-msc1767
only.sourceimpl RedactContent for NoticeEventContent
Available on crate feature unstable-msc1767
only.
impl RedactContent for NoticeEventContent
Available on crate feature
unstable-msc1767
only.sourceimpl RedactContent for PollEndEventContent
Available on crate feature unstable-msc3381
only.
impl RedactContent for PollEndEventContent
Available on crate feature
unstable-msc3381
only.sourceimpl RedactContent for PollResponseEventContent
Available on crate feature unstable-msc3381
only.
impl RedactContent for PollResponseEventContent
Available on crate feature
unstable-msc3381
only.sourceimpl RedactContent for PollStartEventContent
Available on crate feature unstable-msc3381
only.
impl RedactContent for PollStartEventContent
Available on crate feature
unstable-msc3381
only.sourceimpl RedactContent for ReactionEventContent
Available on crate feature unstable-msc2677
only.
impl RedactContent for ReactionEventContent
Available on crate feature
unstable-msc2677
only.sourceimpl RedactContent for VideoEventContent
Available on crate feature unstable-msc3553
only.
impl RedactContent for VideoEventContent
Available on crate feature
unstable-msc3553
only.sourceimpl RedactContent for VoiceEventContent
Available on crate feature unstable-msc3245
only.
impl RedactContent for VoiceEventContent
Available on crate feature
unstable-msc3245
only.