pub trait SpecProvider {
// Required methods
fn spec_name(&self) -> &str;
fn entity_name(&self) -> &str;
fn get_spec(&self) -> Box<dyn Any>;
// Provided method
fn description(&self) -> Option<&str> { ... }
}Expand description
Trait for providing stream specifications from different sources
This trait enables dynamic loading of specs without the CLI needing to directly depend on all atom crates.
Required Methods§
Sourcefn entity_name(&self) -> &str
fn entity_name(&self) -> &str
Get the entity name (e.g., “SettlementGame”)
Provided Methods§
Sourcefn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Get description of this spec