data_goes 0.1.0-alpha.3.0

Biblioteca experimental para demonstração.
Documentation
use std::borrow::Cow;
use serde::Deserialize;

#[derive(Deserialize, Debug)]
pub struct AppConfig {
    pub servers: Vec<ServerConfig>,
}

#[derive(Deserialize, Debug)]
pub struct ServerConfig {
    pub host: String,
    pub user: String,
    pub password: String,
}
pub struct ConfigClient<'a>{
    pub(crate) host: Cow<'a, str>,
    pub(crate) user: Cow<'a, str>,
    pub(crate) password: Cow<'a, str>,
}