pub struct RoomSummary {
pub heroes: Vec<UserId>,
pub joined_member_count: Option<u64>,
pub invited_member_count: Option<u64>,
}Expand description
A room’s m.heroes/member-count summary (research doc §1.4, server plan
§3.4).
Fields§
§heroes: Vec<UserId>Up to five other members’ user ids, used to synthesize a display
name for a room with no m.room.name.
joined_member_count: Option<u64>Total joined member count, if the server chose to include it (spec makes this optional; the server plan always computes it, but a caller of this type should not assume that of every server).
invited_member_count: Option<u64>Total invited member count, same optionality as
joined_member_count.
Trait Implementations§
Source§impl Clone for RoomSummary
impl Clone for RoomSummary
Source§impl Debug for RoomSummary
impl Debug for RoomSummary
Source§impl Default for RoomSummary
impl Default for RoomSummary
Source§impl<'de> Deserialize<'de> for RoomSummary
impl<'de> Deserialize<'de> for RoomSummary
Source§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
Source§impl PartialEq for RoomSummary
impl PartialEq for RoomSummary
Source§impl Serialize for RoomSummary
impl Serialize for RoomSummary
impl StructuralPartialEq for RoomSummary
Auto Trait Implementations§
impl Freeze for RoomSummary
impl RefUnwindSafe for RoomSummary
impl Send for RoomSummary
impl Sync for RoomSummary
impl Unpin for RoomSummary
impl UnsafeUnpin for RoomSummary
impl UnwindSafe for RoomSummary
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