[][src]Struct cortex::frontend::params::TemplateContext

pub struct TemplateContext {
    pub global: HashMap<String, String>,
    pub corpora: Option<Vec<HashMap<String, String>>>,
    pub services: Option<Vec<HashMap<String, String>>>,
    pub entries: Option<Vec<HashMap<String, String>>>,
    pub categories: Option<Vec<HashMap<String, String>>>,
    pub whats: Option<Vec<HashMap<String, String>>>,
    pub workers: Option<Vec<HashMap<String, String>>>,
    pub history: Option<Vec<RunMetadata>>,
    pub history_serialized: Option<String>,
}

A backend-retrieved report used for filling in Tera-templated pages

Fields

global: HashMap<String, String>

global data, as per Rocket examples

corpora: Option<Vec<HashMap<String, String>>>

tabular data for reporting on corpora

services: Option<Vec<HashMap<String, String>>>

tabular data for reporting on services

entries: Option<Vec<HashMap<String, String>>>

tabular data for reporting on entries

categories: Option<Vec<HashMap<String, String>>>

tabular data for reporting on message categories

whats: Option<Vec<HashMap<String, String>>>

tabular data for reporting on message whats

workers: Option<Vec<HashMap<String, String>>>

tabular data for reporting on workers

history: Option<Vec<RunMetadata>>

tabular data for reporting on rerun history

history_serialized: Option<String>

serialized data for easy plotting of rerun history

Trait Implementations

impl Default for TemplateContext[src]

impl Serialize for TemplateContext[src]

Auto Trait Implementations

impl RefUnwindSafe for TemplateContext

impl Send for TemplateContext

impl Sync for TemplateContext

impl Unpin for TemplateContext

impl UnwindSafe for TemplateContext

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, I> AsResult<T, I> for T where
    I: Input, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoCollection<T> for T

impl<T> IntoSql for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,