Derive Macro appy_macros::SnakeFactory

source ·
#[derive(SnakeFactory)]
Expand description

Produce snake cased factory function.

When placed on a struct, e.g. MyStruct, this derive macro will create a function my_struct defined as:

fn my_struct() -> MyStruct {
    MyStruct::new()
}