9 lines
243 B
Rust

/// A Matrix key identifier.
///
/// Key identifiers in Matrix are opaque character sequences of `[a-zA-Z_]`. This type is
/// provided simply for its semantic value.
#[repr(transparent)]
pub struct KeyName(str);
opaque_identifier!(KeyName);