Closed 112batuhan closed 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
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.
osu! API search endpoint implementation.
This endpoint has two structs. One
UserCompact
(like the naming convention in osu! API) and oneSearchResult
which wraps vector ofUserCompact
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