Trait datafusion_common::ToDFSchema
source · pub trait ToDFSchemawhere
Self: Sized,{
// Required method
fn to_dfschema(self) -> Result<DFSchema>;
// Provided method
fn to_dfschema_ref(self) -> Result<DFSchemaRef> { ... }
}
Expand description
Convenience trait to convert Schema like things to DFSchema and DFSchemaRef with fewer keystrokes
Required Methods§
sourcefn to_dfschema(self) -> Result<DFSchema>
fn to_dfschema(self) -> Result<DFSchema>
Attempt to create a DSSchema
Provided Methods§
sourcefn to_dfschema_ref(self) -> Result<DFSchemaRef>
fn to_dfschema_ref(self) -> Result<DFSchemaRef>
Attempt to create a DSSchemaRef