hermes_cli_components/traits/output.rs
1use cgp::prelude::*;
2
3#[derive_component(OutputTypeComponent, ProvideOutputType<App>)]
4pub trait HasOutputType: Async {
5    type Output: Async;
6}
7
8#[derive_component(OutputProducerComponent, OutputProducer<App>)]
9pub trait CanProduceOutput<Value>: HasOutputType {
10    fn produce_output(&self, value: Value) -> Self::Output;
11}