We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Traits like Where, Order etc for making wrapper functions that apply preset settings.
Where
Order
The text was updated successfully, but these errors were encountered:
Can Query Traits be used outside the library? Or an example of using Query Traits?
Query Traits
For example, I have a query structure:
struct UserQuery { name: Option<String>, sex: Option<i32>, }
If the name is not none, add the name to the where condition, and the sex is the same. Is there any way to handle to where conveniently?
name
none
where
sex
to where
Sorry, something went wrong.
Not currently, though that's a kinda similar idea to the partial_unchecked! macro. I've got a couple of ideas but I'm not quite sure.
partial_unchecked!
Successfully merging a pull request may close this issue.
Traits like
Where
,Order
etc for making wrapper functions that apply preset settings.The text was updated successfully, but these errors were encountered: