Enum ruma::events::FullStateEventContent
source · pub enum FullStateEventContent<C>where
C: StaticStateEventContent + RedactContent,{
Original {
content: C,
prev_content: Option<<C as StaticStateEventContent>::PossiblyRedacted>,
},
Redacted(<C as RedactContent>::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: C
Current content of the room state.
§
prev_content: Option<<C as StaticStateEventContent>::PossiblyRedacted>
Previous content of the room state.
Original, unredacted content of the event.
Redacted(<C as RedactContent>::Redacted)
Redacted content of the event.
Implementations§
source§impl<C> FullStateEventContent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::Redacted: RedactedStateEventContent,
impl<C> FullStateEventContent<C>where
C: StaticStateEventContent + RedactContent,
<C as RedactContent>::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 for FullStateEventContent<C>where
C: Clone + StaticStateEventContent + RedactContent,
<C as StaticStateEventContent>::PossiblyRedacted: Clone,
<C as RedactContent>::Redacted: Clone,
impl<C> Clone for FullStateEventContent<C>where
C: Clone + StaticStateEventContent + RedactContent,
<C as StaticStateEventContent>::PossiblyRedacted: Clone,
<C as RedactContent>::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