1 2 3 4 5 6 7 8 9 10 11 12 13
use serde::Deserialize; #[derive(Debug, Deserialize)] pub struct InVars { //#[serde(flatten)] //pub input_map: HashMap<String, Value>, } impl InVars { pub fn hello(&self) { info!("hello world"); } }
1 2 3 4 5 6 7 8 9 10 11 12 13
use serde::Deserialize; #[derive(Debug, Deserialize)] pub struct InVars { //#[serde(flatten)] //pub input_map: HashMap<String, Value>, } impl InVars { pub fn hello(&self) { info!("hello world"); } }