pub struct RecipeCard {Show 18 fields
pub id: String,
pub book: String,
pub chapter: String,
pub chapter_title: String,
pub chapter_summary: String,
pub title: String,
pub codec: String,
pub setup: Vec<u8>,
pub purpose: String,
pub order: i64,
pub chapter_order: i64,
pub book_order: i64,
pub book_title: String,
pub book_summary: String,
pub tags: Vec<String>,
pub requires: Vec<String>,
pub expect: Vec<Expectation>,
pub source: RecipeSource,
}Expand description
The in-memory record for one recipe. Registered as a Card of kind
"recipe"; the cookbook view is a projection over these.
Fields§
§id: StringGlobally unique id: "<book>/<chapter>/<recipe-id>".
book: StringOwning lib id (the book).
chapter: StringChapter directory name (or overlay chapter).
chapter_title: StringResolved human chapter title.
chapter_summary: StringOne-line chapter summary (may be empty).
title: StringHuman recipe title.
codec: StringRegistered codec name used to decode setup.
setup: Vec<u8>Raw setup bytes, decoded on demand through codec.
purpose: StringPurpose document contents (Markdown, ASCII).
order: i64Sort key within the chapter; lower runs first.
chapter_order: i64Sort key of this recipe’s chapter among chapters.
book_order: i64Sort key of this recipe’s book among books.
book_title: StringHuman book title.
book_summary: StringOne-line book summary (may be empty).
Free tags for search and filtering.
requires: Vec<String>Lib ids that must be loaded for this recipe to run.
expect: Vec<Expectation>Declared expectations (empty when the recipe is not a test).
source: RecipeSourceProvenance of this recipe.
Trait Implementations§
Source§impl Clone for RecipeCard
impl Clone for RecipeCard
Source§fn clone(&self) -> RecipeCard
fn clone(&self) -> RecipeCard
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RecipeCard
impl Debug for RecipeCard
impl Eq for RecipeCard
Source§impl PartialEq for RecipeCard
impl PartialEq for RecipeCard
Source§fn eq(&self, other: &RecipeCard) -> bool
fn eq(&self, other: &RecipeCard) -> bool
self and other values to be equal, and is used by ==.