Skip to content
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

Move crud options to typedbuilder #178

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Move crud options to typedbuilder #178

merged 1 commit into from
Sep 2, 2024

Conversation

chvck
Copy link
Collaborator

@chvck chvck commented Aug 22, 2024

No description provided.

@chvck chvck requested a review from Matt-Woz August 22, 2024 13:28
Copy link

@Matt-Woz Matt-Woz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@@ -6,6 +6,12 @@ pub enum DataTypeFlag {
Xattrs,
}

impl Default for DataTypeFlag {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT: Not a blocker, but we could use #[derive(Default)] for this

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think that'd work here would it? How would it know which variant is the default value?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can set which variant you want to be the default: https://doc.rust-lang.org/std/default/trait.Default.html#enums

@chvck chvck merged commit d8367a6 into nativex Sep 2, 2024
9 checks passed
@chvck chvck deleted the opts branch September 2, 2024 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants