1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
use serde::Deserialize;

/// General user information.
#[derive(Clone, Debug, Deserialize)]
#[non_exhaustive]
pub struct UserAttributes {
    pub username: String,
    // TODO: Map these roles to an enum.
    pub roles: Vec<String>,
    pub version: u32,
}