Skip to main content

WireRenderAdapter

Trait WireRenderAdapter 

Source
pub trait WireRenderAdapter: Send + Sync {
    // Required method
    fn render_terminal(
        &self,
        value: &WireValue,
        caps: TerminalRenderCaps,
    ) -> Option<String>;

    // Provided method
    fn render_html(&self, value: &WireValue) -> Option<String> { ... }
}
Expand description

Adapter trait for rendering specific wire-value families (errors/content/etc).

Implement this trait to extend the unified render path for custom error object shapes.

Required Methods§

Provided Methods§

Source

fn render_html(&self, value: &WireValue) -> Option<String>

Implementors§