use dora_operator_api::{register_operator, DoraOperator, DoraOutputSender, DoraStatus, Event}; register_operator!(ExampleOperator); #[derive(Debug, Default)] struct ExampleOperator { example_field: u32, } impl DoraOperator for ExampleOperator { fn on_event( &mut self, event: &Event, output_sender: &mut DoraOutputSender, ) -> Result { match event { Event::Input { id, data } => match id { other => eprintln!("Received input {other}"), }, _ => {} } Ok(DoraStatus::Continue) } }