Skip to content

Commit c4b0ec7

Browse files
committed
feat: added new reader for new module structure
1 parent c1649fe commit c4b0ec7

2 files changed

Lines changed: 305 additions & 182 deletions

File tree

src/flow_definition/feature/version.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
use tucana::shared::{DefinitionDataType, FlowType, FunctionDefinition, RuntimeFunctionDefinition};
1+
use tucana::shared::{
2+
DefinitionDataType, FlowType, FunctionDefinition, RuntimeFlowType, RuntimeFunctionDefinition,
3+
};
24

35
pub trait HasVersion {
46
fn version(&self) -> &String;
@@ -25,6 +27,13 @@ impl HasVersion for FunctionDefinition {
2527
&self.version
2628
}
2729
}
30+
31+
impl HasVersion for RuntimeFlowType {
32+
fn version(&self) -> &String {
33+
&self.version
34+
}
35+
}
36+
2837
impl HasVersion for RuntimeFunctionDefinition {
2938
fn version(&self) -> &String {
3039
&self.version

0 commit comments

Comments
 (0)