#[non_exhaustive]pub struct SchemaDefinitionBuilder { /* private fields */ }
Expand description
A builder for SchemaDefinition
.
Implementations§
source§impl SchemaDefinitionBuilder
impl SchemaDefinitionBuilder
sourcepub fn columns(self, input: Column) -> Self
pub fn columns(self, input: Column) -> Self
Appends an item to columns
.
To override the contents of this collection use set_columns
.
Specifies one or more columns that store your data.
Each schema can have up to 100 columns. Each column can have up to 100 nested types.
sourcepub fn set_columns(self, input: Option<Vec<Column>>) -> Self
pub fn set_columns(self, input: Option<Vec<Column>>) -> Self
Specifies one or more columns that store your data.
Each schema can have up to 100 columns. Each column can have up to 100 nested types.
sourcepub fn get_columns(&self) -> &Option<Vec<Column>>
pub fn get_columns(&self) -> &Option<Vec<Column>>
Specifies one or more columns that store your data.
Each schema can have up to 100 columns. Each column can have up to 100 nested types.
sourcepub fn build(self) -> SchemaDefinition
pub fn build(self) -> SchemaDefinition
Consumes the builder and constructs a SchemaDefinition
.
Trait Implementations§
source§impl Clone for SchemaDefinitionBuilder
impl Clone for SchemaDefinitionBuilder
source§fn clone(&self) -> SchemaDefinitionBuilder
fn clone(&self) -> SchemaDefinitionBuilder
Returns a copy 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 moresource§impl Debug for SchemaDefinitionBuilder
impl Debug for SchemaDefinitionBuilder
source§impl Default for SchemaDefinitionBuilder
impl Default for SchemaDefinitionBuilder
source§fn default() -> SchemaDefinitionBuilder
fn default() -> SchemaDefinitionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SchemaDefinitionBuilder
impl PartialEq for SchemaDefinitionBuilder
source§fn eq(&self, other: &SchemaDefinitionBuilder) -> bool
fn eq(&self, other: &SchemaDefinitionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SchemaDefinitionBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SchemaDefinitionBuilder
impl Send for SchemaDefinitionBuilder
impl Sync for SchemaDefinitionBuilder
impl Unpin for SchemaDefinitionBuilder
impl UnwindSafe for SchemaDefinitionBuilder
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>
Creates a shared type from an unshared type.