#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(crate) enum TemplateType {
Controller,
Domain,
Exception,
Mapper,
Model,
Repository,
Service,
Utils,
View,
}
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(crate) enum ModelSubType {
Application,
Request,
Response,
}
#[derive(Debug, thiserror::Error)]
pub(crate) enum TemplateError {
#[error("IO error: {0}")]
IoError(#[from] std::io::Error),
#[error("Invalid template type: {0}")]
InvalidTemplateType(String),
#[error("Invalid model subtype: {0}")]
InvalidModelSubType(String),
#[error("Directory '{0}' already exists")]
DirectoryExists(String),
}