Function build_table

Source
pub fn build_table<T, O>(
    data: &T,
    options: &O,
) -> (Vec<String>, Vec<Vec<String>>)
Expand description

Build a table for a single structure

Returns a vector with first row being column headers [“Attribute”, “Value”]. All other rows represent transposed table with first value in the vector being an attribute name and second value being the value itself. The optional attribute, which is None is not being returned.