describer 0.1.0

Struct describing helper
Documentation

Describer

Helper crate that generates customizable Rust Structs describing strings.

Installation

[dependencies]
describer = "0.1"

Usage

use describer::Describe;
 
#[derive(Describe)]
struct MyStruct {
    opt: Option<bool>,
    my_string: String,
}
 
fn main() {
    assert_eq!(
        MyStruct::describe(),
        "MyStruct {opt: bool, my_string: String!}"
    );
}

Inspired by: