env_applier

Trait EnvApply

Source
pub trait EnvApply<'a> {
    // Required methods
    fn apply(&'a self) -> String;
    fn apply_with_prefix(&'a self, prefix: &str) -> String;
}

Required Methods§

Source

fn apply(&'a self) -> String

Apply environment variables on a string.

Source

fn apply_with_prefix(&'a self, prefix: &str) -> String

Apply environment variables by prepending a prefix to the variable names.

Implementations on Foreign Types§

Source§

impl<'a> EnvApply<'a> for str

Source§

fn apply(&'a self) -> String

Source§

fn apply_with_prefix(&'a self, prefix: &str) -> String

Source§

impl<'a> EnvApply<'a> for String

Apply environment variables on a string.

Source§

fn apply(&self) -> String

Source§

fn apply_with_prefix(&self, prefix: &str) -> String

Implementors§