pub fn format<T: Serialize>(data: &T) -> Result<String>Expand description
Format data as plain text.
Uses JSON representation but without colors or fancy formatting. Suitable for piping to other commands or scripts.
ยงErrors
Returns an error if JSON serialization fails (propagated from the
underlying json::format_compact call).