Trait ruma_common::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.

Object Safety§

This trait is not object safe.

Implementors§