uptrakit-web-api-types 0.0.2

Shared HTTP request/response types for the Uptrakit web API
Documentation
1
2
3
4
5
6
7
8
9
10
use serde::{Deserialize, Serialize};

/// An access preset definition with its role composition.
#[derive(Serialize, Deserialize, Clone)]
#[cfg_attr(feature = "openapi", derive(utoipa::ToSchema))]
pub struct AccessPresetResponse {
    pub name: String,
    pub description: String,
    pub roles: Vec<String>,
}