Skip to main content
Rust4PM

TablePreview

A few real rows of one table, for display only.

Rows are aligned to TablePreview::columns so a wide table can be read across. A cell is
None for SQL NULL, distinct from Some(String::new()).
Used as Input

0

functions accept this type(+2 nested)

Used as Output

2

functions return this type(+2 nested)

Type Definition

5 nested items
struct— A few real rows of one table, for display only.
columns*:Vec<String>— Column names, in the order the rows are aligned to.
[items]:String
rows*:Vec<Vec<Option<String>>>— Rows, each the same length as columns.

Example JSON Value

json
{
  "columns": [
    "example"
  ],
  "rows": [
    [
      "example"
    ]
  ]
}

Functions Returning This Type(2)