Struct RoomState
#[non_exhaustive]pub struct RoomState {
pub members_omitted: bool,
pub auth_chain: Vec<Box<RawValue>>,
pub state: Vec<Box<RawValue>>,
pub event: Option<Box<RawValue>>,
pub servers_in_room: Option<Vec<String>>,
}api only.Expand description
Full state of the room.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.members_omitted: boolWhether m.room.member events have been omitted from state.
Defaults to false.
auth_chain: Vec<Box<RawValue>>The full set of authorization events that make up the state of the room, and their authorization events, recursively.
If the request had omit_members set to true, then any events that are returned in
state may be omitted from auth_chain, whether or not membership events are omitted
from state.
state: Vec<Box<RawValue>>The room state.
If the request had omit_members set to true, events of type m.room.member may be
omitted from the response to reduce the size of the response. If this is done,
members_omitted must be set to true.
event: Option<Box<RawValue>>The signed copy of the membership event sent to other servers by the resident server, including the resident server’s signature.
Required if the room version supports restricted join rules.
servers_in_room: Option<Vec<String>>A list of the servers active in the room (ie, those with joined members) before the join.
Required if members_omitted is set to true.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for RoomState
impl<'de> Deserialize<'de> for RoomState
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<RoomState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
§impl Serialize for RoomState
impl Serialize for RoomState
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for RoomState
impl RefUnwindSafe for RoomState
impl Send for RoomState
impl Sync for RoomState
impl Unpin for RoomState
impl UnsafeUnpin for RoomState
impl UnwindSafe for RoomState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more