Derive Macrosยง
- Constructor
- The constructor macro. Takes in a struct with multiple fields and creates a
newfunction 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.