AppendStruct

Trait AppendStruct 

Source
pub trait AppendStruct {
    // Required methods
    fn append_owned_into(self, b: &mut StructBuilder);
    fn append_null_into(b: &mut StructBuilder);
}
Expand description

Trait implemented by #[derive(Record)] structs to append their fields into a StructBuilder. Used by row-based APIs to handle nested struct fields.

Required Methods§

Source

fn append_owned_into(self, b: &mut StructBuilder)

Append this struct’s child values into the provided StructBuilder. Caller is responsible for setting the parent validity via append(true).

Source

fn append_null_into(b: &mut StructBuilder)

Append nulls for each child into the provided StructBuilder to align lengths. Caller is responsible for append(false) for the parent validity.

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§