Enum handlebars::ScopedJson[][src]

pub enum ScopedJson<'reg: 'rc, 'rc> {
    Constant(&'reg Json),
    Derived(Json),
    Context(&'rc JsonVec<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 JsonVec<String>)

Tuple Fields

0: &'rc Json
1: Vec<String>

Missing

Implementations

get the JSON reference

Trait Implementations

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.