Crate ctor_macro

Crate ctor_macro 

Source

Derive Macrosยง

Constructor
The constructor macro. Takes in a struct with multiple fields and creates a new function with these attributes. You can rename the function to whatever you want by setting #[ctor_name = "new_name"]. You can also change the calling names of any of the fields by using #[ctor_rename] on a field.