Struct substrait_expr::builder::schema::FullSchemaBuilder
source · pub struct FullSchemaBuilder { /* private fields */ }Expand description
A builder object for schemas that know both types and names
Implementations§
source§impl FullSchemaBuilder
impl FullSchemaBuilder
sourcepub fn field(self, name: impl Into<String>, typ: Type) -> Self
pub fn field(self, name: impl Into<String>, typ: Type) -> Self
Add a leaf field with the given name and type
sourcepub fn nested(
self,
name: impl Into<String>,
nullable: bool,
build_func: impl FnOnce(Self) -> Self
) -> Self
pub fn nested( self, name: impl Into<String>, nullable: bool, build_func: impl FnOnce(Self) -> Self ) -> Self
Add a struct field with the given name and children
sourcepub fn build(self) -> SchemaInfo
pub fn build(self) -> SchemaInfo
Consume the builder to create a schema
Auto Trait Implementations§
impl RefUnwindSafe for FullSchemaBuilder
impl Send for FullSchemaBuilder
impl Sync for FullSchemaBuilder
impl Unpin for FullSchemaBuilder
impl UnwindSafe for FullSchemaBuilder
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