Enum solana_cli_output::OutputFormat
source · pub enum OutputFormat {
Display,
Json,
JsonCompact,
DisplayQuiet,
DisplayVerbose,
}
Variants§
Implementations§
source§impl OutputFormat
impl OutputFormat
pub fn formatted_string<T>(&self, item: &T) -> Stringwhere
T: Serialize + Display + QuietDisplay + VerboseDisplay,
pub fn from_matches(
matches: &ArgMatches<'_>,
output_name: &str,
verbose: bool
) -> Self
Trait Implementations§
source§impl Debug for OutputFormat
impl Debug for OutputFormat
source§impl PartialEq<OutputFormat> for OutputFormat
impl PartialEq<OutputFormat> for OutputFormat
source§fn eq(&self, other: &OutputFormat) -> bool
fn eq(&self, other: &OutputFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.