1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Dto types for keycloak admin API.

use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use utoipa::ToSchema;
use uuid::Uuid;

/// Dto for a user.
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
#[typeshare]
pub struct UserDto {
    /// The user's ID.
    pub id: Uuid,
    /// The user's username.
    pub username: String,
}