ruma

Trait KeyName

Source
pub trait KeyName: AsRef<str> {
    // Required method
    fn validate(s: &str) -> Result<(), Error>;
}
Expand description

Helper trait to validate the name of a key.

Required Methods§

Source

fn validate(s: &str) -> Result<(), Error>

Validate the given string for this name.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§