revolt_optional_struct 0.2.0

Crate defining a macro that will generate, from a structure, another structure with only Option<T> fields
Documentation
#![allow(dead_code)]

#[macro_use]
extern crate optional_struct;

#[derive(OptionalStruct)]
struct Config {
    delay: Option<u32>,
    path: String,
    percentage: f32,
}

#[test]
fn test_apply_options() {
    let opt_config = OptionalConfig::empty();

    assert_eq!(opt_config.delay, None);
    assert_eq!(opt_config.path, None);
    assert_eq!(opt_config.percentage, None);
}