Skip to main content

StatusRenderable

Trait StatusRenderable 

Source
pub trait StatusRenderable {
    // Required methods
    fn status_pretty(&self) -> Cow<'_, str>;
    fn status_json(&self) -> Value;
}
Expand description

Anything you want to show in status + attach as structured JSON.

Required Methods§

Source

fn status_pretty(&self) -> Cow<'_, str>

Human-friendly, possibly multi-line (e.g. a table).

Source

fn status_json(&self) -> Value

Machine-readable payload (stable shape for analysis).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§