[−][src]Struct gm_types::replies::RoomCreationOptions
Options used to create a room.
Fields
visibility: Option<RoomVisibility>
Controls whether the room will be shown in the published room list.
NB. Not the same thing as join_rules
.
Rooms default to private
visibility if this key is not included.
room_alias_name: Option<String>
The desired room alias local part.
If this is included, a room alias will be created and mapped to the newly created room. The alias will belong on the same homeserver which created the room.
For example, if this was set to "foo" and sent to the homeserver "example.com", the complete room alias
would be #foo:example.com
.
name: Option<String>
If this is included, an m.room.name
event will be sent into the room to indicate the name of the room.
topic: Option<String>
If this is included, an m.room.topic
event will be sent into the room to indicate the topic for the room.
invite: Vec<String>
A list of user IDs to invite to the room. This will tell the server to invite everyone in the list to the newly created room.
creation_content: HashMap<String, Value>
Extra keys to be added to the content of the m.room.create
.
The server will clobber the following keys: creator
.
Future versions of the specification may allow the server to clobber other keys.
preset: Option<RoomPreset>
Convenience parameter for setting various default state events based on a preset.
See the RoomPreset
docs for more.
is_direct: bool
This flag makes the server set the is_direct
flag on the m.room.member
events sent to the users
in invite
and invite_3pid
.
Trait Implementations
impl Default for RoomCreationOptions
[src]
fn default() -> RoomCreationOptions
[src]
impl Clone for RoomCreationOptions
[src]
fn clone(&self) -> RoomCreationOptions
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for RoomCreationOptions
[src]
impl Serialize for RoomCreationOptions
[src]
Auto Trait Implementations
impl Send for RoomCreationOptions
impl Sync for RoomCreationOptions
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,