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