pub enum CreateRoomKind {
Dm {
peer: UserId,
},
Group {
name: String,
invite: Vec<UserId>,
members_can_invite: bool,
},
Channel {
name: String,
topic: Option<String>,
},
}Expand description
Which shape MessengerCommand::CreateRoom builds, mapped onto the
server’s own POST /createRoom field set (visibility/is_direct/
invite/name/topic — the server derives kind itself from
visibility+is_direct, per the server plan’s §5; a client never
sends a preset/kind field directly).
Variants§
Dm
A 1:1 conversation: is_direct: true, exactly one invitee. Also
merges the new room into this account’s own m.direct account data
once the room is created (this module’s own doc).
Group
A private multi-person room.
Fields
Channel
A public, announcement-style room. Still E2E-encrypted; “public” means join_rule public (anyone can join), not plaintext.
Trait Implementations§
Source§impl Clone for CreateRoomKind
impl Clone for CreateRoomKind
Source§fn clone(&self) -> CreateRoomKind
fn clone(&self) -> CreateRoomKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateRoomKind
impl Debug for CreateRoomKind
impl Eq for CreateRoomKind
Source§impl PartialEq for CreateRoomKind
impl PartialEq for CreateRoomKind
impl StructuralPartialEq for CreateRoomKind
Auto Trait Implementations§
impl Freeze for CreateRoomKind
impl RefUnwindSafe for CreateRoomKind
impl Send for CreateRoomKind
impl Sync for CreateRoomKind
impl Unpin for CreateRoomKind
impl UnsafeUnpin for CreateRoomKind
impl UnwindSafe for CreateRoomKind
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.