datafusion_common

Trait ToDFSchema

Source
pub trait ToDFSchema
where 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§

Source

fn to_dfschema(self) -> Result<DFSchema>

Attempt to create a DSSchema

Provided Methods§

Source

fn to_dfschema_ref(self) -> Result<DFSchemaRef>

Attempt to create a DSSchemaRef

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToDFSchema for Vec<Field>

Source§

impl ToDFSchema for Schema

Source§

impl ToDFSchema for SchemaRef

Implementors§