Skip to main content

agentcat_api/models/
error.rs

1/*
2 * AgentCat API
3 *
4 * API for AgentCat application
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct Error {
16    #[serde(rename = "detail")]
17    pub detail: String,
18}
19
20impl Error {
21    pub fn new(detail: String) -> Error {
22        Error {
23            detail,
24        }
25    }
26}
27