use serde::Deserialize;
use utoipa::ToSchema;
use validator::Validate;
#[derive(Debug, Deserialize, Validate, ToSchema)]
pub struct CreateTokenRequest {
#[validate(length(min = 1, max = 100))]
pub name: String,
#[validate(length(min = 1))]
pub scopes: Vec<String>,
pub expires_at: Option<String>,
}