render_s3_credentials

Function render_s3_credentials 

Source
pub(crate) fn render_s3_credentials(
    format: CredsItemFormat,
    records: &[S3CredentialRecord],
) -> String
Expand description

Render a set of volumes’ S3 credentials in the requested format.

For json/yaml the records are emitted as a single array/list so that the output is one valid document no matter how many volumes there are; for rclone/table each record is rendered in turn (concatenated sections, one table with a row per volume). The returned string is ready to print as-is.