pub fn string_envar<'a, D>(deserializer: D) -> Result<String, D::Error>
where
	D: Deserializer<'a>,
{
	let s = String::deserialize(deserializer)?;
	// try to substiture all variable in path
	subst_envar(&s).map_err(de::Error::custom)
}
/// Substitute environement variables in a string
Substitute environement variables in a string
Substitute environement variables in a string
pub fn string_envar<'a, D>(deserializer: D) -> Result<String, D::Error>
where
	D: Deserializer<'a>,
{
	let s = String::deserialize(deserializer)?;
	// try to substiture all variable in path
	subst_envar(&s).map_err(de::Error::custom)
}
pub fn string_envar < ' a , D > ( deserializer : D ) -> Result < String , D :: Error > where D : Deserializer < ' a > , { let s = String :: deserialize ( deserializer ) ? ; // try to substiture all variable in path subst_envar ( & s ) . map_err ( de :: Error :: custom ) }
Substitute environement variables in a string
Substitute environement variables in a string
deserializer
D
deserializer
D