diff --git a/rust/candid_parser/src/bindings/rust.rs b/rust/candid_parser/src/bindings/rust.rs index b2f83db5..aecd5e87 100644 --- a/rust/candid_parser/src/bindings/rust.rs +++ b/rust/candid_parser/src/bindings/rust.rs @@ -485,17 +485,17 @@ impl<'a> State<'a> { } #[derive(Serialize, Debug)] pub struct Output { - type_defs: String, - methods: Vec, - init_args: Option>, + pub type_defs: String, + pub methods: Vec, + pub init_args: Option>, } #[derive(Serialize, Debug)] pub struct Method { - name: String, - original_name: String, - args: Vec<(String, String)>, - rets: Vec, - mode: String, + pub name: String, + pub original_name: String, + pub args: Vec<(String, String)>, + pub rets: Vec, + pub mode: String, } pub fn emit_bindgen(tree: &Config, env: &TypeEnv, actor: &Option) -> (Output, Vec) { let (env, actor) = nominalize_all(env, actor);