pub struct ColumnMapper<'a> {
    pub name_to_id: HashMap<&'a str, u64>,
    pub id_to_name: HashMap<u64, &'a str>,
}
Expand description

Column Mapper - Utility to generate the name <-> id mappings for columns in a sheet.

Fields

name_to_id: HashMap<&'a str, u64>

Represents a mapping of Column Name to Column ID

Note that the ID value is unique, internal, and used mainly in the Smartsheet API.

id_to_name: HashMap<u64, &'a str>

Represents a mapping of Column ID to Column Name

Note that the ID value is unique, internal, and used mainly in the Smartsheet API.

Implementations

Create a new ColumnMapper object from a list of columns.

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

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more