Skip to main content

export

Function export 

Source
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.