Trait MultiFormat

Source
pub trait MultiFormat: Command {
    // Required methods
    fn supported_formats(&self) -> Vec<&'static str>;
    fn execute_with_format(&self, format: &str) -> Result<String>;
}
Expand description

Trait for commands that support different output formats

Required Methods§

Source

fn supported_formats(&self) -> Vec<&'static str>

Available output formats

Source

fn execute_with_format(&self, format: &str) -> Result<String>

Execute with specific format

Implementors§