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 ==
.impl Eq for OutputFormat
impl StructuralEq for OutputFormat
impl StructuralPartialEq for OutputFormat
Auto Trait Implementations§
impl RefUnwindSafe for OutputFormat
impl Send for OutputFormat
impl Sync for OutputFormat
impl Unpin for OutputFormat
impl UnwindSafe for OutputFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.