mangadex_api_schema_rust/v5/
user.rs

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

/// General user information.
#[derive(Clone, Debug, Deserialize)]
#[cfg_attr(feature = "non_exhaustive", non_exhaustive)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize))]
#[cfg_attr(feature = "specta", derive(specta::Type))]
pub struct UserAttributes {
    pub username: String,
    pub roles: Vec<UserRole>,
    pub version: u32,
}