Struct handlebars::PathAndJson [−][src]
pub struct PathAndJson<'reg, 'rc> { /* fields omitted */ }
Expand description
Json wrapper that holds the Json value and reference path information
Implementations
pub fn new(
relative_path: Option<String>,
value: ScopedJson<'reg, 'rc>
) -> PathAndJson<'reg, 'rc>
Returns relative path when the value is referenced
If the value is from a literal, the path is None
Returns full path to this value if any
Test if value is missing