boraarslan / mapper-influence

0 stars 0 forks source link

Add osu! API user search endpoint #29

Closed 112batuhan closed 1 year ago

112batuhan commented 1 year ago

osu! API search endpoint implementation.

This endpoint has two structs. One UserCompact (like the naming convention in osu! API) and one SearchResult which wraps vector of UserCompact and the total number of results of the query. We might decide to change this structure if we think that the total number is unnecessary. I also didn't want to use user.rs user struct because I don't want to wrap every field into Option.

for info

112batuhan commented 1 year ago

Moved the contents to user.rs as this result only returns users. Beatmap search with string will be added to beatmap.rs

112batuhan commented 1 year ago

I also looked up your change request a little more, like back then, every solution is either wrapper struct like I implemented in this PR or custom deserializer. If you have any directions, I'm open.