pub trait Presentable {
// Required method
fn present(
&self,
json: bool,
show_secret: bool,
to_stderr: bool,
) -> Result<(), CliError>;
}Expand description
Presentable: implement to control how a result is shown.
json: pretty JSON when true, otherwise plain textshow_secret: allow printing secrets when applicable (may be ignored)to_stderr: emit output to stderr instead of stdout
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".