Enum handlebars::ScopedJson[][src]

pub enum ScopedJson<'reg: 'rc, 'rc> {
    Constant(&'reg Json),
    Derived(Json),
    Context(&'rc Json),
}

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

Methods

impl<'reg: 'rc, 'rc> ScopedJson<'reg, 'rc>
[src]

get the JSON reference

Trait Implementations

impl<'reg: 'rc, 'rc> Debug for ScopedJson<'reg, 'rc>
[src]

Formats the value using the given formatter. Read more

impl<'reg: 'rc, 'rc> From<Json> for ScopedJson<'reg, 'rc>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'reg, 'rc> Send for ScopedJson<'reg, 'rc>

impl<'reg, 'rc> Sync for ScopedJson<'reg, 'rc>