Trait arrow_udf::types::StructType

source ·
pub trait StructType {
    // Required methods
    fn fields() -> Fields;
    fn append_to(self, builder: &mut StructBuilder);
    fn append_null(builder: &mut StructBuilder);
}
Expand description

A trait for user-defined struct types.

This trait can be automatically derived with #[derive(StructType)].

Required Methods§

source

fn fields() -> Fields

Returns the fields of the struct type.

source

fn append_to(self, builder: &mut StructBuilder)

Appends the struct value to the builder.

source

fn append_null(builder: &mut StructBuilder)

Appends a null value to the builder.

Object Safety§

This trait is not object safe.

Implementors§