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§
Sourcefn status_pretty(&self) -> Cow<'_, str>
fn status_pretty(&self) -> Cow<'_, str>
Human-friendly, possibly multi-line (e.g. a table).
Sourcefn status_json(&self) -> Value
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".