[][src]Trait thingvellir::upstreams::ToPrimaryKey

pub trait ToPrimaryKey {
    fn to_primary_key(&self) -> String;
}

Trait to convert any type to a "String" primary key.

Implemented by default for any T that can be converted to a string using std::string::ToString.

Required methods

fn to_primary_key(&self) -> String

Converts the struct to a string for usage as a primary key in a data store.

Loading content...

Implementors

impl<T> ToPrimaryKey for T where
    T: ToString
[src]

Loading content...