-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(id_type): use macros for defining ID types and implementing common traits #5471
Conversation
… function to construct ID types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks Good To Me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewed connector part and LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dashboard specific changes looks fine.
d4ca69e
Type of Change
Description
This PR introduces declarative macros to define ID types and implement common traits such as
Debug
,FromSql
,ToSql
, etc. on these ID types. In addition, this PR replaces the usages of thefrom()
associated function (to construct the ID types) with theTryFrom
trait implementation.Motivation and Context
Helps reduce duplication of boilerplate code.
How did you test it?
Sanity testing using Postman collection, code should work if it compiles.
Checklist
cargo +nightly fmt --all
cargo clippy