AsKey

Trait AsKey 

Source
pub trait AsKey {
    // Required method
    fn as_key(&self) -> Key;
}
Expand description

A public-facing Key converter, which allows creating a valid Key for constraints

Currently we only support standalone Keys, or key-value pairs (via 2-tuples).

Required Methods§

Source

fn as_key(&self) -> Key

Implementations on Foreign Types§

Source§

impl AsKey for &str

Source§

fn as_key(&self) -> Key

Source§

impl<T: AsRef<str>, U: AsRef<str>> AsKey for (T, U)

Source§

fn as_key(&self) -> Key

Implementors§