You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm coming back to integrate this awesome lib in @meilisearch; I see there have been a lot of changes since the last time I used it 🎉
I was wondering if there was a way to make that work:
/// A type representing the content of a query parameter that can either not exist, be equal to a star (*), or represent a list of other values#[derive(Debug,Default,Clone,IntoParams)]#[into_params(value_type = Option<Vec<T>>)]pubenumOptionStarOrList<T>{#[default]None,Star,List(Vec<T>),}
Context
Maybe it's the wrong thing to do, though; let me know if you have a better idea!
We use this type a lot in Meilisearch.
It's a query parameter that can be used like that:
Not mandatory; it's not specified /tasks
You use it with one value `/tasks?uid=3
You use it with multiple values /tasks?uid=3,4,5
Or you can use it with a star to match everything: /tasks?uid=*
The text was updated successfully, but these errors were encountered:
Hey,
I'm coming back to integrate this awesome lib in @meilisearch; I see there have been a lot of changes since the last time I used it 🎉
I was wondering if there was a way to make that work:
Context
Maybe it's the wrong thing to do, though; let me know if you have a better idea!
We use this type a lot in Meilisearch.
It's a query parameter that can be used like that:
/tasks
/tasks?uid=3,4,5
/tasks?uid=*
The text was updated successfully, but these errors were encountered: