pub struct BlockDescriptor {
pub id: &'static str,
pub title: &'static str,
pub summary: &'static str,
pub category: &'static str,
}Expand description
Descriptor of one block in an engine’s catalog (spec §3.2).
id is namespaced by engine key (wds.pressure-summary) and never
changes once released — report templates reference it; removing or
repurposing an id is a compatibility break on par with a file-format
break.
Deliberately carries no result-class or prerequisite vocabulary: what a
block needs from a simulation is the producing engine’s internal
concern, surfaced only through BlockError::Unavailable.
Fields§
§id: &'static strStable namespaced identifier: <engine>.<name>.
title: &'static strDefault human-facing heading.
summary: &'static strWhat this block contains, for the template-builder UI.
category: &'static strEngine-authored grouping heading (spec §3.2). Blocks sharing the exact string belong together; group order is catalog order. Display text only — carries no semantics beyond equality.
Trait Implementations§
Source§impl Clone for BlockDescriptor
impl Clone for BlockDescriptor
Source§fn clone(&self) -> BlockDescriptor
fn clone(&self) -> BlockDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more