Trait tabled::Tabled[][src]

pub trait Tabled {
    fn fields(&self) -> Vec<String>;
fn headers() -> Vec<String>; }
Expand description

Tabled a trait responsible for providing a header filds and a row fields.

It’s urgent that header len is equal to fields len.

    Self::headers().len() == self.fields().len()

Required methods

Fields must return a list of cell in a row

Headers return a list of names for columns

Implementations on Foreign Types

Implementors