pub struct BlockDescriptor {
pub id: &'static str,
pub title: &'static str,
pub summary: &'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.
Trait Implementations§
Source§impl Clone for BlockDescriptor
impl Clone for BlockDescriptor
Source§fn clone(&self) -> BlockDescriptor
fn clone(&self) -> BlockDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockDescriptor
Source§impl Debug for BlockDescriptor
impl Debug for BlockDescriptor
impl Eq for BlockDescriptor
Source§impl PartialEq for BlockDescriptor
impl PartialEq for BlockDescriptor
Source§impl Serialize for BlockDescriptor
impl Serialize for BlockDescriptor
impl StructuralPartialEq for BlockDescriptor
Auto Trait Implementations§
impl Freeze for BlockDescriptor
impl RefUnwindSafe for BlockDescriptor
impl Send for BlockDescriptor
impl Sync for BlockDescriptor
impl Unpin for BlockDescriptor
impl UnsafeUnpin for BlockDescriptor
impl UnwindSafe for BlockDescriptor
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