pub struct RecipeDef {
pub id: String,
pub kind: String,
pub seed: Option<i64>,
pub generator: Option<String>,
pub bounds: Option<String>,
pub detached: Option<bool>,
pub params: Vec<RecipeParam>,
pub palette: Vec<String>,
pub expanded: Vec<String>,
pub source_span: Option<Span>,
pub unknown_props: BTreeMap<String, UnknownProperty>,
}Expand description
A single recipe declaration within a recipes block.
Fields§
§id: StringThe recipe’s own stable id. Required.
kind: StringGenerator kind (freeform string, e.g. "aurora", "scatter"). Required.
seed: Option<i64>Optional integer seed for deterministic generation.
generator: Option<String>Optional generator version/hash string (e.g. "aurora@1").
bounds: Option<String>Optional frame/page id this recipe applies within.
detached: Option<bool>Optional link/detach state: Some(false) = linked (default), Some(true) = detached.
params: Vec<RecipeParam>Typed generation parameters; empty when no param children are present.
palette: Vec<String>Palette token ids; each comes from a palette token="<id>" child node.
expanded: Vec<String>Materialized node ids; each comes from an expanded node="<id>" child node.
source_span: Option<Span>Source declaration span, when available.
unknown_props: BTreeMap<String, UnknownProperty>Forward-compat: unrecognized attributes preserved with typed values + annotations.
Trait Implementations§
impl StructuralPartialEq for RecipeDef
Auto Trait Implementations§
impl Freeze for RecipeDef
impl RefUnwindSafe for RecipeDef
impl Send for RecipeDef
impl Sync for RecipeDef
impl Unpin for RecipeDef
impl UnsafeUnpin for RecipeDef
impl UnwindSafe for RecipeDef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more