pub trait Render: Serialize {
// Required method
fn render_table(&self, w: &mut dyn Write, ctx: &OutputCtx) -> Result<()>;
// Provided method
fn toon_projection(&self) -> Option<Value> { ... }
}Expand description
Trait every printable response implements.
Required Methods§
Provided Methods§
Sourcefn toon_projection(&self) -> Option<Value>
fn toon_projection(&self) -> Option<Value>
Override only when the default Serialize shape produces TOON output
that can’t tabularize — typically a Vec<struct> field on each row of a
list response. The returned serde_json::Value is used only for
TOON encoding (JSON/YAML stay lossless via the default Serialize impl).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".