Struct ruma::api::federation::membership::create_join_event::v2::RoomState
source · 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
and (crate features federation-api-c
or federation-api-s
) only.Expand description
Full state of the room.
Fields§
§members_omitted: bool
Whether 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§
source§impl<'de> Deserialize<'de> for RoomState
impl<'de> Deserialize<'de> for RoomState
source§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>,
source§impl Serialize for RoomState
impl Serialize for RoomState
source§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 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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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,
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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