12 lines
293 B
Rust
12 lines
293 B
Rust
//! Matrix room name.
|
|
|
|
use ruma_macros::IdZst;
|
|
|
|
/// The name of a room.
|
|
///
|
|
/// It can't exceed 255 bytes or be empty.
|
|
#[repr(transparent)]
|
|
#[derive(PartialEq, Eq, PartialOrd, Ord, Hash, IdZst)]
|
|
#[ruma_id(validate = ruma_identifiers_validation::room_name::validate)]
|
|
pub struct RoomName(str);
|