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
Constant(&'reg Json)
Tuple Fields
0: &'reg Json
Derived(Json)
Tuple Fields
0: Json
Context(&'rc Json, Vec<String>)
Missing
Implementations
Trait Implementations
Performs the conversion.