pub struct SpaceRoom {Show 13 fields
pub room_id: OwnedRoomId,
pub canonical_alias: Option<OwnedRoomAliasId>,
pub name: Option<String>,
pub topic: Option<String>,
pub avatar_url: Option<OwnedMxcUri>,
pub room_type: Option<RoomType>,
pub num_joined_members: u64,
pub join_rule: Option<JoinRuleSummary>,
pub world_readable: Option<bool>,
pub guest_can_join: bool,
pub children_count: u64,
pub state: Option<RoomState>,
pub heroes: Option<Vec<RoomHero>>,
}
Expand description
Structure representing a room in a space and aggregated information relevant to the UI layer.
Fields§
§room_id: OwnedRoomId
The ID of the room.
canonical_alias: Option<OwnedRoomAliasId>
The canonical alias of the room, if any.
name: Option<String>
The name of the room, if any.
topic: Option<String>
The topic of the room, if any.
avatar_url: Option<OwnedMxcUri>
The URL for the room’s avatar, if one is set.
room_type: Option<RoomType>
The type of room from m.room.create
, if any.
num_joined_members: u64
The number of members joined to the room.
join_rule: Option<JoinRuleSummary>
The join rule of the room.
world_readable: Option<bool>
Whether the room may be viewed by users without joining.
guest_can_join: bool
Whether guest users may join the room and participate in it.
children_count: u64
The number of children room this has, if a space.
state: Option<RoomState>
Whether this room is joined, left etc.
heroes: Option<Vec<RoomHero>>
A list of room members considered to be heroes.
Trait Implementations§
impl StructuralPartialEq for SpaceRoom
Auto Trait Implementations§
impl Freeze for SpaceRoom
impl RefUnwindSafe for SpaceRoom
impl Send for SpaceRoom
impl Sync for SpaceRoom
impl Unpin for SpaceRoom
impl UnwindSafe for SpaceRoom
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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