pub fn export(entries: &[PortEntry], format: ExportFormat) -> Result<String>Expand description
Export port entries to JSON or CSV string.
JSON uses serde_json::to_string_pretty.
CSV includes a header row with all fields.
pub fn export(entries: &[PortEntry], format: ExportFormat) -> Result<String>Export port entries to JSON or CSV string.
JSON uses serde_json::to_string_pretty.
CSV includes a header row with all fields.