From 3ecc4e8546e4b91c764d36272ee56f572d40608a Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 10 Apr 2021 12:04:18 +0200 Subject: [PATCH] feat(render): expose public struct fields --- espanso-render/src/lib.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/espanso-render/src/lib.rs b/espanso-render/src/lib.rs index f4fb848..de82293 100644 --- a/espanso-render/src/lib.rs +++ b/espanso-render/src/lib.rs @@ -58,7 +58,7 @@ impl<'a> Default for Context<'a> { #[derive(Debug, Clone, PartialEq)] pub struct RenderOptions { - casing_style: CasingStyle, + pub casing_style: CasingStyle, } impl Default for RenderOptions { @@ -79,9 +79,9 @@ pub enum CasingStyle { #[derive(Debug, Clone, PartialEq)] pub struct Template { - ids: Vec, - body: String, - vars: Vec, + pub ids: Vec, + pub body: String, + pub vars: Vec, } impl Default for Template { @@ -96,9 +96,9 @@ impl Default for Template { #[derive(Debug, Clone, PartialEq)] pub struct Variable { - name: String, - var_type: String, - params: Params, + pub name: String, + pub var_type: String, + pub params: Params, } impl Default for Variable {