Skip to main content

Crate excelx

Crate excelx 

Source
Expand description

Ergonomic single-sheet XLSX conversion for manually implemented row types.

Phase 1 intentionally keeps the public API small. Implement ExcelRow for your struct, then use to_xlsx and from_xlsx to round-trip values.

Structs§

ColumnDef
Defines how a Rust field maps to a visible XLSX column.
RowView
A typed view over one parsed spreadsheet row.
SheetData
Homogeneous sheet data for multi-sheet workbook generation.
SheetOptions
Single-sheet write options for Phase 1.

Enums§

CellValue
A small, explicit value model for the cell types supported in Phase 1.
ExcelError
Errors returned by schema validation, XLSX writing, and XLSX parsing.

Traits§

ExcelRow
Implement this trait to convert a struct to and from XLSX rows.

Functions§

from_reader
Parse the first worksheet in an XLSX reader into typed rows.
from_xlsx
Parse the first worksheet in an XLSX byte slice into typed rows.
to_xlsx
Convert a slice of row values into a single-sheet XLSX workbook.
to_xlsx_multi
Convert multiple homogeneous sheets into one XLSX workbook.
validate_columns
Validate schema metadata and return columns sorted by ascending order.