pub struct SDFSchemaBuilder { /* private fields */ }Expand description
Builds a schema for an SDF file.
Implementations§
Source§impl SDFSchemaBuilder
impl SDFSchemaBuilder
Sourcepub fn add_partition_field(&mut self, field: Field)
pub fn add_partition_field(&mut self, field: Field)
Adds a partition field to the schema.
Sourcepub fn update_data_field(&mut self, data: &Data)
pub fn update_data_field(&mut self, data: &Data)
Update the data field based on the input data.
Sourcepub fn build(self) -> TableSchema
pub fn build(self) -> TableSchema
Builds the schema.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SDFSchemaBuilder
impl RefUnwindSafe for SDFSchemaBuilder
impl Send for SDFSchemaBuilder
impl Sync for SDFSchemaBuilder
impl Unpin for SDFSchemaBuilder
impl UnwindSafe for SDFSchemaBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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