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§
Sourcefn append_to(self, builder: &mut StructBuilder)
fn append_to(self, builder: &mut StructBuilder)
Appends the struct value to the builder.
Sourcefn append_null(builder: &mut StructBuilder)
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.