pub struct ColumnSchema {
pub name: String,
pub inferred_type: InferredType,
pub format_category: FormatCategory,
pub null_count: usize,
pub unique_count: usize,
pub unique_capped: bool,
pub cardinality: Cardinality,
pub sample_values: Vec<String>,
}Fields§
§name: String§inferred_type: InferredType§format_category: FormatCategoryFirst-non-empty-cell number-format category. Drives whether the
column is “dollars” vs “percent” vs “plain integer” — orthogonal to
inferred_type (a currency column is still typed Float).
null_count: usize§unique_count: usizeDistinct rendered-value count, capped at 10 000.
unique_capped: bool§cardinality: Cardinality§sample_values: Vec<String>Up to 3 distinct rendered values. Order is whatever the column presented first; not stable across runs if the underlying sheet changes. Useful for grounding agent queries with concrete values.
Trait Implementations§
Source§impl Clone for ColumnSchema
impl Clone for ColumnSchema
Source§fn clone(&self) -> ColumnSchema
fn clone(&self) -> ColumnSchema
Returns a duplicate of the value. Read more
1.0.0 · 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 ColumnSchema
impl RefUnwindSafe for ColumnSchema
impl Send for ColumnSchema
impl Sync for ColumnSchema
impl Unpin for ColumnSchema
impl UnsafeUnpin for ColumnSchema
impl UnwindSafe for ColumnSchema
Blanket Implementations§
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