ruma_events::space::child

Type Alias StrippedSpaceChildEvent

Source
pub type StrippedSpaceChildEvent = StrippedStateEvent<PossiblyRedactedSpaceChildEventContent>;
Expand description

An m.space.child event from an invited room preview.

Aliased Type§

struct StrippedSpaceChildEvent {
    pub content: PossiblyRedactedSpaceChildEventContent,
    pub sender: OwnedUserId,
    pub state_key: OwnedRoomId,
}

Fields§

§content: PossiblyRedactedSpaceChildEventContent

Data specific to the event type.

§sender: OwnedUserId

The fully-qualified ID of the user who sent this event.

§state_key: OwnedRoomId

A unique key which defines the overwriting semantics for this piece of room state.

This is often an empty string, but some events send a UserId to show which user the event affects.

Trait Implementations

Source§

impl<C: Clone + PossiblyRedactedStateEventContent> Clone for StrippedStateEvent<C>
where C::StateKey: Clone,

Source§

fn clone(&self) -> StrippedStateEvent<C>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<C: Debug + PossiblyRedactedStateEventContent> Debug for StrippedStateEvent<C>
where C::StateKey: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de, C> Deserialize<'de> for StrippedStateEvent<C>

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more