1//! Endpoints for room management.
23pub 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;
1213use ruma_common::serde::StringEnum;
1415use crate::PrivOwnedStr;
1617/// 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.
24Public,
2526/// Indicates that the room will not be shown in the published room list.
27#[default]
28Private,
2930#[doc(hidden)]
31_Custom(PrivOwnedStr),
32}