2023-01-13 13:49:59 +01:00

18 lines
457 B
Rust

//! Common types for rooms.
use crate::{serde::StringEnum, PrivOwnedStr};
/// An enum of possible room types.
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
#[derive(Clone, PartialEq, Eq, StringEnum)]
#[non_exhaustive]
pub enum RoomType {
/// Defines the room as a space.
#[ruma_enum(rename = "m.space")]
Space,
/// Defines the room as a custom type.
#[doc(hidden)]
_Custom(PrivOwnedStr),
}