Skip to main content

reifydb_core/event/
flow.rs

1// SPDX-License-Identifier: Apache-2.0
2// Copyright (c) 2025 ReifyDB
3
4use std::path::PathBuf;
5
6use reifydb_type::value::constraint::TypeConstraint;
7
8use crate::define_event;
9
10#[derive(Debug, Clone)]
11pub struct OperatorColumn {
12	pub name: String,
13
14	pub field_type: TypeConstraint,
15
16	pub description: String,
17}
18
19define_event! {
20
21	pub struct FlowOperatorLoadedEvent {
22
23		pub operator: String,
24
25		pub library_path: PathBuf,
26
27		pub api: u32,
28
29		pub version: String,
30
31		pub description: String,
32
33		pub input: Vec<OperatorColumn>,
34
35		pub output: Vec<OperatorColumn>,
36
37		pub capabilities: u32,
38	}
39}