#[derive(Bake)]
{
// Attributes available to this derive:
#[databake]
}
Expand description
This custom derive auto-implements the Bake trait on any given type that has public
fields that also implement Bake.
For a type Person defined in the module module of crate bar, this derive
can be used as follows:
use databake::Bake;
#[derive(Bake)]
#[databake(path = bar::module)]
pub struct Person<'a> {
pub name: &'a str,
pub age: u32,
}