Enum ruma_client_api::r0::room::create_room::RoomPreset [−][src]
pub enum RoomPreset { PrivateChat, PublicChat, TrustedPrivateChat, // some variants omitted }
Expand description
A convenience parameter for setting a few default state events.
Variants
join_rules
is set to invite
and history_visibility
is set to shared
.
join_rules
is set to public
and history_visibility
is set to shared
.
Same as PrivateChat
, but all initial invitees get the same power level as the creator.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RoomPreset
impl Send for RoomPreset
impl Sync for RoomPreset
impl Unpin for RoomPreset
impl UnwindSafe for RoomPreset
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more