rib/compiler/compiler_output.rs
1use crate::compiler::worker_functions_in_rib::WorkerFunctionsInRib;
2use crate::{RibByteCode, RibInputTypeInfo, RibOutputTypeInfo};
3
4#[derive(Debug, Clone)]
5pub struct CompilerOutput {
6 pub worker_invoke_calls: Option<WorkerFunctionsInRib>,
7 pub byte_code: RibByteCode,
8 pub rib_input_type_info: RibInputTypeInfo,
9 // Optional to keep backward compatible as compiler output information
10 // for some existing Rib in persistence store doesn't have this info.
11 // This is optional mainly to support the proto conversions.
12 // At the API level, if we have access to expr, whenever this field is optional
13 // we can compile the expression again and get the output type info
14 pub rib_output_type_info: Option<RibOutputTypeInfo>,
15}