cal_core/rest/
error.rs

1// File: cal-core/src/rest/error.rs
2
3use serde::{Deserialize, Serialize};
4#[cfg(feature = "openapi")]
5use utoipa::ToSchema;
6
7#[derive(Debug, Serialize, Deserialize)]
8#[cfg_attr(feature = "openapi", derive(ToSchema))]
9pub struct ErrorResponse {
10    pub error: String,
11    pub details: Option<serde_json::Value>,
12}