pub struct SpaceRoom {Show 16 fields
pub room_id: OwnedRoomId,
pub canonical_alias: Option<OwnedRoomAliasId>,
pub name: Option<String>,
pub display_name: 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 is_direct: Option<bool>,
pub children_count: u64,
pub state: Option<RoomState>,
pub heroes: Option<Vec<RoomHero>>,
pub via: Vec<OwnedServerName>,
}Expand description
Structure representing a room in a space and aggregated information relevant to the UI layer.
Fields§
§room_id: OwnedRoomIdThe 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.
display_name: StringCalculated display name based on the room’s name, aliases, and members.
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: u64The 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: boolWhether guest users may join the room and participate in it.
is_direct: Option<bool>Whether this room is a direct room.
Only set if the room is known to the client otherwise we assume DMs shouldn’t be exposed publicly in spaces.
children_count: u64The 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.
via: Vec<OwnedServerName>The via parameters of the room.
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
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>
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