Enum rocket_dyn_templates::handlebars::ScopedJson[][src]

pub enum ScopedJson<'reg, 'rc> where
    'reg: 'rc, 
{ Constant(&'reg Value), Derived(Value), Context(&'rc ValueVec<String, Global>), 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 Value)
Derived(Value)
Context(&'rc ValueVec<String, Global>)
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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Converts self into a collection.

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.