VisualizerPlugin

Trait VisualizerPlugin 

Source
pub trait VisualizerPlugin: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn name(&self) -> &str;
    fn meta(&self) -> &PluginMeta;
    fn value_types(&self) -> &[String];
    fn visualize(&self, value: &CoreValue) -> Option<RichDisplay>;
}
Expand description

Trait for visualizer plugins that provide custom rich display.

Required Methods§

Source

fn id(&self) -> &str

Unique identifier for this visualizer.

Source

fn name(&self) -> &str

Human-readable name.

Source

fn meta(&self) -> &PluginMeta

Plugin metadata.

Source

fn value_types(&self) -> &[String]

Value types this visualizer handles (e.g., [“json”, “bytes”]). Empty means it handles all types.

Source

fn visualize(&self, value: &CoreValue) -> Option<RichDisplay>

Generate a rich display for the value.

Returns None if this visualizer doesn’t apply to the value.

Implementors§