nest_struct 0.5.5

Nest struct and enum definitions with minimal syntax changes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![allow(dead_code)]
#[macro_use]
extern crate nest_struct;
#[Derive(Debug)]
struct ConfigServer<'a, P> {
    name: &'a str,
    host: &'a str,
    port: P,
    user: &'a str,
    password: &'a str,
}
struct Config<'a, P> {
    version: &'a str,
    main_server: ConfigServer<'a, P>,
    backup_server: ConfigServer<'a, P>,
}