Trait EnvSubst

Source
pub trait EnvSubst: Sized {
    // Required method
    fn env_subst(
        &self,
        context: &HashMap<String, String>,
    ) -> Result<Self, SubstError>;
}

Required Methods§

Source

fn env_subst( &self, context: &HashMap<String, String>, ) -> Result<Self, SubstError>

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.

Implementations on Foreign Types§

Source§

impl EnvSubst for Value

Source§

fn env_subst( &self, context: &HashMap<String, String>, ) -> Result<Self, SubstError>

Source§

impl EnvSubst for String

Source§

fn env_subst( &self, context: &HashMap<String, String>, ) -> Result<Self, SubstError>

Source§

impl<T> EnvSubst for Option<T>
where T: EnvSubst,

Source§

fn env_subst( &self, context: &HashMap<String, String>, ) -> Result<Self, SubstError>

Source§

impl<T> EnvSubst for Vec<T>
where T: EnvSubst,

Source§

fn env_subst( &self, context: &HashMap<String, String>, ) -> Result<Self, SubstError>

Implementors§