samscott89 / serde_qs

Serde support for querystring-style strings
Apache License 2.0
193 stars 67 forks source link

Any way to serialize a vector without the indices? #80

Open oblique opened 1 year ago

oblique commented 1 year ago

I have something like this:

struct Params {
    user_ids: Vec<u32>,
}

And I want to be serialized to user_ids[]=1&user_ids[]=2, instead of user_ids[0]=1&user_ids[1]=2.

I couldn't find any way to do it.