pub trait Section {
    type Output;
    fn section(
        self,
        key: impl ToString,
        value: impl Into<Value>
    ) -> Self::Output;
fn get_section(&self, key: impl AsRef<str>) -> Option<&Value>;
fn get_section_str(&self, key: impl AsRef<str>) -> Option<&str>; }
Expand description

A helper trait to attach additional fields to error reports to be referenced in the handlebars template.

Associated Types

The output type

Required methods

Attach a kv pair to the final error report.

Try to get a value from the error report.

Try to get a value from the error report.

Implementations on Foreign Types

Implementors