pub struct Column {
    pub name: String,
    pub column_type: ValueType,
    pub limiter: ValueLimiter,
}
Expand description

Column of virtual data

Column is “text” type by default but can be further configured with value limiter.

Fields

name: Stringcolumn_type: ValueTypelimiter: ValueLimiter

Implementations

Create empty column with name

Create new column with properties

Get column name

Get column type

Rename a column and return an original name

Apply limiter to a column

Get default value by column

Every value type has it’s own default value. The default value can differ by limiter’s variant of patterns and should comply to a limter’s predicate.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.