use std::path::PathBuf; use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use crate::storage::sql::mk_id; #[derive(ToSchema, Debug, Clone, Serialize, Deserialize)] pub(crate) struct Recipe { pub(crate) id: RecipeId, #[schema(value_type = String)] pub(crate) path: PathBuf, pub(crate) content: String, } mk_id!(RecipeId and RecipeIdStub);