Skip to main content

OutputAdapter

Trait OutputAdapter 

Source
pub trait OutputAdapter {
    // Required methods
    fn render(&self, ctx: &RenderContext<'_>) -> Result<String, ChangeSetError>;
    fn name(&self) -> &str;
}
Expand description

Output adapter trait — renders draft packages in different formats.

Required Methods§

Source

fn render(&self, ctx: &RenderContext<'_>) -> Result<String, ChangeSetError>

Render the draft package to a string.

Source

fn name(&self) -> &str

Adapter name (for logging/debugging).

Implementors§