pub(crate) fn format_output(
    text: String,
    json: serde_json::Value,
    output_kind: &OutputKind,
) -> String {
    match output_kind {
        OutputKind::Text => text,
        OutputKind::Json => serde_json::to_string(&json).unwrap(),
    }
}
/// Returns string output for provided output kind
Returns string output for provided output kind
Returns string output for provided output kind
pub(crate) fn format_output(
    text: String,
    json: serde_json::Value,
    output_kind: &OutputKind,
) -> String {
    match output_kind {
        OutputKind::Text => text,
        OutputKind::Json => serde_json::to_string(&json).unwrap(),
    }
}
pub ( crate ) fn format_output ( text : String , json : serde_json :: Value , output_kind : & OutputKind , ) -> String { match output_kind { OutputKind :: Text => text , OutputKind :: Json => serde_json :: to_string ( & json ) . unwrap ( ) , } }
Returns string output for provided output kind
Returns string output for provided output kind
text
String
json
serde_json::Value
output_kind
&OutputKind