pub struct TableSchemaBuilder { /* private fields */ }Expand description
Builder for TableSchema.
Implementations§
Source§impl TableSchemaBuilder
impl TableSchemaBuilder
Sourcepub fn fields<VALUE: Into<Vec<FieldSchema>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn fields<VALUE: Into<Vec<FieldSchema>>>( &mut self, value: VALUE, ) -> &mut Self
the fields of table
Sourcepub fn indexes<VALUE: Into<Vec<IndexSchema>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn indexes<VALUE: Into<Vec<IndexSchema>>>( &mut self, value: VALUE, ) -> &mut Self
the indexes of table
Sourcepub fn build(&self) -> Result<TableSchema, TableSchemaBuilderError>
pub fn build(&self) -> Result<TableSchema, TableSchemaBuilderError>
Trait Implementations§
Source§impl Clone for TableSchemaBuilder
impl Clone for TableSchemaBuilder
Source§fn clone(&self) -> TableSchemaBuilder
fn clone(&self) -> TableSchemaBuilder
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 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