// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Category {
    /// The name of the category
    pub name: String,
    /// Stable machine key used by workflow classifier output handles
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub handle_key: Option<String>,
    /// The description of the category
    ///
    /// Defaults to ``.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub description: Option<String>,
}
impl Category {
    /// Construct a new `Category` with the required fields set.
    #[allow(deprecated)]
    pub fn new(name: impl Into<String>) -> Self {
        Self {
            name: name.into(),
            handle_key: Default::default(),
            description: Default::default(),
        }
    }
}
