pub struct TableSummary {
pub table_name: String,
pub source_path: String,
pub source_selector: Option<String>,
pub row_count: usize,
pub columns: Vec<ColumnInfo>,
pub sample_rows: Vec<Vec<QueryValue>>,
pub warnings: Vec<String>,
pub column_stats: Option<Vec<ColumnStats>>,
}Expand description
Summary of a single loaded table, returned by load_table_summaries.
Fields§
§table_name: StringThe logical SQL table name (explicit or auto-generated).
source_path: StringThe original file path as provided on the command line.
source_selector: Option<String>The sheet/tag/key/index selector, if any.
row_count: usize§columns: Vec<ColumnInfo>§sample_rows: Vec<Vec<QueryValue>>Up to sample rows of actual data (column values in column order).
warnings: Vec<String>Non-fatal warnings (e.g. mixed-type columns, duplicate header normalisations).
column_stats: Option<Vec<ColumnStats>>Per-column statistics; None when --stats is not requested.
Trait Implementations§
Source§impl Clone for TableSummary
impl Clone for TableSummary
Source§fn clone(&self) -> TableSummary
fn clone(&self) -> TableSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TableSummary
impl RefUnwindSafe for TableSummary
impl Send for TableSummary
impl Sync for TableSummary
impl Unpin for TableSummary
impl UnsafeUnpin for TableSummary
impl UnwindSafe for TableSummary
Blanket Implementations§
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more