Derive Macro valuable_derive::Valuable[][src]

#[derive(Valuable)]
{
    // Attributes available to this derive:
    #[valuable]
}
Expand description

Derive a Valuable implementation for a struct or enum.

Examples

use valuable::Valuable;

#[derive(Valuable)]
struct HelloWorld {
    message: Message,
}

#[derive(Valuable)]
enum Message {
    HelloWorld,
    Custom(String),
}