1 2 3 4 5 6 7 8 9
use serde::Deserialize;
#[derive(Debug, Deserialize, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CheckTokenResponse {
pub is_authenticated: bool,
pub roles: Vec<String>, // TODO: Deserialize the strings into `UserRole` enum.
pub permissions: Vec<String>, // TODO: Deserialize the strings into `UserPermission` enum.
}