pub enum Columns {
Fixed(Vec<Field>),
Parquet,
Csv,
}Expand description
Where a call’s columns come from.
A table function that produces a fixed set of columns is resolved by this crate and nothing
else has to be consulted. One that reads a file is not, because the columns are in the file, so
the answer here is which file to open rather than what is in it. An enum rather than an empty
column list, because an empty list is what read_parquet of a file with no columns would also
give and a caller that forgot to handle the case would get an empty table instead of an error.
Variants§
Fixed(Vec<Field>)
The columns this call produces, with the names an unaliased call gives them.
Parquet
The columns of the Parquet file the first argument names.
Csv
The columns of the CSV file the first argument names, which are sniffed out of its front.
Trait Implementations§
impl Eq for Columns
impl StructuralPartialEq for Columns
Auto Trait Implementations§
impl Freeze for Columns
impl RefUnwindSafe for Columns
impl Send for Columns
impl Sync for Columns
impl Unpin for Columns
impl UnsafeUnpin for Columns
impl UnwindSafe for Columns
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