Struct ruma_events::space::parent::ParentEventContent [−][src]
pub struct ParentEventContent { pub via: Option<Vec<ServerNameBox>>, pub canonical: bool, }
unstable-pre-spec
only.Expand description
The payload for ParentEvent
.
Fields
via: Option<Vec<ServerNameBox>>
List of candidate servers that can be used to join the room.
canonical: bool
Determines whether this is the main parent for the space.
When a user joins a room with a canonical parent, clients may switch to view the room in
the context of that space, peeking into it in order to find other rooms and group them
together. In practice, well behaved rooms should only have one canonical
parent, but
given this is not enforced: if multiple are present the client should select the one with
the lowest room ID, as determined via a lexicographic ordering of the Unicode code-points.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
A matrix event identifier, like m.room.message
.
Constructs the given event content.
The redacted form of the event’s content.
Transform self
into a redacted form (removing most or all fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for ParentEventContent
impl Send for ParentEventContent
impl Sync for ParentEventContent
impl Unpin for ParentEventContent
impl UnwindSafe for ParentEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V