pub struct EngineDescriptor {
pub key: &'static str,
pub label: &'static str,
pub pill: &'static str,
pub accent: &'static str,
pub summary: &'static str,
pub status: EngineStatus,
pub import: &'static [ImportFormat],
}Expand description
Immutable identity of one Hydra engine (spec §2.1).
key and the label/pill pair are two deliberately separate naming
systems: the key carries the accurate domain umbrella and never changes
once released (it is persisted in project metadata and report
templates); the label carries the familiar practitioner term and may be
revised between releases.
Fields§
§key: &'static strStable machine identifier: lowercase ASCII domain-umbrella
abbreviation (wds, uds, och).
label: &'static strHuman-facing product name (e.g. “Water Distribution”).
pill: &'static strTwo-character uppercase badge (e.g. “WD”).
accent: &'static strBrand color for this engine, #rrggbb.
summary: &'static strOne-sentence description of the engine’s domain. Plain text.
status: EngineStatusWhether this distribution can actually run the engine (spec §2.3).
import: &'static [ImportFormat]Source-model formats this engine imports (spec §2.2). May be empty.
Implementations§
Source§impl EngineDescriptor
impl EngineDescriptor
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Whether this engine is implemented in this distribution.
Trait Implementations§
Source§impl Clone for EngineDescriptor
impl Clone for EngineDescriptor
Source§fn clone(&self) -> EngineDescriptor
fn clone(&self) -> EngineDescriptor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more