Skip to main content

Crate excelx

Crate excelx 

Source
Expand description

Ergonomic XLSX conversion for manually implemented row types.

Implement ExcelRow for your struct, then use to_xlsx and from_xlsx to round-trip a first worksheet, or the sheet-selection and multi-sheet APIs for workbooks with multiple homogeneous worksheets.

Structs§

ColumnDef
Defines how a Rust field maps to a visible XLSX column.
MultiSheetReadLimits
Optional safety limits for parsing homogeneous multi-sheet workbooks.
ParsedSheet
Parsed rows for one worksheet in a homogeneous multi-sheet workbook.
ReadLimits
Optional safety limits for parsing untrusted or user-uploaded workbooks.
ReadOptions
Options for parsing an XLSX workbook.
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.
SheetRef
Selects a worksheet by workbook order or visible worksheet name.

Constants§

XLSX_MAX_COLUMNS
Maximum number of columns in an XLSX worksheet.
XLSX_MAX_ROWS
Maximum number of rows in an XLSX worksheet, including the header row.

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_reader_multi
Parse all worksheets in an XLSX reader as the same row type.
from_reader_multi_with_limits
Parse all worksheets in an XLSX reader with explicit safety limits.
from_reader_with_limits
Parse one selected worksheet in an XLSX reader with explicit safety limits.
from_reader_with_options
Parse one selected worksheet in an XLSX reader with explicit options.
from_xlsx
Parse the first worksheet in an XLSX byte slice into typed rows.
from_xlsx_multi
Parse all worksheets in an XLSX byte slice as the same row type.
from_xlsx_multi_with_limits
Parse all worksheets in an XLSX byte slice with explicit safety limits.
from_xlsx_sheet
Parse one selected worksheet in an XLSX byte slice into typed rows.
from_xlsx_with_limits
Parse one selected worksheet in an XLSX byte slice with explicit safety limits.
from_xlsx_with_options
Parse one selected worksheet in an XLSX byte slice with explicit options.
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.