ruma_client_api/
room.rs

1//! Endpoints for room management.
2
3pub mod aliases;
4pub mod create_room;
5pub mod get_event_by_timestamp;
6pub mod get_room_event;
7pub mod get_summary;
8pub mod report_content;
9pub mod report_room;
10pub mod upgrade_room;
11
12use ruma_common::serde::StringEnum;
13
14use crate::PrivOwnedStr;
15
16/// Whether or not a newly created room will be listed in the room directory.
17#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
18#[derive(Clone, Default, PartialEq, Eq, StringEnum)]
19#[ruma_enum(rename_all = "snake_case")]
20#[non_exhaustive]
21pub enum Visibility {
22    /// Indicates that the room will be shown in the published room list.
23    Public,
24
25    /// Indicates that the room will not be shown in the published room list.
26    #[default]
27    Private,
28
29    #[doc(hidden)]
30    _Custom(PrivOwnedStr),
31}