Crate rombok
Source - AllArgsConstructor
- This is an attribute macro that creates a constructor that initializes all fields of the structure.
- Builder
- This is an attribute macro that creates Builder classes and builder methods for the structure.
- EqualsAndHashcode
- This is an attribute macro that generates the
equals and hashcode methods for the structure. (Eq, Hash trait) - Getter
- This is an attribute macro that adds a getter method to the structure.
- NoArgsConstructor
- This is an attribute macro that creates a constructor method that does not receive arguments and initializes all fields to default.
- Setter
- This is an attribute macro that adds a setter method to the structure.
- ToString
- This is an attribute macro that generates the
to_string method for the structure. (Display, ToString, Debug trait) - Value
- This macro is a boilerplate combination of the following macros:: ToString + EqualsAndHashcode + Getter + AllArgsConstructor
- With
- This is an attribute macro that adds a
with value method to the structure.