agentcat-api 0.0.3

Generated Rust client for the AgentCat API, consumed by agentcat-sdk.
Documentation
/*
 * AgentCat API
 *
 * API for AgentCat application
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct QueryTimeout {
    #[serde(rename = "detail")]
    pub detail: String,
    #[serde(rename = "code")]
    pub code: Code,
}

impl QueryTimeout {
    pub fn new(detail: String, code: Code) -> QueryTimeout {
        QueryTimeout {
            detail,
            code,
        }
    }
}
/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Code {
    #[serde(rename = "query_timeout")]
    QueryTimeout,
}

impl Default for Code {
    fn default() -> Code {
        Self::QueryTimeout
    }
}