Closed miketwenty1 closed 1 year ago
We have a fn: get_userid_by_gamertag
get_userid_by_gamertag
This only returns id, and we are making the response serialized with StdResp<Option<HashMap<String, String>>> is over generic for such a simple response. We should should should create a struct that serializes to grab id
id
StdResp<Option<HashMap<String, String>>>
struct UserInfo { "id": String }
this turned out to be a bit more complicated. https://github.com/miketwenty1/zebedee-rust/commit/e6fc1131372022984d938536b5d32efc1bccd211 closes this.
We have a fn:
get_userid_by_gamertag
This only returns
id
, and we are making the response serialized withStdResp<Option<HashMap<String, String>>>
is over generic for such a simple response. We should should should create a struct that serializes to grabid