Trait KeyValueLabels

Source
pub trait KeyValueLabels {
    const KEY: &'static str;
    const VALUE: &'static str;
}
Expand description

A specifier of the labels to be used for the keys and values.

Required Associated Constants§

Source

const KEY: &'static str

The label for the keys.

Source

const VALUE: &'static str

The label for the values.

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§

Source§

impl KeyValueLabels for DefaultLabels

Source§

const KEY: &'static str = "key"

Source§

const VALUE: &'static str = "value"