ply_rs::ply

Trait Key

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

Convenience trait to assure consistency between the key used for storage and the name of the elment.

Required Methods§

Source

fn get_key(&self) -> String

Returns a key under which the element should be stored in a key-value store.

Implementors§