Skip to content

struct

Column

pub struct Column {
    pub key: String,
    pub label: String,
    pub kind: Kind,
    pub role: Role,
    pub hidden: bool,
    pub levels: Option<Vec<String>>,
}

A column of a table: its key and label, what it holds and is for, and how its values are ordered.

Fields

key

pub key: String

The field name in each row.

label

pub label: String

The heading to show.

kind

pub kind: Kind

What it holds.

role

pub role: Role

What it's for.

hidden

pub hidden: bool

Left out of a table's default columns (codes, constants).

levels

pub levels: Option<Vec<String>>

The order its values go in, if there's one to keep (survey answers).

Trait implementations