Skip to main content

render_human_with_view

Function render_human_with_view 

Source
pub fn render_human_with_view(
    envelope: &Envelope,
    columns: Option<&[TableColumn]>,
    fields: &str,
) -> String
Expand description

Renders an envelope using explicit table columns.

columns, when Some, is expected to already be --fields-selected and ordered (applied by callers such as render_human_with_registry_selected before this function runs) — this function does not re-apply fields to it. fields is only read here when columns is None, to give the dynamically-derived, no-view column catalog the same field selection and order a view would have gotten. Pass "" when no field-selection value is available.