feat(render): expose public struct fields

This commit is contained in:
Federico Terzi 2021-04-10 12:04:18 +02:00
parent f847d0cd81
commit 3ecc4e8546

View File

@ -58,7 +58,7 @@ impl<'a> Default for Context<'a> {
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct RenderOptions { pub struct RenderOptions {
casing_style: CasingStyle, pub casing_style: CasingStyle,
} }
impl Default for RenderOptions { impl Default for RenderOptions {
@ -79,9 +79,9 @@ pub enum CasingStyle {
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct Template { pub struct Template {
ids: Vec<String>, pub ids: Vec<String>,
body: String, pub body: String,
vars: Vec<Variable>, pub vars: Vec<Variable>,
} }
impl Default for Template { impl Default for Template {
@ -96,9 +96,9 @@ impl Default for Template {
#[derive(Debug, Clone, PartialEq)] #[derive(Debug, Clone, PartialEq)]
pub struct Variable { pub struct Variable {
name: String, pub name: String,
var_type: String, pub var_type: String,
params: Params, pub params: Params,
} }
impl Default for Variable { impl Default for Variable {