pub struct TableSchemaBuilder { /* private fields */ }
Expand description
A builder for TableSchema
.
Implementations§
Source§impl TableSchemaBuilder
impl TableSchemaBuilder
Sourcepub fn new_with_field_fields(file_fields: Vec<Field>) -> Self
pub fn new_with_field_fields(file_fields: Vec<Field>) -> Self
Create a new builder with the passed file fields.
Sourcepub fn add_file_fields(self, fields: Vec<Field>) -> Self
pub fn add_file_fields(self, fields: Vec<Field>) -> Self
Adds file fields to the TableSchema
.
Sourcepub fn add_partition_fields(self, fields: Vec<Field>) -> Self
pub fn add_partition_fields(self, fields: Vec<Field>) -> Self
Adds partition fields to the TableSchema
.
Sourcepub fn build(self) -> TableSchema
pub fn build(self) -> TableSchema
Builds the TableSchema
, taking a SchemaRef
as an argument, and returning a Result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TableSchemaBuilder
impl RefUnwindSafe for TableSchemaBuilder
impl Send for TableSchemaBuilder
impl Sync for TableSchemaBuilder
impl Unpin for TableSchemaBuilder
impl UnwindSafe for TableSchemaBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more