Skip to main content

render_csv

Function render_csv 

Source
pub fn render_csv(rows: impl Iterator<Item = InventoryRow>) -> Vec<u8> 
Expand description

Render an iterator of InventoryRow into the AWS-compatible CSV body.

Headers, in order: Bucket, Key, VersionId, IsLatest, IsDeleteMarker, Size, LastModifiedDate, ETag, StorageClass, EncryptionStatus. RFC 4180 quoting: every cell is wrapped in "..." and embedded " is doubled. LastModifiedDate uses the AWS-canonical RFC 3339 form (YYYY-MM-DDTHH:MM:SS.sssZ).