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§
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<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".