Trait ToEnvVar

Source
pub trait ToEnvVar {
    // Provided methods
    fn to_env_value(&self) -> Option<String> { ... }
    fn to_env_values(
        &self,
        base: &str,
    ) -> impl Iterator<Item = (String, String)> { ... }
}

Provided Methods§

Source

fn to_env_value(&self) -> Option<String>

Source

fn to_env_values(&self, base: &str) -> impl Iterator<Item = (String, String)>

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 ToEnvVar for u16

Source§

impl ToEnvVar for usize

Source§

impl ToEnvVar for ApiSecrets

Source§

impl ToEnvVar for String

Source§

impl ToEnvVar for PathBuf

Source§

impl<T: ToEnvVar> ToEnvVar for Option<T>

Implementors§