Skip to main content

OutputFormat

Trait OutputFormat 

Source
pub trait OutputFormat {
    // Required methods
    fn format_compact(&self, output: &OutputManager) -> CliResult<()>;
    fn format_pretty(&self, output: &OutputManager) -> CliResult<()>;
    fn format_table(&self, output: &OutputManager) -> CliResult<()>;
    fn format_detailed(&self, output: &OutputManager) -> CliResult<()>;
}
Expand description

Trait for types that can be formatted in different ways

Required Methods§

Implementors§