schematic 0.19.7

A layered serde configuration and schema library.
Documentation
#![allow(dead_code, deprecated)]

use schematic::Schematic;
use std::borrow::Cow;
use std::collections::HashMap;

#[derive(Schematic)]
struct Basic<'a> {
    pub name: &'a str,
}

#[derive(Schematic)]
struct Multiple<'a, 'b> {
    pub name: &'a str,
    pub age: &'b u32,
    pub other: Cow<'a, str>,
}

#[derive(Schematic)]
struct Collections<'a, 'b> {
    pub map: HashMap<&'a String, &'a bool>,
    pub map_alt: &'a HashMap<String, bool>,
    pub list: Vec<&'b u32>,
    pub list_alt: &'b [u32],
}