logo
1
2
3
4
5
6
7
8
9
10
11
//! 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);