Derive Macro nate_derive::Nate
source · #[derive(Nate)]
{
// Attributes available to this derive:
#[template]
}
Expand description
Implement fmt::Display
for a struct or enum
Usage:
ⓘ
#[derive(Nate)]
#[template(
path = "…",
generated = "…",
)]
struct Template { /* … */ }
The path is relative to the cargo manifest dir (where you find Cargo.toml) of the calling project.
The optional debug output path generated
is relative to the cargo manifest dir.
If supplied the generated code will be written into this file.
An existing file fill be replaced!