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;
7#[cfg(feature = "unstable-msc3266")]
8pub mod get_summary;
9pub mod report_content;
10pub mod report_room;
11pub mod upgrade_room;
12
13use ruma_common::serde::StringEnum;
14
15use crate::PrivOwnedStr;
16
17/// Whether or not a newly created room will be listed in the room directory.
18#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
19#[derive(Clone, Default, PartialEq, Eq, StringEnum)]
20#[ruma_enum(rename_all = "snake_case")]
21#[non_exhaustive]
22pub enum Visibility {
23    /// Indicates that the room will be shown in the published room list.
24    Public,
25
26    /// Indicates that the room will not be shown in the published room list.
27    #[default]
28    Private,
29
30    #[doc(hidden)]
31    _Custom(PrivOwnedStr),
32}