use std::collections::HashMap; use serde::Deserialize; #[derive(Deserialize)] pub struct GetTokenInfo { pub data: GetTokenInfoData, } #[derive(Deserialize)] pub struct GetTokenInfoData { #[serde(rename = "userId")] pub user_id: String, pub account: String, pub roles: HashMap, pub name: String, #[serde(rename = "clientId")] pub client_id: String, pub scopes: Vec, }