StructType

Trait 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.

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.

Implementors§