-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scylla-macros: add skip_name_checks attribute to SerializeCql
Introduce an attribute to the `SerializeCql` macro which causes the generated code to skip checking names of the serialized Rust fields against the UDT field names. The motivation behind the attribute is to ease transition off the old `IntoUserType` macro which blindly serialized the fields of the struct as they are defined in the Rust code. While it disables the name checks, type checking is still done, so there is protection against type confusion, at least.
- Loading branch information
Showing
3 changed files
with
81 additions
and
3 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