AppendStructRef

Trait AppendStructRef 

Source
pub trait AppendStructRef {
    // Required method
    fn append_borrowed_into(&self, b: &mut StructBuilder);
}
Expand description

Trait implemented by #[derive(Record)] structs to append their fields into a StructBuilder from a borrowed reference. This enables container builders (e.g., lists of structs) to append child values without taking ownership of the struct.

Required Methods§

Source

fn append_borrowed_into(&self, b: &mut StructBuilder)

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

Implementors§