Enum handlebars::ScopedJson [−][src]
pub enum ScopedJson<'reg: 'rc, 'rc> { Constant(&'reg Json), Derived(Json), Context(&'rc Json, Vec<String>), Missing, }
Expand description
A JSON wrapper designed for handlebars internal use case
- Constant: the JSON value hardcoded into template
- Context: the JSON value referenced in your provided data context
- Derived: the owned JSON value computed during rendering process
Variants
Tuple Fields of Constant
0: &'reg Json
Tuple Fields of Derived
0: Json
Implementations
Trait Implementations
Performs the conversion.