#[non_exhaustive]pub struct Response {Show 19 fields
pub room_id: OwnedRoomId,
pub name: Option<String>,
pub topic: Option<String>,
pub avatar: Option<OwnedMxcUri>,
pub canonical_alias: Option<OwnedRoomAliasId>,
pub joined_members: UInt,
pub joined_local_members: UInt,
pub joined_local_devices: UInt,
pub version: Option<String>,
pub creator: Option<OwnedUserId>,
pub encryption: Option<String>,
pub federatable: bool,
pub public: bool,
pub join_rules: Option<JoinRuleKind>,
pub guest_access: Option<GuestAccess>,
pub history_visibility: Option<HistoryVisibility>,
pub state_events: UInt,
pub room_type: Option<RoomType>,
pub forgotten: bool,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.room_id: OwnedRoomId
Room ID
name: Option<String>
Room name
topic: Option<String>
Room topic
avatar: Option<OwnedMxcUri>
Room avatar
canonical_alias: Option<OwnedRoomAliasId>
Room alias ID
joined_members: UInt
Amount of joined members.
joined_local_members: UInt
Amount of local members.
joined_local_devices: UInt
Amount of local devices.
version: Option<String>
Room version
creator: Option<OwnedUserId>
User ID of the room creator.
encryption: Option<String>
Room encryption.
federatable: bool
Whether the room is federatable
public: bool
Whether the room is public.
join_rules: Option<JoinRuleKind>
Join rules of the room.
guest_access: Option<GuestAccess>
Guest access of the room
history_visibility: Option<HistoryVisibility>
History visibility of the room
state_events: UInt
State events of the room.
room_type: Option<RoomType>
Room type of the room.
forgotten: bool
Whether all local users have forgotten the room.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnwindSafe for Response
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