Enum ruma_common::events::FullStateEventContent
source · pub enum FullStateEventContent<C: StaticStateEventContent + RedactContent> {
Original {
content: C,
prev_content: Option<C::PossiblyRedacted>,
},
Redacted(C::Redacted),
}Available on crate feature
events only.Expand description
A possibly-redacted state event content.
A non-redacted content also contains the prev_content from the unsigned event data.
Variants§
Original
Fields
§
content: CCurrent content of the room state.
§
prev_content: Option<C::PossiblyRedacted>Previous content of the room state.
Original, unredacted content of the event.
Redacted(C::Redacted)
Redacted content of the event.
Implementations§
source§impl<C: StaticStateEventContent + RedactContent> FullStateEventContent<C>where
C::Redacted: RedactedStateEventContent,
impl<C: StaticStateEventContent + RedactContent> FullStateEventContent<C>where
C::Redacted: RedactedStateEventContent,
sourcepub fn event_type(&self) -> StateEventType
pub fn event_type(&self) -> StateEventType
Get the event’s type, like m.room.create.
Trait Implementations§
source§impl<C: Clone + StaticStateEventContent + RedactContent> Clone for FullStateEventContent<C>where
C::PossiblyRedacted: Clone,
C::Redacted: Clone,
impl<C: Clone + StaticStateEventContent + RedactContent> Clone for FullStateEventContent<C>where
C::PossiblyRedacted: Clone,
C::Redacted: Clone,
source§fn clone(&self) -> FullStateEventContent<C>
fn clone(&self) -> FullStateEventContent<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more