Function envy_store::from_path [−][src]
pub fn from_path<T, P>(
path_prefix: P
) -> impl Future<Item = T, Error = Error> + Send where
T: DeserializeOwned + Send,
P: AsRef<Path>,
Resolves parameter store values and deserialize them into a typesafe struct
path_prefix
is assumed to be the path prefixed, e.g /sweet-app/prod
.
Parameter store value names are then expected be of the form /sweet-app/prod/db-pass
/sweet-app/prod/db-username
, and so forth.