SpecProvider

Trait SpecProvider 

Source
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§

Source

fn spec_name(&self) -> &str

Get the name of this spec (e.g., “settlement-game”)

Source

fn entity_name(&self) -> &str

Get the entity name (e.g., “SettlementGame”)

Source

fn get_spec(&self) -> Box<dyn Any>

Get the stream spec with type information

Provided Methods§

Source

fn description(&self) -> Option<&str>

Get description of this spec

Implementors§