#[derive(Default, Debug, Clone, PartialEq, Eq)]
pub struct Recipe {
pub name: Option<String>,
pub author: Option<String>,
pub description: Option<String>,
pub ingredients: Vec<Ingredient>,
pub how_to_sections: Vec<HowToSection>,
}
#[derive(Default, Debug, Clone, PartialEq, Eq)]
pub struct HowToSection {
pub name: Option<String>,
pub steps: Vec<HowToStep>,
}
pub type Ingredient = String;
pub type HowToStep = String;
impl Recipe {
#[cfg(feature = "markdown")]
pub fn to_markdown(&self) -> crate::MarkdownBuilder {
crate::MarkdownBuilder::from(self)
}
}