pub fn format<T: Serialize>(data: &T) -> Result<String>Expand description
Format data as colorized, human-readable output.
Uses colors and formatting for better terminal readability.
ยงErrors
Returns an error if JSON serialization fails (e.g., if the data contains non-serializable types). Value formatting itself cannot fail.