-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add new field "name" to User struct in dto_example.rs
- Added a new field "name" of type String to the User struct. - The value of the "name" field is computed by concatenating the values of the "firstname" and "lastname" fields using the `concat_str` function. - Updated the mapper attributes for the User struct in dto_example.rs to include the new field. - Removed commented out code related to checking if a field is required when it has an Option type. - Refactored code in dto_builder.rs related to building initialization tokens for new fields. - Removed the `required` attribute from NewField struct in mapper_entry.rs as it was not being used. - Added support for multiple attributes on new fields in mapper_entry.rs. - Fixed a bug where an error was not thrown when the `dto` property was missing or blank in mapper_entry.rs. - Updated test_dto_creation.rs with correct syntax for specifying attributes on new fields.
- Loading branch information
Showing
5 changed files
with
28 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters