Derive Macro valuable::Valuable[][src]

#[derive(Valuable)]
{
    // Attributes available to this derive:
    #[valuable]
}
This is supported on crate feature derive only.
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),
}