pub trait ToDFSchema: Sized {
    // Required method
    fn to_dfschema(self) -> Result<DFSchema, DataFusionError>;

    // Provided method
    fn to_dfschema_ref(self) -> Result<Arc<DFSchema, Global>, DataFusionError> { ... }
}
Expand description

Convenience trait to convert Schema like things to DFSchema and DFSchemaRef with fewer keystrokes

Required Methods§

source

fn to_dfschema(self) -> Result<DFSchema, DataFusionError>

Attempt to create a DSSchema

Provided Methods§

source

fn to_dfschema_ref(self) -> Result<Arc<DFSchema, Global>, DataFusionError>

Attempt to create a DSSchemaRef

Implementations on Foreign Types§

source§

impl ToDFSchema for Arc<Schema, Global>

source§

impl ToDFSchema for Schema

source§

impl ToDFSchema for Vec<DFField, Global>

Implementors§