use crate::error::Error;
use std::collections::HashMap;
pub trait Envconfig {
#[deprecated(
since = "0.9.0",
note = "Function init() is deprecated. Please use init_from_env() instead."
)]
fn init() -> Result<Self, Error>
where
Self: Sized;
fn init_from_env() -> Result<Self, Error>
where
Self: Sized;
fn init_from_hashmap(hashmap: &HashMap<String, String>) -> Result<Self, Error>
where
Self: Sized;
}