pub fn select_fields(
headers: &mut Vec<String>,
rows: &mut [Vec<String>],
opts: &ListOptions<'_>,
) -> Result<(), YukiError>Expand description
Restrict headers and rows to the comma-separated columns named in opts.fields.
Column names match case-insensitively and keep the order the caller asked for.
An unrecognised name is an error: emitting the full row set for --fields bogus
makes an unsupported query indistinguishable from a satisfied one.